Skip to content

fix: Prevent loss of Request.URL.Captures with Envoy ext_auth integration#2859

Merged
dadrus merged 2 commits intoreleasefrom
fix/propagation_of_captured_values_for_envoy
Nov 10, 2025
Merged

fix: Prevent loss of Request.URL.Captures with Envoy ext_auth integration#2859
dadrus merged 2 commits intoreleasefrom
fix/propagation_of_captured_values_for_envoy

Conversation

@dadrus
Copy link
Copy Markdown
Owner

@dadrus dadrus commented Nov 10, 2025

Related issue(s)

closes #2858

Checklist

  • I agree to follow this project's Code of Conduct.
  • I have read, and I am following this repository's Contributing Guidelines.
  • I have read the Security Policy.
  • I have referenced an issue describing the bug/feature request.
  • I have added tests that prove the correctness of my implementation.

Description

This PR fixes an issue where captured values from URL path wildcards were not propagated through the pipeline when using the Envoy integration. The root cause was that the URL object was recreated on each access to the Request object, resetting its Captures map. The fix ensures that the URL instance is created once and reused.

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.29%. Comparing base (e1a4c27) to head (b36ecd0).
⚠️ Report is 1 commits behind head on release.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff            @@
##           release    #2859   +/-   ##
========================================
  Coverage    91.29%   91.29%           
========================================
  Files          283      283           
  Lines        10670    10672    +2     
========================================
+ Hits          9741     9743    +2     
  Misses         677      677           
  Partials       252      252           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dadrus dadrus changed the title fix: Prevent loss of Request.URL.Captures with Envoy ext_auth integration due to Request object reinitialization fix: Prevent loss of Request.URL.Captures with Envoy ext_auth integration Nov 10, 2025
@dadrus dadrus merged commit bedbed2 into release Nov 10, 2025
19 checks passed
@dadrus dadrus deleted the fix/propagation_of_captured_values_for_envoy branch November 10, 2025 19:58
@dadrus dadrus linked an issue Nov 10, 2025 that may be closed by this pull request
3 tasks
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.

Kubernetes RuleSet provider does not seem to populate request captures

1 participant