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

Fix reading of tls secret without crt or key #799

Merged
merged 1 commit into from
Jun 14, 2021
Merged

Conversation

jcmoraisjr
Copy link
Owner

Secrets with a CA bundle or crt+key pair uses the same internal struct to represent them. Distinct functions verify if the proper fields are filled to determine if the secret is correctly configured. The crt+key reading however is checking a common field used by CA and crt secrets, leading to a nil dereference when a certificate isn't properly configured. This update ensures that a certificate is properly configured. Thanks Maurilio for finding this.

Should be merged as far as v0.10.

Secrets with a CA bundle or crt+key pair uses the same internal struct
to represent them. Distinct functions verify if the proper fields are
filled to determine if the secret is correctly configured. The crt+key
reading however is checking a common field used by CA and crt secrets,
leading to a nil dereference when a certificate isn't properly
configured. This update ensures that a certificate is properly
configured. Thanks Maurilio for finding this.

Should be merged as far as v0.10.
@jcmoraisjr jcmoraisjr merged commit 5010d76 into master Jun 14, 2021
@jcmoraisjr jcmoraisjr deleted the jm-fix-ca-crt branch June 14, 2021 00:01
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.

1 participant