mirror of
https://github.com/openfaas/faas.git
synced 2025-06-20 23:46:36 +00:00
Add basic auth to the system alert endpoint
**What** - Protect the `/system/alert` endpoint when basic auth is enabled - Update the alert manager config to send the basic auth credentials - Bump the gateway version Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
This commit is contained in:
committed by
Alex Ellis
parent
53645bb719
commit
f61735b155
@ -126,6 +126,8 @@ func main() {
|
||||
faasHandlers.ScaleFunction = handlers.MakeForwardingProxyHandler(reverseProxy, forwardingNotifiers, urlResolver, nilURLTransformer)
|
||||
|
||||
if credentials != nil {
|
||||
faasHandlers.Alert =
|
||||
auth.DecorateWithBasicAuth(faasHandlers.Alert, credentials)
|
||||
faasHandlers.UpdateFunction =
|
||||
auth.DecorateWithBasicAuth(faasHandlers.UpdateFunction, credentials)
|
||||
faasHandlers.DeleteFunction =
|
||||
|
Reference in New Issue
Block a user