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: allow cert validation by only leaf trusted CA's CRL #18289

Merged
merged 16 commits into from
Nov 2, 2021

Conversation

Shikugawa
Copy link
Member

Signed-off-by: Shikugawa rei@tetrate.io

Commit Message: Allow cert validation by only leaf trusted CAs CRL
Additional Description: Close #18268. In the previous implementation, we don't have availability to validate certs when all trusted CAs don't have their own CRLs if any trusted CAs have that. This feature allows validating even if all trusted CAs don't have CRLs.
Risk Level: Low
Testing: Unit
Docs Changes: Required
Release Notes: Required
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]

cc @incfly

Signed-off-by: Shikugawa <rei@tetrate.io>
@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/envoy/.
envoyproxy/api-shepherds assignee is @mattklein123
CC @envoyproxy/api-watchers: FYI only for changes made to api/envoy/.

🐱

Caused by: #18289 was opened by Shikugawa.

see: more, trace.

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks flushing out some comments. cc @ggreenway to provide a quick sanity check of the feature.

/wait

api/envoy/extensions/transport_sockets/tls/v3/common.proto Outdated Show resolved Hide resolved
api/envoy/extensions/transport_sockets/tls/v3/common.proto Outdated Show resolved Hide resolved
docs/root/version_history/current.rst Outdated Show resolved Hide resolved
test/extensions/transport_sockets/tls/ssl_socket_test.cc Outdated Show resolved Hide resolved
@incfly
Copy link
Contributor

incfly commented Sep 28, 2021

Thanks for the quick change! @Shikugawa

Signed-off-by: Shikugawa <rei@tetrate.io>
Signed-off-by: Shikugawa <rei@tetrate.io>
Signed-off-by: Shikugawa <rei@tetrate.io>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Flushing some more API comments. I will defer to @lizan and others for the testing review to make sure we have good coverage, thanks.

/wait

api/envoy/extensions/transport_sockets/tls/v3/common.proto Outdated Show resolved Hide resolved
api/envoy/extensions/transport_sockets/tls/v3/common.proto Outdated Show resolved Hide resolved
api/envoy/extensions/transport_sockets/tls/v3/common.proto Outdated Show resolved Hide resolved
api/envoy/extensions/transport_sockets/tls/v3/common.proto Outdated Show resolved Hide resolved
docs/root/version_history/current.rst Outdated Show resolved Hide resolved
Signed-off-by: Shikugawa <rei@tetrate.io>
@Shikugawa
Copy link
Member Author

@lizan Could you take a look?

Copy link
Contributor

@incfly incfly left a comment

Choose a reason for hiding this comment

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

LGTM

mattklein123
mattklein123 previously approved these changes Sep 30, 2021
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

API LGTM thanks. I will defer to @lizan for the TLS/test review. Thank you!

@mattklein123
Copy link
Member

Needs a main merge. Ping @lizan PTAL.

/wait

Copy link
Member

@lizan lizan left a comment

Choose a reason for hiding this comment

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

one more about naming, and please resolve conflicts.

api/envoy/extensions/transport_sockets/tls/v3/common.proto Outdated Show resolved Hide resolved
Signed-off-by: Shikugawa <rei@tetrate.io>
@mattklein123
Copy link
Member

Needs a main merge.

/wait

@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @lizan
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #18289 was synchronize by Shikugawa.

see: more, trace.

Signed-off-by: Shikugawa <rei@tetrate.io>
Signed-off-by: Shikugawa <rei@tetrate.io>
@Shikugawa
Copy link
Member Author

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #18289 (comment) was created by @Shikugawa.

see: more, trace.

@Shikugawa
Copy link
Member Author

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #18289 (comment) was created by @Shikugawa.

see: more, trace.

Signed-off-by: Shikugawa <rei@tetrate.io>
@Shikugawa
Copy link
Member Author

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #18289 (comment) was created by @Shikugawa.

see: more, trace.

@Shikugawa
Copy link
Member Author

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #18289 (comment) was created by @Shikugawa.

see: more, trace.

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks. @lizan @incfly can you quickly check the test coverage? Thank you.

@repokitteh-read-only repokitteh-read-only bot removed the api label Nov 2, 2021
Copy link
Contributor

@incfly incfly left a comment

Choose a reason for hiding this comment

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

This looks good to me. Thanks @Shikugawa for the change, and @mattklein123 for the headsup

@lizan lizan merged commit 56e8c45 into envoyproxy:main Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow CRL verification to not require all level CA's CRL.
4 participants