Skip to content

Validate vault encryption key using CapabilitiesRegistry #490

Open
timothyF95 wants to merge 6 commits into
mainfrom
feature/DEVSVCS-4951/secrets-vault-key-from-capabilities-registry
Open

Validate vault encryption key using CapabilitiesRegistry #490
timothyF95 wants to merge 6 commits into
mainfrom
feature/DEVSVCS-4951/secrets-vault-key-from-capabilities-registry

Conversation

@timothyF95

@timothyF95 timothyF95 commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Verify encryption key against CapabilitiesRegistry when RPC is available: EncryptSecrets still fetches the vault master TDH2 public key from the gateway (publicKey/get). When CapabilitiesRegistry RPC is configured in project.yaml, the CLI also reads the on-chain key from the tenant registry (vault@1.0.0 on the resolved vault DON) and fails if they do not match. With no RPC configured, encryption continues using the gateway key only.
  • Remove the temporary vaultValidationGateEnabled bypass and all related test skips so vault validation tests run unconditionally.
  • Update unit and integration tests: mock gateway + CapabilitiesRegistry resolver for encrypt/compare paths, deploy a minimal cap reg on Anvil for the secrets happy path (RPC + compare), restore publicKey/get in the gateway mock, and fix GraphQL test mocks to use the correct anvil-devnet chain selector.

@timothyF95 timothyF95 marked this pull request as ready for review June 15, 2026 12:02
@timothyF95 timothyF95 requested a review from a team as a code owner June 15, 2026 12:02
@timothyF95 timothyF95 changed the title Load vault encryption key from CapabilitiesRegistry instead of gateway Validate vault encryption key using CapabilitiesRegistry Jun 15, 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.

1 participant