Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load plugin configuration field value from Kubernetes Secret #9103

Merged
merged 4 commits into from Jun 20, 2022

Conversation

rtribotte
Copy link
Member

What does this PR do?

When declaring a middleware plugin with the Kubernetes CRD provider, it allows providing plugin configuration field values from a Kubernetes Secret.

The reference of the form urn:k8s:secret:secretName:secretKey is then replaced by the secret value if found, otherwise an error is thrown.

Motivation

Supersedes #8995

Fixes #8994

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

Co-authored-by: nnlquan longquan0104@gmail.com

Copy link
Member

@kevinpollet kevinpollet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nnlquan 👍

@longquan0104
Copy link
Contributor

Thanks, @kevinpollet, and @rtribotte for this. I appreciate it very much since I think this is a very needing feature.

Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@traefiker traefiker merged commit f8f6851 into traefik:master Jun 20, 2022
v2 automation moved this from To review to Done Jun 20, 2022
@rtribotte rtribotte deleted the plugin-conf-from-k8s-secret branch June 12, 2023 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v2
Done
Development

Successfully merging this pull request may close these issues.

Plugin has no option to read config from k8s secret file.
6 participants