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

Support referencing a Kubernetes Secret by key in environment variable configuration #3417

Open
oscerd opened this issue Oct 2, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@oscerd
Copy link

oscerd commented Oct 2, 2024

Component

OpenShift Maven Plugin

Is your enhancement related to a problem? Please describe

It's not possible as of today to do something like https://quarkus.io/guides/deploying-to-openshift#environment-variables-from-secret

Describe the solution you'd like

this means being able to do something like.

                <groupId>org.eclipse.jkube</groupId>
                <artifactId>openshift-maven-plugin</artifactId>
                <version>${camel.springboot.jkube.version}</version>
                <configuration>
                    <resources>
                        <env>
                            <AZURE_CLIENT_ID>{secret_name:secret_key}</AZURE_CLIENT_ID>
                            <AZURE_TENANT_ID>{secret_name:secret_key}</AZURE_TENANT_ID>
                            <AZURE_CLIENT_SECRET>{secret_name:secret_key}</AZURE_CLIENT_SECRET>
                        </env>
                    </resources>
                </configuration>

Describe alternatives you've considered

Setting env variables directly in the xml, but it's not a good security practice

Additional context

No response

@oscerd oscerd added the enhancement New feature or request label Oct 2, 2024
@arman-yekkehkhani
Copy link
Contributor

@manusa Hi, can I work on this?

@manusa
Copy link
Member

manusa commented Oct 14, 2024

@manusa Hi, can I work on this?

Hi @arman-yekkehkhani
We haven't yet defined the scope of the issue and how to implement it.
However, if you have any ideas or want to prototype something please go ahead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants