Skip to content

Support REDACT_CONFIG env var for runtime redaction rules#24

Merged
SynthLuvr merged 7 commits into
mainfrom
copilot/add-replace-config-env-variable
Feb 27, 2026
Merged

Support REDACT_CONFIG env var for runtime redaction rules#24
SynthLuvr merged 7 commits into
mainfrom
copilot/add-replace-config-env-variable

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 27, 2026

  • Add .pipe() to SerializableContextRuleType to transform validated input directly into ContextRule
  • Remove deserializeContextRule (transformation now embedded in arktype pipe)
  • Remove deserializeDetectorConfig (unnecessary — SerializableDetectorConfigType.infer is now DetectorConfig)
  • Remove deserializeRedactConfig (unnecessary — SerializableRedactConfigType.infer is now RedactConfig)
  • parseEnvRedactConfig returns validated directly with no manual deserialization step
  • All 19 tests pass, lint clean, 0 CodeQL alerts

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: SynthLuvr <131367121+SynthLuvr@users.noreply.github.com>
Comment thread src/logging.ts
Comment thread src/redact.ts Outdated
Comment thread src/redact.ts Outdated
Comment thread tests/redact.test.ts
Copilot AI changed the title [WIP] Add support for REDACT_CONFIG environment variable Support REDACT_CONFIG env var for runtime redaction rules Feb 27, 2026
Comment thread src/redact.ts Outdated
Comment thread src/redact.ts
Co-authored-by: SynthLuvr <131367121+SynthLuvr@users.noreply.github.com>
Comment thread src/redact.ts
Comment thread src/redact.ts Outdated
Comment thread src/redact.ts Outdated
…ialize helpers

Co-authored-by: SynthLuvr <131367121+SynthLuvr@users.noreply.github.com>
@SynthLuvr SynthLuvr marked this pull request as ready for review February 27, 2026 20:34
@SynthLuvr SynthLuvr merged commit 7ee5250 into main Feb 27, 2026
3 checks passed
@SynthLuvr SynthLuvr deleted the copilot/add-replace-config-env-variable branch February 27, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants