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

Allow to configure the name of the keystore file #2943

Closed
hguerrero opened this issue May 22, 2020 · 10 comments
Closed

Allow to configure the name of the keystore file #2943

hguerrero opened this issue May 22, 2020 · 10 comments
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@hguerrero
Copy link

Is your feature request related to a problem? Please describe.
Some applications require a specific name for the JKS file, so hardcoding it to keystore.jks requires to edit the secret to fix the name.

Describe the solution you'd like
Under the JKS object add a field to add the desired name for the keystore

Describe alternatives you've considered
none

Additional context

Environment details (if applicable):

  • cert-manager version (e.g. v0.4.0):0.15.0
  • openshift: 4.3

/kind feature

@jetstack-bot jetstack-bot added the kind/feature Categorizes issue or PR as related to a new feature. label May 22, 2020
@meyskens
Copy link
Contributor

/priority important-soon

@jetstack-bot jetstack-bot added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label May 25, 2020
@munnerz
Copy link
Member

munnerz commented May 26, 2020

I don't think this is something we should/need to expose in our CRD schema - it is already possible to 'remap' the name of items in a Secret resource when mounting them into a pod: https://kubernetes.io/docs/concepts/configuration/secret/#projection-of-secret-keys-to-specific-paths

This is what we've typically advised for users who have had similar requests for the tls.crt and tls.key entries too.

/priority awaiting-more-evidence

@jetstack-bot jetstack-bot added the priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. label May 26, 2020
@munnerz munnerz removed the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label May 26, 2020
@hguerrero
Copy link
Author

It can be remap to other name if you have control of the Deployment CR, but it is not the case when using for example, Kubernetes Operators where the operator is in charge of creating the required CRs and updating them in case there are changes. So updating the Deployment won't work because the Operator might overwrite the changes.

@jetstack-bot
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Send feedback to jetstack.
/lifecycle stale

@jetstack-bot jetstack-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 15, 2021
@hguerrero
Copy link
Author

Back to this again, we still have the use case where we need to provide a specific name for the file. Having the cert-manager flexible enough to name the files makes it more usable.

@jakexks jakexks added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. priority/backlog Higher priority than priority/awaiting-more-evidence. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. labels Sep 15, 2021
@jetstack-bot
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Send feedback to jetstack.
/lifecycle stale

@jetstack-bot jetstack-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 14, 2021
@jetstack-bot
Copy link
Collaborator

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Send feedback to jetstack.
/lifecycle rotten
/remove-lifecycle stale

@jetstack-bot jetstack-bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 13, 2022
@jetstack-bot
Copy link
Collaborator

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Send feedback to jetstack.
/close

@jetstack-bot
Copy link
Collaborator

@jetstack-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Send feedback to jetstack.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@PaskeS
Copy link

PaskeS commented Jul 28, 2023

Still very much a useful feature. Just to provide a clear example of when we cant just change the name ourself
https://github.com/bitnami/charts/blob/main/bitnami/schema-registry/templates/statefulset.yaml#L107-L113
https://github.com/bitnami/charts/blob/main/bitnami/schema-registry/values.yaml#L142-L147

This would solve the problem perfectly. I understand that there is also an argument to allow the keystore names to be set in the templates for the above. A feature like this would just allow us to solve at the source vs udating many others templates

My solution for this current case is to just not use cert manager and do it myself unfortunately

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

No branches or pull requests

6 participants