Skip to content

Conversation

@maskit
Copy link
Member

@maskit maskit commented Aug 3, 2023

The change to use FetchSM for OCSP requests (#9591) unintentionally made ATS rely on remap rules, and that effectively broke OCSP if a user sets remap_required to 1. To recover the original behavior which does not rely on remap rules, this introduces a new flag for FetchSM, TS_FETCH_FLAGS_SKIP_REMAP, and the flag enables skipping remap on a transaction initiated by FetchSM even if remap_required is set to 1.

Since the flag is part of TS API, this also enables plugins to make HTTP requests for other servers without remap rules (if FetchSM is used).

@maskit maskit added this to the 10.0.0 milestone Aug 3, 2023
@maskit maskit self-assigned this Aug 3, 2023
@maskit maskit force-pushed the ocsp_unrequire_remap branch from 934c75f to 861694a Compare August 3, 2023 15:47
The change to use FetchSM for OCSP requests unintentionally made ATS rely on remap rules, and that effectively broke OCSP if a user
sets remap_required to 1. To recover the original behavior which does not rely on remap rules, this introduces a new flag for
FetchSM, TS_FETCH_FLAGS_SKIP_REMAP, and the flag enables skipping remap on a transaction initiated by FetchSM even if
remap_required is set to 1.

Since the flag is part of TS API, this also enables plugins to make HTTP requests for other servers without remap rules.
@maskit maskit force-pushed the ocsp_unrequire_remap branch from 861694a to cd77560 Compare August 3, 2023 15:48
@zwoop
Copy link
Contributor

zwoop commented Aug 7, 2023

I think I understand now (Thanks to @maskit ). The issue is that when setting up the FetchSM, there's no way to signal the HttpSM that it shouldn't require remap. The existing configurations and APIs works on the transactions, which you don't have yet when setting up the FetchSM (obviously).

@bryancall bryancall requested a review from bneradt August 7, 2023 22:28
@maskit maskit merged commit 766990e into apache:master Aug 14, 2023
cmcfarlen pushed a commit to cmcfarlen/trafficserver that referenced this pull request Jun 3, 2024
* asf/master: (221 commits)
  LSan: Fix leak of test_Metrics (apache#10179)
  LSan: Fix memory leak of test_EventSystem (apache#10178)
  LSan: Fix memory leak of test_X509HostnameValidator (apache#10161)
  Remove cqtx log field (apache#10111)
  Require ATS plugins to be compiled with C++17. (apache#10007)
  Fix conf_remap plugin build on macOS (apache#10177)
  libswoc: Update to 1.5.4 (apache#10155)
  Makes cmake build again, on macOS (apache#10172)
  Check SNI in h3 (apache#10184)
  Remove autoconf headers during CMake configuration (apache#10173)
  test_QUICLossDetector.cc: Add back get_hrtime() (apache#10185)
  ink_ink_get_hrtime -> ink_get_hrtime (apache#10182)
  mgmt: make libconfigmanager a true static library (apache#10181)
  Make sure that the thread local time is updated timely (apache#10163)
  Unrequire remap rules for OCSP (apache#10146)
  cache_range test performance improvement (apache#10170)
  Clean up certifier plugin debug messages. (apache#9975)
  cmake: add check for clock_gettime (apache#10169)
  Remove Http3NoError allocations (apache#10165)
  Fix Throttler initialization. (apache#10154)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants