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

Validate TLS and CA secrets #1240

Merged
merged 1 commit into from
Nov 20, 2020
Merged

Validate TLS and CA secrets #1240

merged 1 commit into from
Nov 20, 2020

Conversation

pleshakov
Copy link
Contributor

Proposed changes

Previously, the contents of the TLS and CA secrets wasn't validated. As a result, NGINX could be configured to use an invalid TLS cert and/or key. In that case, NGINX would fail to reload. More over, NGINX would keep failing to reload until that secret was fixed/removed or a resource referencing that secret was removed.

This PR brings validation of the contents of secrets:

  • cert and key of TLS secret
  • cert of CA secret

If a secret is invalid, NGINX will not be configured to use it.

@pleshakov pleshakov added the enhancement Pull requests for new features/feature enhancements label Nov 18, 2020
Copy link

@mikestephen mikestephen left a comment

Choose a reason for hiding this comment

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

Looks great to me!

@pleshakov pleshakov merged commit 92d0362 into master Nov 20, 2020
@pleshakov pleshakov deleted the process-secrets-2 branch November 20, 2020 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Pull requests for new features/feature enhancements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants