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

internal/envoy: support AuthPolicy on direct response routes #6426

Merged
merged 2 commits into from
May 8, 2024

Conversation

skriss
Copy link
Member

@skriss skriss commented May 8, 2024

Previously, auth policies on direct response routes were ignored.

Based on #5962, included just the ExtAuth changes (will look at global rate limit E2E additions separately) and added routes/test cases to the existing ExtAuth E2E for simplicity.

Previously, auth policies on direct response routes
were ignored.

Signed-off-by: Steve Kriss <stephen.kriss@gmail.com>
Co-authored-by: shadi-altarsha <shadi.altarsha@reddit.com>
@skriss skriss added the release-note/none-required Marks a PR as not requiring a release note. Should only be used for very small changes. label May 8, 2024
@skriss skriss requested a review from a team as a code owner May 8, 2024 18:11
@skriss skriss requested review from tsaarni and sunjayBhatia and removed request for a team May 8, 2024 18:11
@sunjayBhatia sunjayBhatia requested review from a team, rajatvig and izturn and removed request for a team May 8, 2024 18:11
Signed-off-by: Steve Kriss <stephen.kriss@gmail.com>
@skriss skriss enabled auto-merge (squash) May 8, 2024 18:18
Copy link

codecov bot commented May 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.63%. Comparing base (a485abb) to head (0784259).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #6426   +/-   ##
=======================================
  Coverage   81.62%   81.63%           
=======================================
  Files         133      133           
  Lines       15857    15862    +5     
=======================================
+ Hits        12944    12949    +5     
  Misses       2619     2619           
  Partials      294      294           
Files Coverage Δ
internal/envoy/v3/route.go 80.03% <100.00%> (+0.15%) ⬆️

{Prefix: "/direct-response-auth-enabled"},
},
DirectResponsePolicy: &contour_v1.HTTPDirectResponsePolicy{
StatusCode: http.StatusTeapot,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! 🫖

@skriss skriss merged commit c07a0ba into projectcontour:main May 8, 2024
26 checks passed
@skriss skriss deleted the pr-extauth-direct-response branch May 9, 2024 21:22
SamMHD pushed a commit to SamMHD/contour that referenced this pull request Sep 8, 2024
…contour#6426)

Previously, auth policies on direct response routes
were ignored.

Signed-off-by: Steve Kriss <stephen.kriss@gmail.com>
Co-authored-by: shadi-altarsha <shadi.altarsha@reddit.com>
Signed-off-by: Saman Mahdanian <saman@mahdanian.xyz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/none-required Marks a PR as not requiring a release note. Should only be used for very small changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants