-
Notifications
You must be signed in to change notification settings - Fork 101
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
fix : make ambient work with intermidiary certs #680
Conversation
make the test certs logic resemble more what the control plane does, and add a test that the certs loaded correctly.
😊 Welcome @yuval-k! This is either your first contribution to the Istio ztunnel 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 @yuval-k. 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/test-infra repository. |
/ok-to-test |
x.digest(MessageDigest::sha256()), | ||
y.digest(MessageDigest::sha256()), | ||
) { | ||
(Ok(x), Ok(y)) => x.as_ref() == y.as_ref(), |
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 to dedup, when can this happen
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 mentioned that in the PR description
Sometimes the user might add the root cert to the chain as well. While technically a user error , we should be forgiving, to prevent user frustration. So I added dedup_by that removes to adjacent certs that are the same.
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.
note that if you don't dedupe them you get this error:
tls error: invalid operation: ErrorStack([Error { code: 184549481, library: "X.509 certificate routines", function: "OPENSSL_internal", reason: "CERT_ALREADY_IN_HASH_TABLE", file: "../crypto/x509/x509_lu.c", line: 356 }])
/cherry-pick release-1.19 |
@dhawton: #680 failed to apply on top of branch "release-1.19":
In response to this:
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/test-infra repository. |
@dhawton: new issue created for failed cherrypick: #687 In response to this:
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/test-infra repository. |
Backports istio#680 Signed-off-by: Daniel Hawton <daniel@hawton.org>
Backports istio#680 Signed-off-by: Daniel Hawton <daniel@hawton.org>
Backports #680 Signed-off-by: Daniel Hawton <daniel@hawton.org>
make the test certs logic resemble more what the control plane does, and add a test that the certs loaded correctly.
This solves two problems:
stack_from_pem
instead offrom_pem
solves that.dedup_by
that removes to adjacent certs that are the same.Fixes istio/istio#46995.