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

tls-tests: updating the auto-generated certs for TLS tests #35781

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

adisuissa
Copy link
Contributor

@adisuissa adisuissa commented Aug 21, 2024

Commit Message: tls-tests: updating the auto-generated certs for TLS tests
Additional Description:
Some tests are broken due to out of date. Previous refresh was in #22792.
Most changes were the output of test/common/tls/test_data/certs.sh.
3 non-automatic modifications:

  1. test/common/tls/test_data/certs.sh - updated because openssl x509 days argument no longer accepts days that are < -1.
  2. test/common/tls/ssl_socket_test.cc - introduced new fields that are not automatically generated. Fixed the tests to
    fetch the info from the source of truth.
  3. test/extensions/transport_sockets/tls/cert_validator/spiffe/spiffe_validator_test.cc - a test has exact expectations on the dates in the certificates.

Need to think about Matt's comment and see if we can avoid checking in the certs.

Risk Level: low - tests only
Testing: N/A
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A
Fixes #35780

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
Copy link

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #35781 was opened by adisuissa.

see: more, trace.

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
@adisuissa adisuissa marked this pull request as ready for review August 21, 2024 20:07
@adisuissa adisuissa requested a review from tyxia as a code owner August 21, 2024 20:07
Copy link
Member

@tyxia tyxia left a comment

Choose a reason for hiding this comment

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

Thanks!

@adisuissa adisuissa enabled auto-merge (squash) August 21, 2024 20:19
@adisuissa adisuissa merged commit 1e3a53c into envoyproxy:main Aug 21, 2024
46 of 47 checks passed
@phlax
Copy link
Member

phlax commented Aug 22, 2024

@adisuissa there is a ticket to address the committed certs here #23912

i just didnt get round to looking at it yet

i think this needs ...

/backport

@repokitteh-read-only repokitteh-read-only bot added the backport/review Request to backport to stable releases label Aug 22, 2024
phlax pushed a commit to phlax/envoy that referenced this pull request Aug 22, 2024
…y#35781)

Signed-off-by: Adi Suissa-Peleg <adip@google.com>

Signed-off-by: Adi (Suissa) Peleg <adip@google.com>
phlax pushed a commit to phlax/envoy that referenced this pull request Aug 22, 2024
…y#35781)

Signed-off-by: Adi Suissa-Peleg <adip@google.com>

Signed-off-by: Adi (Suissa) Peleg <adip@google.com>
phlax pushed a commit to phlax/envoy that referenced this pull request Aug 22, 2024
…y#35781)

Signed-off-by: Adi Suissa-Peleg <adip@google.com>

Signed-off-by: Adi (Suissa) Peleg <adip@google.com>
phlax pushed a commit to phlax/envoy that referenced this pull request Aug 22, 2024
…y#35781)

Signed-off-by: Adi Suissa-Peleg <adip@google.com>

Signed-off-by: Adi (Suissa) Peleg <adip@google.com>

Signed-off-by: Ryan Northey <ryan@synca.io>
phlax pushed a commit that referenced this pull request Aug 22, 2024
Signed-off-by: Adi Suissa-Peleg <adip@google.com>

Signed-off-by: Adi (Suissa) Peleg <adip@google.com>
phlax pushed a commit that referenced this pull request Aug 22, 2024
Signed-off-by: Adi Suissa-Peleg <adip@google.com>

Signed-off-by: Adi (Suissa) Peleg <adip@google.com>
phlax pushed a commit that referenced this pull request Aug 22, 2024
Signed-off-by: Adi Suissa-Peleg <adip@google.com>

Signed-off-by: Adi (Suissa) Peleg <adip@google.com>

Signed-off-by: Ryan Northey <ryan@synca.io>
phlax pushed a commit to phlax/envoy that referenced this pull request Aug 22, 2024
…y#35781)

Signed-off-by: Adi Suissa-Peleg <adip@google.com>

Signed-off-by: Adi (Suissa) Peleg <adip@google.com>
@adisuissa
Copy link
Contributor Author

@adisuissa there is a ticket to address the committed certs here #23912

i just didnt get round to looking at it yet

i think this needs ...

/backport

Yep... it needs to be backported.
I can do that (essentially I think it should contain all the changed files other than the test/extensions/transport_sockets/tls/cert_validator/spiffe/spiffe_validator_test.cc modifications. LMK if you want me to take point on this.

@phlax
Copy link
Member

phlax commented Aug 22, 2024

i backported it already as it was failing branch ci - not 100% if i did it correctly but it seems to have worked on all but 1.28

fwiw only 1.30 and 1.31 were actually failing so not clear whether it was needed on 1.28 (or 1.29)

phlax pushed a commit to phlax/envoy that referenced this pull request Aug 28, 2024
…y#35781)

Signed-off-by: Adi Suissa-Peleg <adip@google.com>
Signed-off-by: Ryan Northey <ryan@synca.io>
phlax added a commit to phlax/envoy that referenced this pull request Aug 28, 2024
phlax added a commit to phlax/envoy that referenced this pull request Aug 28, 2024
phlax added a commit to phlax/envoy that referenced this pull request Aug 28, 2024
phlax added a commit to phlax/envoy that referenced this pull request Aug 28, 2024
phlax pushed a commit to phlax/envoy that referenced this pull request Aug 28, 2024
…y#35781)

Signed-off-by: Adi Suissa-Peleg <adip@google.com>

Signed-off-by: Adi (Suissa) Peleg <adip@google.com>
phlax added a commit to phlax/envoy that referenced this pull request Aug 28, 2024
phlax added a commit to phlax/envoy that referenced this pull request Aug 28, 2024
phlax added a commit that referenced this pull request Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/review Request to backport to stable releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Certificate creation script for TLS test data is broken
4 participants