brbzull0 commented on PR #13908: URL: https://github.com/apache/trafficserver/pull/13908#issuecomment-6820193685
Thanks both. Reworked as @maskit suggested, and rebased onto master because the rework conflicted with it: #13548 rewrote `ssl_verify_client_callback()` and added `SSLNetVCAccess()` callers, and #13378 added a call right above one of them. Two corrections to the description, both fixed there now: - It said `ssl_verify_client_callback()` looks the connection up with `SSLNetVCAccess()`. On master it doesn't, as @bneradt pointed out. - It said a QUIC handshake fails the `ink_assert` in `SSLNetVCAccess()`. For these actions that happens only if one of them runs on a QUIC connection, and no HTTP/3 handshake runs them yet (see below). | Ask | Status | |---|---| | maskit: `NetVCAccess()` instead of `sni_netvc()` | Done. `SSLNetVCAccess()` is now `NetVCAccess()` returning the `NetVConnection`, both QUIC backends attach it, and only the callers that need `SSLNetVConnection` state cast. `sni_netvc()` is gone. | | bneradt 1: set the level on QUIC when there is no CA override | Done. `VerifyClient` refuses only when `verify_client_ca_certs` is set. | | bneradt 2: document the HTTP/3 refusals | Documented as TLS over TCP only, not as a refusal, because HTTP/3 doesn't reach these actions yet. Proof [in the thread](https://github.com/apache/trafficserver/pull/13908#discussion_r4514217347). | | bneradt 3: end-to-end H3 test | Not in this PR, see below. | On 2 and 3: none of this is reachable over HTTP/3 yet. The OpenSSL QUIC backend never calls `perform_sni_action()`, and the quiche backend calls it with local port 0 (`QUICNetVConnection::set_local_addr()` is empty), which no `sni.yaml` entry matches. An H3 test with an `ip_allow` action would see both clients served. I'd add that test, and the note that these actions refuse HTTP/3, with the change that makes HTTP/3 run the SNI actions. Here, a unit test on a real `QUICNetVConnection` checks that it attaches itself and that `SNI_IpAllow` then checks its peer. Range-diff: commits 2-4 are identical, and the first differs only in `CMakeLists.txt` context, where master added `test_SSLRPKUtils.cc`. The new fifth commit holds the rework. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
