Skip to content

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.

5 participants