mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 10:15:35 +01:00
skip configuration update in readonly mode
Admin must have a way to switch off the readonly by call configuration api, either internal or external. Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
c8ca6a5ccf
commit
8b4211717e
@ -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