-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Improve secret handling #399
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pleshakov
added
enhancement
Pull requests for new features/feature enhancements
change
Pull requests that introduce a change
labels
Oct 16, 2018
- Simplify the secret handling logic. - Change the secret handling logic. See below. Changes: 1. An Ingress includes TLS termination, but the referenced TLS Secret is missing in Kubernetes/invalid or goes missing/ becomes invalid. An Ingress can be a regular Ingress or a mergeable Master. Before: the Ingress resource was rejected. Now: the Ingress resource is not rejected. Instead, the generated config for that Ingress resource now includes the ssl_ciphers directive set to "NULL", which makes NGINX break any attempt to establish a TLS connection with the corresponding Ingress host. 2. An Ingress includes JWT auth, but the referenced JWK is missing in Kubernetes/invalid or goes missing/becomes invalid. An Ingress can be a regular Ingress, a mergeable Master or a mergeable Minion. Before: the Ingress resource was rejected. Now. the Ingress resource is not rejected. However, the generated config for that Ingress still references the JWK on the file system, which does not exist. This makes NGINX Plus return a 500 response for a request to the corresponding Ingress host (or the path of the host for mergeable minions).
pleshakov
force-pushed
the
refactor-secrets
branch
from
October 18, 2018 08:48
e94815c
to
7596444
Compare
// JWTKey is the key of the data field of a Secret where the JWK must be stored. | ||
const JWTKey = "jwk" | ||
// JWTKeyKey is the key of the data field of a Secret where the JWK must be stored. | ||
const JWTKeyKey = "jwk" |
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.
KeyKey!
Suggested change
const JWTKeyKey = "jwk" | |
const JWTKey = "jwk" |
peterkellydev
approved these changes
Oct 18, 2018
isaachawley
approved these changes
Oct 18, 2018
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.
🤘
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
change
Pull requests that introduce a change
enhancement
Pull requests for new features/feature enhancements
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes
Changes:
TLS Secret is missing in Kubernetes/invalid or goes missing/
becomes invalid. An Ingress can be a regular Ingress or a
mergeable Master.
Before: the Ingress resource was rejected.
Now: the Ingress resource is not rejected. Instead, the generated
config for that Ingress resource now includes the ssl_ciphers
directive set to "NULL", which makes NGINX break any attempt to
establish a TLS connection with the corresponding Ingress host.
missing in Kubernetes/invalid or goes missing/becomes invalid.
An Ingress can be a regular Ingress, a mergeable Master or
a mergeable Minion.
Before: the Ingress resource was rejected.
Now. the Ingress resource is not rejected. However, the generated
config for that Ingress still references the JWK on the file system,
which does not exist. This makes NGINX Plus return a 500 response
for a request to the corresponding Ingress host (or the path of the
host for mergeable minions).
Checklist
Before creating a PR, run through this checklist and mark each as complete.