Skip to content

feat: resolve ref+ secret references in environment values#13822

Open
johan-nilsson-82 wants to merge 1 commit into
docker:mainfrom
johan-nilsson-82:13821-ref-secret-resolution
Open

feat: resolve ref+ secret references in environment values#13822
johan-nilsson-82 wants to merge 1 commit into
docker:mainfrom
johan-nilsson-82:13821-ref-secret-resolution

Conversation

@johan-nilsson-82
Copy link
Copy Markdown

@johan-nilsson-82 johan-nilsson-82 commented Jun 6, 2026

What I did

Add support for resolving ref+openbao:// secret references in service environment values.

The implementation resolves references at project load time using the OpenBao API client.

Currently this supports OpenBao KV v2-style secret paths.

Related issue

Closes #13821

@johan-nilsson-82 johan-nilsson-82 requested a review from a team as a code owner June 6, 2026 22:37
@johan-nilsson-82 johan-nilsson-82 force-pushed the 13821-ref-secret-resolution branch 6 times, most recently from 8c04d3d to c8ff6f4 Compare June 7, 2026 07:08
Add support for resolving secret references in service environment
values using the ref+openbao://path#/key URI scheme, compatible
with the convention established by helmfile/vals and ArgoCD Vault
Plugin.

Supported backend:
- ref+openbao:// (OpenBao KV v2)

The implementation uses a pluggable resolver interface
(SecretResolver), making it straightforward to add new backends
without modifying existing code. Secrets are resolved at project
load time, after interpolation but before container creation.

Authentication is handled via standard environment variables
(BAO_ADDR, BAO_TOKEN, BAO_CACERT, BAO_SKIP_VERIFY).

Closes docker#13821

Signed-off-by: Johan Nilsson <johan.nilsson.82@gmail.com>
@johan-nilsson-82 johan-nilsson-82 force-pushed the 13821-ref-secret-resolution branch from c8ff6f4 to ae994fb Compare June 7, 2026 07:52
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.

Support ref+<backend>:// secret resolution in environment values (vals/helmfile URI syntax)

1 participant