caddy/modules/caddyhttp
Y.Horie 8d3a1b8bcb
caddyauth: Use singleflight for basic auth (#5344)
* caddyauth: Add singleflight for basic auth

* Fixes #5338
* it occurred the thunder herd problem like this https://medium.com/@mhrlife/avoid-duplicate-requests-while-filling-cache-98c687879f59

* Update modules/caddyhttp/caddyauth/basicauth.go

Fix comment

Co-authored-by: Francis Lavoie <lavofr@gmail.com>

---------

Co-authored-by: Francis Lavoie <lavofr@gmail.com>
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
2023-02-06 18:29:03 +00:00
..
caddyauth caddyauth: Use singleflight for basic auth (#5344) 2023-02-06 18:29:03 +00:00
encode encode: Respect Cache-Control no-transform (#5257) 2022-12-20 13:26:53 -07:00
fileserver fileserver: Add a couple test cases 2023-01-04 11:07:27 -07:00
headers reverseproxy: On 103 don't delete own headers (#5091) 2022-09-29 08:19:56 -06:00
map map: Clarified how destination values should be formatted (#5156) 2022-10-18 18:14:53 -06:00
push reverseproxy: Mask the WS close message when we're the client (#5199) 2022-11-14 09:38:02 -07:00
requestbody requestbody: Return HTTP 413 (fix #4558) 2022-03-11 12:34:55 -07:00
reverseproxy reverseproxy: Add flag to short command to disable redirects (#5330) 2023-01-25 09:40:08 -05:00
rewrite reverseproxy: Mask the WS close message when we're the client (#5199) 2022-11-14 09:38:02 -07:00
standard reverseproxy: Support performing pre-check requests (#4739) 2022-05-06 10:50:26 -04:00
templates reverseproxy: Mask the WS close message when we're the client (#5199) 2022-11-14 09:38:02 -07:00
tracing tracing: Support placeholders in span name (#5329) 2023-01-25 02:26:44 -05:00
app.go chore: Build with Go 1.20, keep minimum at 1.18 for now (#5353) 2023-02-06 11:29:20 -05:00
autohttps.go caddyhttp: Skip inserting HTTP->HTTPS redir if catch-all for both exist (#5051) 2022-09-19 22:11:19 -06:00
caddyhttp_test.go fileserver: Reject ADS and short name paths; trim trailing dots and spaces on Windows (#5148) 2022-10-18 21:55:25 -06:00
caddyhttp.go chore: Build with Go 1.20, keep minimum at 1.18 for now (#5353) 2023-02-06 11:29:20 -05:00
celmatcher_test.go Expose several Caddy HTTP Matchers to the CEL Matcher (#4715) 2022-06-22 18:53:46 -04:00
celmatcher.go core: Variadic Context.Logger(); soft deprecation 2022-09-16 16:55:36 -06:00
errors.go requestbody: Return HTTP 413 (fix #4558) 2022-03-11 12:34:55 -07:00
httpredirectlistener.go caddyhttp: Move HTTP redirect listener to an optional module (#4585) 2022-02-19 15:36:36 -07:00
logging.go caddyhttp: Add 'skip_log' var to omit request from logs (#4691) 2022-09-15 10:05:36 -06:00
marshalers.go caddyhttp: Make logging of credential headers opt-in (#4438) 2021-12-02 13:26:24 -07:00
matchers_test.go chore: Fix warning "range variable captured by func literal" (#5348) 2023-01-31 03:07:57 -05:00
matchers.go caddyhttp: Add server-level trusted_proxies config (#5103) 2023-01-10 00:08:23 -05:00
metrics_test.go move common metrics-related funcs to internal package 2022-01-25 15:07:17 -05:00
metrics.go caddyhttp: Make metrics opt-in (#5042) 2022-09-16 13:32:49 -06:00
replacer_test.go caddyhttp: Remote IP prefix placeholders 2022-09-30 13:29:33 -06:00
replacer.go caddyhttp: Add server-level trusted_proxies config (#5103) 2023-01-10 00:08:23 -05:00
responsematchers_test.go reverseproxy: Add handle_response blocks to reverse_proxy (#3710) (#4021) 2021-05-02 12:39:06 -06:00
responsematchers.go reverseproxy: Mask the WS close message when we're the client (#5199) 2022-11-14 09:38:02 -07:00
responsewriter_test.go caddyhttp: ensure ResponseWriterWrapper and ResponseRecorder use ReadFrom if the underlying response writer implements it. (#5022) 2022-09-07 21:13:35 +01:00
responsewriter.go Tweak some comments 2022-09-21 12:59:44 -06:00
routes.go caddyhttp: Make metrics opt-in (#5042) 2022-09-16 13:32:49 -06:00
server.go chore: Build with Go 1.20, keep minimum at 1.18 for now (#5353) 2023-02-06 11:29:20 -05:00
staticerror.go reverseproxy: Mask the WS close message when we're the client (#5199) 2022-11-14 09:38:02 -07:00
staticresp_test.go Move from deprecated ioutil to os and io packages (#4364) 2021-09-29 11:17:48 -06:00
staticresp.go caddyhttp: Canonicalize header field names (#5176) 2022-10-29 16:35:44 -04:00
subroute.go reverseproxy: Enable changing only the status code (close #2920) 2020-06-04 12:06:38 -06:00
vars.go caddyhttp: Accept placeholders in vars matcher key 2022-09-01 16:49:18 -06:00