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

L46: C-core: New TLS Credentials API #422

Open
wants to merge 54 commits into
base: master
Choose a base branch
from

Conversation

gtcooke94
Copy link

@gtcooke94 gtcooke94 commented Mar 22, 2024

This PR is subsuming the previous PR of the same title (#205), and attempting to bring the content to the current state with the goal of formally merging this and moving these API from experimental to stable.

This is still under active work and is not ready for final review.

@gtcooke94 gtcooke94 marked this pull request as draft March 22, 2024 17:42
Copy link
Author

@gtcooke94 gtcooke94 left a comment

Choose a reason for hiding this comment

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

Did a rework of the cert provider section, still need to address the verification side

L46-core-tls-credential-API.md Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Show resolved Hide resolved
L46-core-tls-credential-API.md Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
~TlsCustomVerificationCheckRequest() {}

absl::string_view target_name() const;
absl::string_view peer_cert() const;

Choose a reason for hiding this comment

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

I think that comment is another signal that this API is not useful for anyone since they cannot really predict what the return value should be. I think we should probably deprecate + delete this API and replace it with APIs that return predictable and explicit values.

L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
// identity certificates(single side TLS).
class TlsChannelCredentialsOptions final : public TlsCredentialsOptions {
public:
// Sets the decision of whether to do a crypto check on the server certs.

Choose a reason for hiding this comment

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

Despite the other comment, I think we need to clean up this comment so that it is more precise. :)

~TlsCustomVerificationCheckRequest() {}

absl::string_view target_name() const;
absl::string_view peer_cert() const;

Choose a reason for hiding this comment

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

How do we get a verified chain on resumed handshakes?

L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Show resolved Hide resolved
@gtcooke94 gtcooke94 marked this pull request as ready for review June 11, 2024 17:13
Copy link

@matthewstevenson88 matthewstevenson88 left a comment

Choose a reason for hiding this comment

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

LGTM, modulo the newly-added comments.

L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
~TlsCustomVerificationCheckRequest() {}

absl::string_view target_name() const;
absl::string_view peer_cert() const;

Choose a reason for hiding this comment

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

Ya that's what I was hinting at. Resumed handshakes skip the cryptographic verification, but I'm not sure if they skip the post-handshake verification. If that's correct, we need to explain that some of these fields may not be available on resumed handshakes.

L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
L46-core-tls-credential-API.md Outdated Show resolved Hide resolved
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.

4 participants