mirror of
https://github.com/goharbor/harbor.git
synced 2025-03-11 14:09:55 +01:00
Merge pull request #10951 from wy65701436/readonly-filter
skip configuration update in readonly mode
This commit is contained in:
commit
50e9d1a56e
@ -41,6 +41,8 @@ var (
|
||||
|
||||
// readonlySkippers skip the post request when harbor sets to readonly.
|
||||
readonlySkippers = []middleware.Skipper{
|
||||
middleware.MethodAndPathSkipper(http.MethodPut, match("^/api/v2.0/configurations")),
|
||||
middleware.MethodAndPathSkipper(http.MethodPut, match("^/api/internal/configurations")),
|
||||
middleware.MethodAndPathSkipper(http.MethodPost, match("^/c/login")),
|
||||
middleware.MethodAndPathSkipper(http.MethodPost, match("^/c/userExists")),
|
||||
middleware.MethodAndPathSkipper(http.MethodPost, match("^/c/oidc/onboard")),
|
||||
|
Loading…
Reference in New Issue
Block a user