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

Remove deprecated upstream_bundle configurable #1702

Merged
merged 3 commits into from
Jul 2, 2020

Conversation

azdagron
Copy link
Member

@azdagron azdagron commented Jul 2, 2020

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

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:
Copy link
Member

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?

Copy link
Member

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

Copy link
Member Author

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>
Copy link
Member

@amartinezfayo amartinezfayo left a comment

Choose a reason for hiding this comment

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

Woot!

@azdagron azdagron merged commit 718bd79 into spiffe:master Jul 2, 2020
@azdagron azdagron deleted the remove-deprecated-upstream-bundle branch July 2, 2020 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate upstream_bundle configurable
2 participants