feat(cre-local): enable secrets management via vault don#22075
feat(cre-local): enable secrets management via vault don#22075
Conversation
|
👋 czar0, thanks for creating this pull request! To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team. Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks! |
|
I see you updated files related to
|
|
✅ No conflicts with other open PRs targeting |
There was a problem hiding this comment.
Pull request overview
Risk Rating: HIGH
Enables CRE Local workflow deployments to manage secrets via the Vault DON by fetching the vault public key from the gateway, encrypting secrets locally, allowlisting the request in the workflow registry, and sending the encrypted payload to the gateway for vault storage.
Changes:
- Adds vault-secrets YAML parsing + encryption pipeline and a gateway JSON-RPC flow for public key fetch and secrets create.
- Updates deploy workflow CLI to accept
--gateway-urland to (optionally) update the vault capability config in the capabilities registry. - Adjusts example workflow deployment call to match the updated deploy function signature.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| core/scripts/cre/environment/environment/workflow.go | Implements vault gateway interactions, secrets encryption/output, allowlisting, and CLI flag changes for CRE Local secret management. |
| core/scripts/cre/environment/environment/examples.go | Updates example workflow deployment call to align with new deploy function parameters. |
|
- fix typo in secretsNamesConfig comment - add check for workflowRegistryVersion and capabilitiesRegistryVersion - allow more than 100 don via pagination - fetch vault capability id from helper - increase timeout for vault requests - return error value from sendToVaultGateway method
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|




Note: this is for CRE Local only.
This pull request enables the CRE Local environment to manage secrets via the vault DON, as required by the current CRE architecture.
The workflows are registered and executed correctly, and the secrets are encrypted and fetched as shown in the log below.