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

api: support failOpen in ext auth #2908

Merged
merged 2 commits into from
Mar 15, 2024

Conversation

deszhou
Copy link
Contributor

@deszhou deszhou commented Mar 13, 2024

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

  • add a failOpen field for ext auth, set its default value to false

Fixes #2897

Signed-off-by: Dennis Zhou <idennis.zhou@gmail.com>
@deszhou deszhou requested a review from a team as a code owner March 13, 2024 07:49
Copy link

codecov bot commented Mar 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.45%. Comparing base (01a123a) to head (5093eab).
Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2908      +/-   ##
==========================================
+ Coverage   64.05%   64.45%   +0.39%     
==========================================
  Files         124      122       -2     
  Lines       20931    21037     +106     
==========================================
+ Hits        13407    13559     +152     
+ Misses       6671     6630      -41     
+ Partials      853      848       -5     

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

@deszhou
Copy link
Contributor Author

deszhou commented Mar 13, 2024

/retest

//
// +optional
// +kubebuilder:default=true
FailClosed *bool `json:"failClosed,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

imo this is less intuitive
prefer failOpen, @envoyproxy/gateway-maintainers @envoyproxy/gateway-reviewers can you share your preferences ?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, failOpen feels better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@arkodg arkodg requested review from a team March 13, 2024 22:57
Signed-off-by: Dennis Zhou <idennis.zhou@gmail.com>
Copy link
Member

@zhaohuabing zhaohuabing left a comment

Choose a reason for hiding this comment

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

LGTM Thanks!

@piotrmsc
Copy link

piotrmsc commented Mar 14, 2024

quick question, (I am just starting to get more familiar with the code base, sorry if I am not accurate) here https://github.com/envoyproxy/gateway/blob/main/internal/xds/translator/extauth.go#L98 it is set explicitly to false, should this be changed as well?

@arkodg
Copy link
Contributor

arkodg commented Mar 14, 2024

@piotrmsc this PR only handles the API change, a follow up PR will implement it

Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

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

LGTM thanks !

@arkodg arkodg merged commit 0f4a9dd into envoyproxy:main Mar 15, 2024
21 of 22 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.

Support failOpen in ext auth
4 participants