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

Add TLS logging #1662

Open
bwbroersma opened this issue Feb 10, 2025 · 0 comments
Open

Add TLS logging #1662

bwbroersma opened this issue Feb 10, 2025 · 0 comments

Comments

@bwbroersma
Copy link
Collaborator

bwbroersma commented Feb 10, 2025

  • Enable HTTP3 in nginx #1660 adds logging of $http3, but maybe more should be logged, both in access log and error, to catch TLS connection errors (unsupported ciphers). Logging this would tell what the percentage of TLSv1.3 users is, and the support for certain elliptic-curves and post quantum crypto (related Should we start checking for PQC ? #1640) of the Internet.nl user base is. These number could support decisions about removing TLSv1.2 support or change from RSA to EC (and if so what curve should be picked for maximum support).

E.g. if a remote user is connecting over IPv6:

map $remote_addr $is_ipv6 {
   ~: 1;
   default 0;
}

And the following variables:

$http2
$http3
$server_protocol
$scheme
$is_ipv6
$connection_requests
$ssl_alpn_protocol
$ssl_cipher
$ssl_ciphers
$ssl_curve
$ssl_curves
$ssl_early_data # the current NCSC-NL TLS config disables this, so it should always be empty
$ssl_protocol
$ssl_server_name # maybe together with $http_host this would indicate HTTP/2 Connection Reuse (RFC 9113 §9.1.1)
$ssl_session_reused

See all nginx variables that can be logged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant