-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
test: make SSL certificates a bit more realistic. #1228
test: make SSL certificates a bit more realistic. #1228
Conversation
This commit includes few of small changes: - all certificates are generated with X509v3 extensions, and have "Subject Key Identifier" and "Authority Key Identifier" set, - CA certificates have "Basic Constraints: CA:TRUE", - leaf certificates have "Extended Key Usage" set, - "California" is used consistently for the state name, - "Lyft Engineering" is used for the Organizational Unit. No functional changes. Signed-off-by: Piotr Sikora <piotrsikora@google.com>
@mattklein123 @myidpt PTAL, I've made most of those changes while chasing #1220, so I figured that I might as well send them out. However, none of them are really necessary, so feel free to reject this PR (or parts of it). Also, please note that |
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.
extendedKeyUsage = clientAuth, serverAuth | ||
subjectAltName = @alt_names | ||
subjectKeyIdentifier = hash | ||
authorityKeyIdentifier = keyid:always | ||
|
||
[alt_names] | ||
URI.1 = istio:account1.foo.cluster.local |
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.
Since you are changing the cert fields, could you change this (and corresponding tests) to:
spiffe://lyft.com/foo
Istio auth has recently changed the SAN format. We have updated other certs but not this one, so it would be great to keep them consistent :)
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. I wonder if it's work taking some of the common parts (e.g. [req_distinguished_name]
) and defining them in one place, then merging them together during build, but it's probably not worth the effort.
This is fine with me as long as @myidpt is good with it. @PiotrSikora will approve/merge once you fix his small comment. |
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
@htuch OpenSSL config files don't support includes, and automagically merging them during @myidpt @mattklein123 Done. |
This commit includes few of small changes:
"Subject Key Identifier" and "Authority Key Identifier" set,
No functional changes.