Skip to content

SecretVault + restore_secrets/vault_clear (#60 parte 2/2) - #130

Merged
jmmana merged 3 commits into
mainfrom
feat/secret-vault
Dec 4, 2026
Merged

jmmana merged 3 commits into
mainfrom
feat/secret-vault

Conversation

@jmmana

@jmmana jmmana commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Closes #60

Parte 2: SecretVault en memoria por sesion (TTL, tope de entradas, aislamiento, ids constant-time), security.redact_secrets con vault:true (placeholders <SECRET_n>, rechaza colision), security.restore_secrets (requiresApproval) y security.vault_clear; RedactingTraceSink enmascara valores de la boveda. Paridad Node/Python/.NET, contratos, docs. Requiere revision Opus de seguridad; no mergear antes.

🤖 Generated with Claude Code

…in RedactingTraceSink (#60 parte 2/2)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings December 4, 2026 13:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

jmmana and others added 2 commits December 4, 2026 08:01
…place (#60)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ET empty vaultId (#60)

- Idempotency cache bypassed for security.restore_secrets, security.vault_clear and
  security.redact_secrets with vault:true (Node/Python/.NET). With allowSideEffects the
  cache persisted restored plaintext in the PolicyStateStore (served after vault_clear/TTL),
  replayed stale vault_clear results and skipped refilling the vault on redact.
- .NET FixedTimeEquals threw IndexOutOfRange on an empty vaultId (EXECUTION_ERROR);
  now INVALID_INPUT like Node/Python.
- Expired vaults swept on open and a maxSessions cap (default 1000, evicts the vault
  closest to expiry) bounds memory and trace-masking cost across sessions.
- Restore only expands canonical placeholders (<SECRET_1>, not <SECRET_01>).
- Contracts for all of the above; unit tests for the session cap; docs.
- Keep main's #67 roadmap row (the branch had reverted it).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jmmana
jmmana merged commit 6d19c88 into main Dec 4, 2026
9 checks passed
@jmmana
jmmana deleted the feat/secret-vault branch December 4, 2026 13:10
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.

security.redact_secrets

2 participants