Comments (3)
Ping for this issue. If the proposed solution seems usable, I can start to work on a PR.
Otherwise, I'm happy to help with changing the Patching method in a way that solves this issue
from proxyinjector.
@PastNullInfinity Thank you for opening an issue. Does gatekeeper provides support to get the secrets from Environment variables instead of cli? If yes, then we can just set them and this can be resolved.
from proxyinjector.
@PastNullInfinity Thank you for opening an issue. Does gatekeeper provides support to get the secrets from Environment variables instead of cli? If yes, then we can just set them and this can be resolved.
Unfortunately not, only through cli flags or via the config.yaml.
For now I have a (admittedly, pretty hacky) workaround: I've made a new dockerfile for gatekeeper that passes $CLIENT_SECRET
as a flag to gatekeeper, and then I've modified the patch that ProxyInjector applies in order to also add an env:
declaration with a reference to a Secret containing the key.
As far as I can tell, there's no easy way to set the secret without mounting it as a file (so a volumeMount), or by editing the dockerfile itself.
I realize also that adding a volume would mean to change quite a bit of the current patch method, since it only cares for the container spec right now.
from proxyinjector.
Related Issues (14)
- add support for white-listed resource HOT 2
- not all config parameters are parsed HOT 3
- add support for statefulsets
- multiple resource annotations do not work
- Take Sensitive Information from Secrets HOT 2
- Upgrade to keycloak-gatekeeper 6.0.1
- Error when deploying in another namespace HOT 3
- Unable to Proxy to Kubernetes Dashboard HOT 1
- proxyinjector fails on kubernetes 1.16 HOT 11
- spec.template.spec.containers[0].image: Required value HOT 13
- Introduce support for Oauth2 Proxy instead of Gatekeeper
- ProxyInjector crashes if service is for sidecar deleted
- Figure out redirection url automatically HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proxyinjector.