Skip to content

feat(helm): support user-provided API key env#315

Open
omribz156 wants to merge 1 commit into
permitio:mainfrom
omribz156:codex/pdp-helm-user-provided-secret
Open

feat(helm): support user-provided API key env#315
omribz156 wants to merge 1 commit into
permitio:mainfrom
omribz156:codex/pdp-helm-user-provided-secret

Conversation

@omribz156
Copy link
Copy Markdown

Summary:

  • Add pdp.userProvidedSecret to let chart users skip creating the chart-managed API key Secret.
  • Skip the default PDP_API_KEY secretKeyRef when that option is enabled, so users can inject PDP_API_KEY through pdpEnvs or another mechanism.
  • Keep the existing existingApiKeySecret behavior unchanged and bump the chart patch version.

Verification:

  • helm lint charts/pdp
  • helm template pdp charts/pdp
  • helm template pdp charts/pdp -f <userProvidedSecret values> rendered no Secret, no secretKeyRef, and included the user-provided PDP_API_KEY env.
  • helm template pdp charts/pdp -f <existingApiKeySecret values> still rendered no Secret and kept the external secretKeyRef.

This was implemented with Codex assistance, with the patch kept focused and manually reviewed.

Closes #300

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.

helm chart: Allow skipping creation of secret for api_key

1 participant