Skip to content

docs: warn about credentials in proxy environment variables - #7158

Open
joelanford wants to merge 1 commit into
operator-framework:masterfrom
joelanford:docs-proxy-vars-credentials
Open

joelanford wants to merge 1 commit into
operator-framework:masterfrom
joelanford:docs-proxy-vars-credentials

Conversation

@joelanford

Copy link
Copy Markdown
Member

Description of the change:

  • Adds a warning to the Go proxy vars reference that proxy URLs can contain credentials
  • Adds an example configuring operands with valueFrom.secretKeyRef instead of forwarding literal env var values
  • Notes the namespace requirement and that env vars don't reveal their Secret origin

Motivation for the change:

proxy.ReadProxyVarsFromEnv returns literal values, including credentials, even when the operator received them from a Secret. Forwarding those values verbatim into operand pod specs exposes the credentials in the operand workload spec. The docs previously recommended forwarding without any caution.

Docs-only change, so no changelog fragment (matches precedent for website-only changes).

Checklist

If the pull request includes user-facing changes, extra documentation is required:

proxy.ReadProxyVarsFromEnv returns literal values, and proxy URLs can
contain credentials. Document that forwarding these values verbatim
into operand pod specs exposes credentials to anyone who can read the
operand workload spec, and show how to reference a Secret with
valueFrom.secretKeyRef instead.

Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
Co-Authored-By: GLM 5.3

This branch has not been deployed

No deployments
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