Repository navigation
Harden OTLP credential redaction and eval sandbox isolation - #68811
Conversation
Derive encoded, decoded and JSON-escaped OTLP credentials for runner masks, artifact and summary redaction, and eval verification. Exclude aggregated OTLP headers from agent sandboxes and regenerate compiled workflows. Co-authored-by: Copilot App <[email protected]>
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
There was a problem hiding this comment.
Verdict
No blocking correctness or security regressions stood out in the changed lines.
Scope reviewed
Reviewed the OTLP masking and eval-redaction changes plus the workflow sandbox wiring. The advisory sub-agent failed before producing output, so this verdict is based on a direct second-pass review of the diff.🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt54 · 46.6 AIC · ⌖ 5.54 AIC · ⊞ 19.8K
Comment /review to run again
Separate dependency-free header parsing and credential collection from runner masking and telemetry export. Deploy the shared helper with both isolated MCP runtimes and retain dependency closure and credential redaction checks. Co-authored-by: Copilot App <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Critical credential leaks, missing deployment dependencies, and artifact-corrupting over-redaction remain unresolved.
2 open findings
What changed in this PR
Hardens gh-aw’s OTLP credential handling across runner masking, output redaction, and sandbox isolation.
Changes:
- Excludes aggregated OTLP headers from sandboxes, including multi-endpoint configurations.
- Shares credential extraction across masking, artifact/summary redaction, and eval verification.
- Adds regression coverage, updates documentation, and regenerates workflow exclusions.
Unresolved findings include critical leaks involving newline-bearing and digit-only passwords, critical missing deployment dependencies, moderate over-redaction that can corrupt artifacts, and a documentation nit about sandbox scope.
| File | Description |
|---|---|
pkg/workflow/evals_steps_test.go |
Expands multi-endpoint sandbox-exclusion coverage. |
pkg/workflow/compiler_yaml_ai_execution.go |
Recognizes multi-endpoint OTLP configuration. |
pkg/workflow/awf_command_builder.go |
Excludes aggregated OTLP headers from sandboxes. |
docs/src/content/docs/reference/open-telemetry.mdx |
Documents protections and historical-exposure cleanup. |
actions/setup/js/redact_secrets.test.cjs |
Tests derived-credential redaction. |
actions/setup/js/redact_secrets.cjs |
Applies OTLP-derived masks to artifacts and summaries. |
actions/setup/js/redact_evals_results.test.cjs |
Tests derived-credential verification. |
actions/setup/js/redact_evals_results.cjs |
Checks eval output against OTLP credentials. |
actions/setup/js/actions_secret_masking.cjs |
Centralizes OTLP credential extraction. |
actions/setup/js/action_setup_otlp.test.cjs |
Tests early masking and disabled-endpoint credentials. |
actions/setup/js/action_setup_otlp.cjs |
Uses shared credential extraction for early masking. |
.github/workflows/workflow-normalizer.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/windows.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/windows-grower.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/update-astro.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/smoke-issues.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/smoke-github-codex.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/smoke-codex-bare-auto.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/smoke-codex-auto.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/smoke-claude-copilot.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/smoke-claude-copilot-auto.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/smoke-claude-auto.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/smoke-azure-codex.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/smoke-agy.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/schema-feature-coverage.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/schema-consistency-checker.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/python-data-charts.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/pr-nitpick-reviewer.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/pdf-summary.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/outcome-collector.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/notion-issue-summary.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/metrics-collector.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/linter-miner.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/lint-monster.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/jsweep.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/grumpy-reviewer.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/github-remote-mcp-auth-test.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/firewall.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/feature-grower.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/example-permissions-warning.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/example-failure-category-filter.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/engine-conformance-pydantic-ai.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/engine-conformance-opencode.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/engine-conformance-kiro.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/engine-conformance-goose.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/engine-conformance-gemini.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/engine-conformance-deepseek-harness.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/engine-conformance-cursor.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/engine-conformance-crush.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/engine-conformance-copilot.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/engine-conformance-codex.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/engine-conformance-claude.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/engine-conformance-aider.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/engine-conformance-agy.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/dead-code-remover.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/daily-team-evolution-insights.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/daily-spec-coverage-kiro.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/daily-schema-audit-cursor.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/daily-regression-audit-kiro.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/daily-pr-review-cursor.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/daily-max-ai-credits-test.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/daily-go-test-stubs-aider.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/daily-code-debt-aider.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/daily-byok-ollama-test.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/daily-arxiv-researcher.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/codex-github-remote-mcp-test.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/chaos-pr-bundle-fuzzer.lock.yml |
Adds aggregated-header exclusion. |
.github/workflows/agy-conformance-reusable.lock.yml |
Adds aggregated-header exclusion. |
🧠 Review effort: Max
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /codebase-design and /tdd to the OTLP credential-redaction hardening. The approach — a single getOTLPSecretValues() primitive shared by early masking, step-summary redaction, and artifact redaction — is a solid consolidation that closes real gaps (aggregated multi-endpoint headers, decoded Basic-auth passwords, JSON-escaped values). No blocking issues found; 3 minor non-blocking suggestions posted inline.
📋 Key Themes & Highlights
Key Themes
- Dead code: maskAuthorizationValue in actions_secret_masking.cjs is no longer called by any production path (only by its own tests) now that getOTLPSecretValues() + maskSecret replaced it in action_setup_otlp.cjs.
- Test coverage gap: the new getOTLPSecretValues() function — now the single source of truth for OTLP credential collection across 3 call sites — has no direct unit tests of its own; coverage is only indirect through consumers.
- Minor accuracy issue: redact_evals_results.cjs's lingeringRedactions count clamps the OTLP contribution to 0/1 instead of a real count, understating the failure message when multiple OTLP credentials linger.
Positive Highlights
- Consolidating header-credential derivation into one primitive (getOTLPSecretValues) rather than three parallel implementations is a good deepening of the module per /codebase-design — callers no longer need to know header-parsing details.
- Good regression tests for the specific leak scenarios described in the PR body (decoded passwords, JSON-escaping, disabled/multi endpoints) in action_setup_otlp.test.cjs, redact_evals_results.test.cjs, and redact_secrets.test.cjs.
- pkg/workflow changes (sandbox exclusion list, isOTLPEnabled multi-endpoint detection, pi engine test coverage) are small, targeted, and verified by an updated table-driven test.
- Docs update in open-telemetry.mdx clearly states the non-retroactive nature of the fix (rotation still required for historical exposure).
Investigation note: diff was small enough (389 lines) to review in full; no truncation concerns.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · sonnet50 · 181.9 AIC · ⌖ 14.8 AIC · ⊞ 10.4K
Comment /matt to run again
Match numeric scalar tokens before number normalization and emit masked values as JSON strings. Cover digit-only Basic-auth passwords, mixed logs, and unchanged numeric records. Co-authored-by: Copilot App <[email protected]>
Remove the unused authorization masking wrapper and exercise the real credential primitives directly. Add collector edge-case coverage and replace the inaccurate lingering-secret count with an explicit fail-closed diagnostic. Co-authored-by: Copilot App <[email protected]>
|
In response to the Test Quality Sentinel update: no additional code change is warranted because this notification contains no specific finding. The reported_no_action status is not being treated as proof of test completeness; focused regression coverage was validated separately. |
|
In response to the PR Code Quality Reviewer update: the accompanying review reports no blocking regressions from its direct second-pass inspection. This notification requests no additional code change. |
|
In response to the Matt Pocock Skills Reviewer update: addressed the individual inline suggestions by removing the unused masking wrapper, adding direct credential-helper tests, and replacing the misleading credential count with an accurate fail-closed diagnostic. No separate change is needed for this completion notification. |
|
In response to the Design Decision Gate update: this notification includes neither an ADR draft nor a specific architectural decision requiring one, so no ADR is added. Its reported_no_action status alone is not evidence that additional documentation is required. |
|
In response to the Ponytail Reviewer update: this is a completion notification without a substantive finding or requested change. No additional code change is warranted. |
Mask numeric tokens at every JSON depth before numeric normalization can lose credential digits. Preserve unmatched numeric representations and add nested object, array, JSONL, artifact, summary, and eval verification regressions. Co-authored-by: Copilot App <[email protected]>
|
🎉 This pull request is included in a new release. Release: |
Pulls in OTLP credential redaction and sandbox hardening so telemetry headers are not left in agent artifacts (github/gh-aw#68811).

Summary
GH_AW_OTLP_ALL_HEADERSfrom agent and eval sandboxes, including multi-endpoint OTLP configurations.Validation
The change prevents the covered future leakage paths; historical exposure still requires credential rotation and affected retained-output cleanup. No credential values are included.