Skip to content

feat(config): support env substitution#4007

Draft
AkashKumar7902 wants to merge 1 commit into
project-zot:mainfrom
AkashKumar7902:issue-2521-config-env
Draft

feat(config): support env substitution#4007
AkashKumar7902 wants to merge 1 commit into
project-zot:mainfrom
AkashKumar7902:issue-2521-config-env

Conversation

@AkashKumar7902

Copy link
Copy Markdown
Contributor

Summary

  • expand environment variables in zot config string values using $VAR and ${VAR}
  • apply the same substitution to referenced LDAP, OpenID/OAuth2, and session key secret files
  • fail config loading when a referenced environment variable is unset
  • document the syntax in examples/README.md

Fixes #2521

Validation

  • GOEXPERIMENT=jsonv2 go test ./pkg/cli/server -count=1
  • git diff --check

@AkashKumar7902 AkashKumar7902 force-pushed the issue-2521-config-env branch from 955a800 to 60196fb Compare April 25, 2026 20:22
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.

[Feat]: Substitute environment variables in config file

1 participant