Skip to content

Preserve Dart and Kotlin source expressions during secret scrubbing - #38

Open
RKS (rksharma-owg) wants to merge 1 commit into
microsoft:mainfrom
rksharma-owg:codex/fix-mobile-source-redaction
Open

RKS (rksharma-owg) wants to merge 1 commit into
microsoft:mainfrom
rksharma-owg:codex/fix-mobile-source-redaction

Conversation

@rksharma-owg

Copy link
Copy Markdown

The round artifact scrubber treats Dart and Kotlin source files as ordinary artifacts because their extensions are missing from the existing source-file set. Harmless expressions such as privateKey: this.privateKey are consequently replaced in place and lose closing syntax.

Add .dart, .kt, and .kts to the established source classification. Known secret values are still redacted in these files, while credential-pattern redaction remains enabled for ordinary artifacts. The release-identity configuration and shipped frontend artifacts are regenerated through python -m argus_skill.release_tools.build_release, as required by the source digest checks.

Regression tests exercise actual temporary files with lowercase/uppercase extensions, Git-visible changes and ordinary directories, whole-file and streamed reads, CRLF preservation, known dummy secrets in source, and an .env positive control. All 24 new cases fail on the baseline due to source-expression corruption and pass with the fix.

Validation includes the secret-guard and release tests, Ruff, the canonical release build and artifact checks, wheel packaging, web type-checking and both frontend test suites. Exact-commit fork validation covers the upstream Linux full suite, macOS/Windows portable checks, frontend checks and Windows unsigned desktop packaging; the Linux/macOS/frontend/desktop jobs and prescribed Windows portable checks plus new regressions passed. Linux ran 7,805 passing tests with 49 skips; Windows Rust core tests ran 31 passing tests and the unsigned installer build completed.

Additional diagnostics found three existing secret-guard failures on Windows and one Lean-worker timeout failure in the broader local macOS suite. The same failures reproduce on untouched baseline (Windows control); no tests or unrelated behavior are changed to conceal them. The entire secret-guard module is outside the upstream Windows portable test list; the new cases are additionally exercised there.

Fixes #31.

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.

secret_guard: .dart/.kt missing from _SOURCE_SUFFIXES — Dart/Kotlin sources are pattern-redacted and stop compiling

1 participant