Skip to content

feat(export): extend --redact-secrets coverage for application keys#46

Open
hugomelendez wants to merge 1 commit into
mainfrom
feat/extend-redact-secrets
Open

feat(export): extend --redact-secrets coverage for application keys#46
hugomelendez wants to merge 1 commit into
mainfrom
feat/extend-redact-secrets

Conversation

@hugomelendez

Copy link
Copy Markdown
Collaborator

Proposed change

Extend --redact-secrets to close credential gaps in shared exports: redact provider_verification_key, client_id, and app_id; strip embedded credentials from OIDC issuer URLs while keeping host/path visible; fail export when cleartext remains after redaction.

Type of change

  • New feature

RHCL checklist

  • Tests added or updated (go test ./...)
  • CI does not introduce -DskipTests without justification
  • No secrets in diff (tokens, kubeconfigs, OIDC secrets)
  • rhcl-ai docs updated if export/import contract changes
  • PR description and docs in English

Test plan

  • go test ./internal/export/...
  • go test ./... (coverage 80.7%)
  • TestExportRedactSecrets — extended keys, issuer strip, auth flags preserved
  • TestExportWithoutRedactPreservesSecrets — opt-in default (no flag)
  • TestVerifyNoCleartextSecretsFailsWithPath — gate fails with path-qualified error

Additional information

  • Related: SDD change extend-redact-secrets

Add provider_verification_key, client_id, and app_id redaction; strip
embedded credentials from OIDC issuer URLs while keeping host/path visible;
fail export when cleartext remains after redaction. Preserve auth_* proxy
flags and document the contract in README and TC-EXP-003.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant