-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
serverca: expand signed cert and cert chain PEMs with multiple cert blocks inside #54422
base: master
Are you sure you want to change the base?
Conversation
|
😊 Welcome @zliu-rh! This is either your first contribution to the Istio istio repo, or it's been You can learn more about the Istio working groups, Code of Conduct, and contribution guidelines Thanks for contributing! Courtesy of your friendly welcome wagon. |
Hi @zliu-rh. Thanks for your PR. I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
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.
security/pkg/server/ca/server.go
Outdated
response := &pb.IstioCertificateResponse{ | ||
CertChain: respCertChain, | ||
|
||
// flatten `respCertChain` since each element might be a concatenated multi-cert PEM |
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.
very nitpicky, but this seems the opposite of flattening, we are expanding it?
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.
haha I'm thinking of "flattening" in the sense similar to a nested-array, but yes expanding is more accurate
/ok-to-test |
c0d0ee6
to
dc4e333
Compare
dc4e333
to
f895747
Compare
3a46236
to
7f111a3
Compare
7f111a3
to
3834a21
Compare
Please provide a description of this PR:
Fixes istio/ztunnel#1061
In multiple places such as the cert chain from CA bundle, or returned singed certs, there could be a single
string
representing a PEM with multiple blocks/certs.Since
IstioCertificateResponse
's signature is[]string
, we should semantically expand those multi-cert PEMs.See detailed analysis on how this is causing issues with
ztunnel
in particular istio/ztunnel#1061 (comment)