-
Notifications
You must be signed in to change notification settings - Fork 458
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
Remove deprecated upstream_bundle configurable #1702
Remove deprecated upstream_bundle configurable #1702
Conversation
Changes the server to always use the upstream bundle as the trust bundle and removes the configurable. One notably change in behavior is that the SPIRE server will no longer present the self-signed CA with its own certificate during the TLS handshake. The self-signed CA was added in the TLS handshake as a side-effect of code added to support presenting the CA certificate during the TLS handshake when an UpstreamAuthority had signed the CA certificate but upstream_bundle was false (to allow agents to bootstrap using the upstream bundle). That code is no longer required though since the server will now always include the intermediate CA when signed by upstream. Signed-off-by: Andrew Harding <andrew.harding@hpe.com>
@@ -188,14 +188,12 @@ func migrateJSONFile(from, to string) (bool, error) { | |||
if len(chain) == 0 { | |||
return nil, nil | |||
} | |||
// The chain is in one of three states: | |||
// The chain is in one of two states: |
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.
Do we need any update on the test side?
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 mean journal_test.go
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.
Sure! The production code isn't impacted by the change but I can see how the unit-test case could be confused. Removed the test case that didn't have a bundle.
Signed-off-by: Andrew Harding <andrew.harding@hpe.com>
…pstream-bundle Signed-off-by: Andrew Harding <andrew.harding@hpe.com>
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.
Woot!
Changes the server to always use the upstream bundle as the trust bundle and removes the configurable.
One notably change in behavior is that the SPIRE server will no longer present the self-signed CA with its own certificate during the TLS handshake. The self-signed CA was added in the TLS handshake as a side-effect of code added to support presenting the CA certificate during the TLS handshake when an UpstreamAuthority had signed the CA certificate but upstream_bundle was false (to allow agents to bootstrap using the upstream bundle). That code is no longer required though since the server will now always include the intermediate CA when signed by upstream.
This finishes the last step outlined in #1404 and the final step in fixing #1095.
Fixes #1095