Git Product home page Git Product logo

Comments (3)

PastNullInfinity avatar PastNullInfinity commented on August 21, 2024 1

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.

usamaahmadkhan avatar usamaahmadkhan commented on August 21, 2024

@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 avatar PastNullInfinity commented on August 21, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.