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

feat: add alert mappings for certificate errors #4919

Merged
merged 4 commits into from
Nov 21, 2024

Conversation

camshaft
Copy link
Contributor

@camshaft camshaft commented Nov 20, 2024

Description of changes:

This change adds more alert mappings, this time for certificate issues. This can provide a lot better insight into why the handshake is failing.

Call-outs:

One thing to note, as is still the case from #3171, this does not return alerts on the wire. It's only for the local TLS stack.

Testing:

I added EXPECT_FAILURE_WITH_ALERT in a couple of places to show the mappings coming through.

Long term, it would be nice to have some kind of snapshot tests for these mappings so we can be more exhaustive on the checks.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

tls/s2n_alerts.c Outdated Show resolved Hide resolved
@camshaft camshaft enabled auto-merge (squash) November 21, 2024 00:29
@camshaft camshaft merged commit a097d25 into aws:main Nov 21, 2024
38 checks passed
@camshaft camshaft deleted the cert-alerts branch November 21, 2024 01:49
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.

3 participants