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 User-Agent header to reqwest client for JWKS request #21

Merged
merged 3 commits into from
Aug 1, 2024

Conversation

shiote2
Copy link
Contributor

@shiote2 shiote2 commented Jul 26, 2024

Please consider adding a User-Agent header to the reqwest client. Otherwise, the request is blocked by the NoUserAgent_HEADER rule of the AWSManagedRulesCommonRuleSet in AWS WAF.

src/keys_storage.rs Outdated Show resolved Hide resolved
@lmammino
Copy link
Owner

Awesome! Thanks for the amazing contribution! What do you think about adding the current version with a dynamic reference? Could you please test if this works for you?

Happy to get this merged and released ASAP then!

@shiote2
Copy link
Contributor Author

shiote2 commented Aug 1, 2024

Confirmed the changes work as expected in the AWS WAF environment.

Copy link

codecov bot commented Aug 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.11%. Comparing base (556e236) to head (5f9a32b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #21      +/-   ##
==========================================
+ Coverage   94.09%   94.11%   +0.01%     
==========================================
  Files           9        9              
  Lines        1186     1189       +3     
==========================================
+ Hits         1116     1119       +3     
  Misses         70       70              

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

@lmammino lmammino merged commit 3cf9a69 into lmammino:main Aug 1, 2024
4 checks passed
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.

2 participants