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
feat: basic auth API #2199
feat: basic auth API #2199
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2199 +/- ##
==========================================
+ Coverage 64.19% 64.21% +0.02%
==========================================
Files 107 107
Lines 14924 14924
==========================================
+ Hits 9580 9583 +3
+ Misses 4768 4766 -2
+ Partials 576 575 -1 ☔ View full report in Codecov by Sentry. |
10b64da
to
b011c6e
Compare
Signed-off-by: huabing zhao <zhaohuabing@gmail.com>
Signed-off-by: huabing zhao <zhaohuabing@gmail.com>
Signed-off-by: huabing zhao <zhaohuabing@gmail.com>
Signed-off-by: huabing zhao <zhaohuabing@gmail.com>
203ec7a
to
2f9bcbe
Compare
// Right now, only SHA hash algorithm is supported. | ||
// Reference to https://httpd.apache.org/docs/2.4/programs/htpasswd.html | ||
// for more details. | ||
Users gwapiv1b1.SecretObjectReference `json:"users"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefer if this field is called Htpasswd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer Users
because it's a user list, htpasswd is just the file format. The field should be named after its meaning instead of format.
Envoy also uses users
in the HTTP Basic Auth filter config.
ptal @envoyproxy/gateway-maintainers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks !
Signed-off-by: huabing zhao <zhaohuabing@gmail.com>
fd8e3cd
to
a974984
Compare
Signed-off-by: huabing zhao <zhaohuabing@gmail.com>
f1bf104
to
9fd58c0
Compare
/retest |
Related to: #1660
This PR adds API for HTTP Basic Auth: