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

certificateDuration is not used for the Istio CSR generated certificate requests #176

Open
hari-vamsikrishna opened this issue Aug 2, 2022 · 3 comments

Comments

@hari-vamsikrishna
Copy link

istio-csr generated certificates for the workloads is not using the "certificateDuration" parameter from the values.yaml.
The certificaterequests generated by the istio-csr are generated with "duration: 24h0m0s" instead of using the "certificateDuration" parameter from the values.yaml.

@JoshVanL
Copy link
Contributor

JoshVanL commented Aug 2, 2022

Hi @hari-vamsikrishna, you can change the maximum requested duration using the istio-csr flag --max-client-certificate-duration=1h however is istio workloads request for shorter than that, then istio-csr will request that duration.

@hari-vamsikrishna
Copy link
Author

Hi @JoshVanL,
Thank you for the super quick response 👍 .
Yes, i see the flag set as specified from the helm chart values.yaml --max-client-certificate-duration=720h
But, the scene is, Istio-csr (with AWS PCA integration) and istio is deployed in the eks cluster. I have deployed the httpbin from the https://raw.githubusercontent.com/istio/istio/1.11.7/samples/httpbin/httpbin.yaml. And, I see that there is no cert duration requested/configured from the workload.
I think these certificates are automatically requested by istio-csr for the istio mtls (certificate being used in memory by Envoy) when istio-injection is enabled to the namespace where this workload is deployed.
The problem is the certificate is renewed for every day, which is getting costly
So, how can we configure the certificate duration in this case?
ref: https://github.com/cert-manager/istio-csr/blob/v0.4.0/docs/getting_started.md

@volkorny
Copy link

volkorny commented Dec 6, 2024

Hi @hari-vamsikrishna,
Have you been able to find a solution to the issue?

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

No branches or pull requests

3 participants