Skip to content

Harden OTLP credential redaction and eval sandbox isolation - #68811

Merged
pelikhan merged 5 commits into
mainfrom
pelikhan-otlp-key-redaction
Oct 14, 2026
Merged

pelikhan merged 5 commits into
mainfrom
pelikhan-otlp-key-redaction

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

Summary

  • Exclude GH_AW_OTLP_ALL_HEADERS from agent and eval sandboxes, including multi-endpoint OTLP configurations.
  • Share OTLP credential extraction between early runner masking and artifact/step-summary redaction, including decoded Basic-auth passwords, repeated/percent-encoded headers, disabled endpoints, and JSON-escaped values.
  • Verify eval output against derived OTLP credentials rather than relying only on secret lists and token-prefix patterns.
  • Regenerate compiled workflows: all 343 lock-file changes consist exclusively of the added aggregated-header exclusion.

Validation

  • Reproduced the missing exclusion and decoded-password artifact exposure with synthetic regression fixtures before the fix.
  • Targeted OTLP compiler tests and 217 JavaScript masking/redaction/rendering tests pass; TypeScript checks pass.
  • Go/JavaScript lint, build, impacted unit tests, and workflow recompilation/drift checks pass.

The change prevents the covered future leakage paths; historical exposure still requires credential rotation and affected retained-output cleanup. No credential values are included.

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]>
@pelikhan
pelikhan marked this pull request as ready for review October 14, 2026 19:40
Copilot AI max review requested due to automatic review settings October 14, 2026 19:40
@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

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.

Generated from Test Quality Sentinel · haiku45 · 5.06 AIC · ⌖ 8.32 AIC · ◇ 2.84 AIC · ⊞ 8.8K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

✅ 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: reported_no_action

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.

Generated from Design Decision Gate 🏗️ · opus50 · 15.3 AIC · ⌖ 46.2 AIC · ◇ 28.7 AIC · ⊞ 1.9K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

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.

Generated from Ponytail Reviewer · gpt56 · 8.09 AIC · ⌖ 5.33 AIC · ⊞ 14.2K · ◷

Generated by Ponytail Reviewer for #68811

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread actions/setup/js/redact_secrets.cjs Resolved
Comment thread actions/setup/js/redact_secrets.cjs Resolved

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

pelikhan and others added 2 commits October 14, 2026 13:05
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]>
@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

Copy link
Copy Markdown
Collaborator Author

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.

Comment thread actions/setup/js/add_mask_redaction.cjs Resolved
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]>
@pelikhan
pelikhan merged commit 667d453 into main Oct 14, 2026
55 checks passed
@pelikhan
pelikhan deleted the pelikhan-otlp-key-redaction branch October 14, 2026 20:36
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.91.14

fr4nc1sc0-r4m0n added a commit to elastic/oblt-aw that referenced this pull request Oct 22, 2026
Pulls in OTLP credential redaction and sandbox hardening so telemetry
headers are not left in agent artifacts (github/gh-aw#68811).
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.

3 participants