Skip to content

fix(telemetry): redact runtime credentials before exporting spans - #732

Closed
shfunc wants to merge 1 commit into
mainfrom
ilya/redact-sdk-runtime-credentials
Closed

shfunc wants to merge 1 commit into
mainfrom
ilya/redact-sdk-runtime-credentials

Conversation

@shfunc

@shfunc shfunc commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Environment setup telemetry currently captures the runtime-injected hud_api_key in local span files and HTTP uploads. Sanitize credential fields and same-span echoes before either export boundary, without changing the arguments passed to execution or the transport authentication key.

JSON-encoded legacy arguments are handled while preserving schema keys and unrelated task data. This targets runtime credential fields; it does not scrub arbitrary sensitive task content or rewrite existing local files.

Validation: 56 exporter/instrument tests passed, including the normal instrumented lifecycle, local-only and remote export, quoted/unicode values, short-secret JSON key preservation and input nonmutation. Ruff, format, ty and diff checks pass; independent review also exercised native task-step export.

Kept separate from the featured template and Sonnet computer-tool changes.

@jdchawla29

Copy link
Copy Markdown
Collaborator

Resolved upstream: the HUD platform no longer passes the API key as a task argument, so it no longer reaches recorded spans.

@jdchawla29 jdchawla29 closed this Oct 27, 2026
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