-
Notifications
You must be signed in to change notification settings - Fork 497
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
Change X509-SVID subject values #3367
Conversation
As outlined in spiffe#3341, this change behavior that controls the subject of X509-SVIDs signed by the SPIRE Server CA. Instead of a fixed subject (i.e. "O=SPIRE,C=US"), the subject now inherits the subject of the signing CA (sans the CommonName). It also adds a UniqueID attribute to the subject. The Unique ID is per SPIFFE ID. This brings us into RFC 5280 conformance. The new behavior can be disabled with an immediately deprecated flag, "omit_x509svid_uid". This flag will be removed in a future release. Fixes: spiffe#3341 Signed-off-by: Andrew Harding <[email protected]>
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.
Thanks Andrew!!! looks great,
I can't stop thinking on that ca_subject
is longer a configuration only for CA but for CA and SVIDs...
can you update documentation to reflect those changes?
Signed-off-by: Andrew Harding <[email protected]>
Signed-off-by: Andrew Harding <[email protected]>
Signed-off-by: Andrew Harding <[email protected]>
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.
Looks great!! just a minor NIT
cmd/spire-server/cli/run/run.go
Outdated
@@ -82,6 +82,7 @@ type serverConfig struct { | |||
LogFile string `hcl:"log_file"` | |||
LogLevel string `hcl:"log_level"` | |||
LogFormat string `hcl:"log_format"` | |||
OmitX509SVIDUID *bool `hcl:"omit_x509svid_uid"` |
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.
NIT: Can you add a // DEPRECATED: remove this migration in 1.5.0
? (or the minor version we can remove it)
here or in pkg/server/config.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.
done
Signed-off-by: Andrew Harding <[email protected]>
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.
LGTM!!!
* Change X509-SVID subject values As outlined in spiffe#3341, this change behavior that controls the subject of X509-SVIDs signed by the SPIRE Server CA. Instead of a fixed subject (i.e. "O=SPIRE,C=US"), the subject now also has a UniqueID attribute. The Unique ID is per SPIFFE ID. This brings us into RFC 5280 conformance. The new behavior can be disabled with an immediately deprecated flag, "omit_x509svid_uid". This flag will be removed in a future release.
As outlined in #3341, this change behavior that controls the subject of X509-SVIDs signed by the SPIRE Server CA.
Instead of a fixed subject (i.e. "O=SPIRE,C=US"), the subject now
inherits the subject of the signing CA (sans the CommonName). It also addsalso has a UniqueID attributeto the subject. The Unique ID is per SPIFFEID. This brings us into RFC 5280 conformance.The new behavior can be disabled with an immediately deprecated flag, "omit_x509svid_uid". This flag will be removed in a future release.
Edit: backed out the subject inheritance code while we discuss that behavior more fully