bryancall opened a new pull request, #14070:
URL: https://github.com/apache/trafficserver/pull/14070

   Stacked on #14069: the first five commits are that PR's. Once it merges, 
this rebases to the last five.
   
   The master coverage nightly runs in the Rocky Linux 8 image, which ships 
OpenSSL 1.1.1k, with a coverage-instrumented build. Builds 
[1304](https://ci.trafficserver.apache.org/job/master/job/coverage/1304/), 
[1305](https://ci.trafficserver.apache.org/job/master/job/coverage/1305/) and 
[1306](https://ci.trafficserver.apache.org/job/master/job/coverage/1306/) each 
ended with the same 14 failures. This PR fixes two of them, test_tls_sni_groups 
and http2_flow_control-policy1-out-http2. It depends on #14069 (the quiche 
nightly fixes), which fixes the nine test_cache_shm_* tests and the three 
test_tls_check_dual_cert_selection* tests that failed in the same builds for 
the same reasons as on the quiche job.
   
   **test_tls_sni_groups.** The test configured bbb.com with 
`server_groups_list: x25519`. OpenSSL 1.1.1k matches group names 
case-sensitively, so `SSL_set1_groups_list()` rejects the lowercase name. ATS 
logged `ERROR: Invalid server_groups_list: x25519`, failed the SNI action, and 
the TLSv1.2 handshake to bbb.com ended with an internal error alert (SSL alert 
80). OpenSSL 4.0.3 accepts either spelling, which is why PR CI passes. The test 
now uses `X25519`, the name OpenSSL gives the group, which both versions accept.
   
   While there, three checks that passed whether or not ATS applied the policy 
now discriminate:
   - X25519 is also OpenSSL's default first group, so the bbb.com handshake 
negotiated it even with no list applied. A client that offers only P-256 must 
now be refused by bbb.com.
   - Below OpenSSL 3.5, aaa.com's `X25519MLKEM768` list is itself invalid, so 
every aaa.com handshake was refused and its TLSv1.3-only policy went untested. 
aaa.com now uses P-384 there. A TLSv1.3 handshake must succeed on every 
version, and a client that offers only X25519 must be refused.
   - The "Setting groups list" log assertions are anchored to the end of the 
line, so the bbb.com check no longer also matches the aaa.com `X25519MLKEM768` 
line.
   
   **http2_flow_control.** policy1-out-http2 failed in both nightlies, each 
time with Proxy Verifier's `Timed out waiting for dependencies for key: 
sixth-request-cached` after a 16 second session. The policy 1 and 2 variants 
push 120 KB bodies through a 10-byte window, and the test turned on the `http` 
debug tags. That prefix also matches the http2 tags, which log every DATA and 
WINDOW_UPDATE frame: about 500,000 lines to traffic.out for one run of that 
variant. No variant checks the ATS log, so the test now leaves debug logging 
off. Unloaded, the variant took 7.0 s with debug logging and 1.7 s without. 
Rerun locally with `proxy.config.diags.debug` enabled if you need a trace.
   
   Test plan, in the coverage job's image 
(`ci.trafficserver.apache.org/ats/rockylinux:8`, preset `branch-coverage`, the 
job's own stage scripts):
   - test_tls_sni_groups
     - Unfixed master: fails with alert 80, and ATS logs `Invalid 
server_groups_list: x25519`.
     - With this change (and #14069): the selection of the 14 failing tests 
gives 35 passed, 9 skipped (the cache shm tests).
     - Mutations on OpenSSL 1.1.1k, each run against the test before and after 
the follow-up commits:
       - bbb.com list `X25519:P-256`: passed before, now fails at the P-256 
refusal.
       - aaa.com allowing TLSv1.2: passed before, now fails at the TLSv1.2 
refusal.
       - bbb.com list removed: failed before and after.
       - bbb.com list `P-256`: fails at the Temp Key check.
     - In the PR CI image (`fedora:45`, preset `ci-fedora-urtest`, OpenSSL 
4.0.3): passes, along with the three dual cert tests. The `X25519:P-256` mutant 
and an aaa.com list-removed mutant both fail at the new refusals.
   - http2_flow_control, in a container with a 4-CPU cpuset and a 0.4 CPU quota 
to stand in for a slow CI agent:
     - Before: policy1-out-http2 failed 3 of 3 with the same Proxy Verifier 
error and a 16.3 s session, as in the nightlies.
     - After: passed 5 of 5 at 3.6 s, with 5 lines in traffic.out. All 24 
replay variants passed 2 of 2. At a 0.25 CPU quota, the four policy 1 and 2 
in-http2 and out-http2 variants passed 3 of 3 at about 5.6 s.
     - Cause, not timing luck: with `diags.debug.enabled: 3` kept but the tags 
set to match nothing, the variant passed 3 of 3 at 3.5 s under the same quota. 
The cost is the log volume, not debug mode itself.
     - The variants still test flow control with debug off (PR CI image): an 
ATS change that splits each stream WINDOW_UPDATE into two frames with the same 
total makes all 12 small-window variants fail at their `WINDOW_UPDATE.*id N: 
10` (or `: 500`) checks, and setting policy1-out-http2's 
`initial_window_size_out` to 11 fails at `INITIAL_WINDOW_SIZE:10`.
   - Jenkins, a copy of the coverage job run on this branch with the full 
suite: [coverage-iterate 
3](https://ci.trafficserver.apache.org/job/experimental/job/coverage-iterate/3/),
 1525 passed, 88 skipped, none failed. The nine cache shm tests are among the 
skips; the other 14 formerly failing tests pass.


-- 
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]

Reply via email to