-
Notifications
You must be signed in to change notification settings - Fork 90
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
feat: make cert manager certificate's commonName optional #major #369
Conversation
also according to the documentation it seems one doesn't need to set the commonName for the leaf certificates which belong to the applications |
I'm wondering if the field in the certificate value reacts correctly to a null value |
Is there anything left to modify before you guys can approve this PR? |
Can you please check my previous comment, have you done some tests ? Can you implement a unit test ? |
I have tried by setting
I am not exactly sure what changes do I need to make for this. But should we keep this PR open till this change is made? |
I made the test here: #370. It looks like it's ok. This PR introduces a breaking change, I will make it bump major version. Thank you for your contribution! |
Making
certificate.commonName
default to null. It should not default toadmin-app
as this field is optional. It can be set according to specific needs but it should not default to an irrelevant value.https://cert-manager.io/docs/usage/certificate/#:~:text=%23%20Avoid%20using%20commonName,%3A%20example.com
The main reason for making this change is that whenever we try to create
Certificate
, itscommonName
field defaults toadmin-app
which is unexpected behavior in default scenario. Setting it tonil
will make more sense.