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

Remove Certificate Chain from Cert Generator #2045

Merged
merged 2 commits into from
Dec 5, 2022

Conversation

andreyvelich
Copy link
Member

I removed Certificate Chain from our Cert generator.
I think having chain is not necessary for Kubernetes Webhooks. I was able to create Katib Experiments in my environment with these changes.
Also, we can leave only Full Service Domain in our DNS names.

Do you have any objections @tenzen-y @johnugeorge @shaowei-su ?

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andreyvelich

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Member

@tenzen-y tenzen-y left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andreyvelich Thanks for refactoring the katib-cert-generator!

Do you have any objections @tenzen-y @johnugeorge @shaowei-su ?

I agree with you since, according to the x509 Go library documentation, we can create the self-signed certificate by specifying the same certificates in the x509.CreateCertificate function.

The certificate is signed by parent. If parent is equal to template then the certificate is self-signed.

https://pkg.go.dev/crypto/x509#CreateCertificate

Also, can you update the docs for the katib-cert-generator?

https://github.com/kubeflow/katib/blob/master/docs/developer-guide.md#katib-cert-generator

@google-oss-prow google-oss-prow bot added size/L and removed size/M labels Dec 5, 2022
@andreyvelich
Copy link
Member Author

Sure, does it look good @tenzen-y: cc65479 ?

Copy link
Member

@tenzen-y tenzen-y left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andreyvelich Looks great! Thanks for the update!

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label Dec 5, 2022
@google-oss-prow google-oss-prow bot merged commit a668252 into kubeflow:master Dec 5, 2022
@andreyvelich andreyvelich deleted the remove-ca-generation branch December 5, 2022 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants