-
Notifications
You must be signed in to change notification settings - Fork 689
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
internal/dag: improve TLS secrets validation #1714
Conversation
cc @mattalberts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I also agree with @davecheney that assert.Equal
is your friend.
26589a2
to
de7a3f3
Compare
I rebased and updated the error messages for (IMHO) clarity. I'll leave this PR open for a while in case there is additional feedback. |
Clarify the validation of the types of secrets that Contour will accept for TLS key+cert pairs and CA certificate bundles. Contour only accepts TLS key+cert pairs from secrets of type "kubernetes.io/tls". These secrets may contain an additional "ca.crt" field that stores the CA certificate bundle. Contour will otherwise accept CA certificate bundles from generic secrets (whose type is "Opaque" or is empty). Contour will ignore all other types of secrets. This fixes projectcontour#1697. Signed-off-by: James Peach <[email protected]>
having a small issue due to this change, see #2138 (comment) |
Clarify the validation of the types of secrets that Contour
will accept for TLS key+cert pairs and CA certificate bundles.
Contour only accepts TLS key+cert pairs from secrets of type
"kubernetes.io/tls". These secrets may contain an additional
"ca.crt" field that stores the CA certificate bundle.
Contour will otherwise accept CA certificate bundles from
generic secrets (whose type is "Opaque" or is empty).
Contour will ignore all other types of secrets.
This fixes #1697.
Signed-off-by: James Peach [email protected]