-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Enhance Certificate Logging and Clearup Mutual Auth Docs #1426
Conversation
@@ -671,29 +671,6 @@ func (ic *GenericController) getBackendServers(ingresses []*extensions.Ingress) | |||
return aUpstreams, aServers | |||
} | |||
|
|||
// GetAuthCertificate ... | |||
func (ic GenericController) GetAuthCertificate(secretName string) (*resolver.AuthSSLCert, error) { |
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.
You cannot remove this function. It's used in the auth cert annotation parser
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.
I see and it is in ingress-controller because it deals with secret objects part of the ingress controller.
Adds better logging to errors caused when getting a Certificate. Adds notes and updates documentation for Mutual Authentication.
@@ -509,9 +509,13 @@ func (ic *GenericController) getBackendServers(ingresses []*extensions.Ingress) | |||
ca := ic.annotations.CertificateAuth(ing) | |||
if ca != nil { | |||
server.CertificateAuth = *ca |
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.
When building the annotation we just check if the secret exists in GetAuthCertificate, then cast it into an *ingress.SSLCert and then build the AuthSSLCert, but there are paths if the secret is created with tls.crt
and tls.key
but no ca.crt
that CAFileName will be "".
/lgtm |
@diazjf thanks! |
Adds better logging to errors cause when getting a Certificate. Adds notes and updates documentation for Mutual Authentication, as well as removes unused function for Mutual Authentication.