mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +00:00
Add basic auth support for /system/async-report
This commit adds basic authentication for `/system/async-report` endpoint. It also adds basic-auth secrets to `queue-worker` service which will be used for gateway calls to `/system/async-report`. Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
This commit is contained in:
parent
3576e40f02
commit
d926b2d886
@ -119,8 +119,12 @@ func main() {
|
||||
auth.DecorateWithBasicAuth(faasHandlers.ListFunctions, credentials)
|
||||
faasHandlers.ScaleFunction =
|
||||
auth.DecorateWithBasicAuth(faasHandlers.ScaleFunction, credentials)
|
||||
faasHandlers.QueryFunction = auth.DecorateWithBasicAuth(faasHandlers.QueryFunction, credentials)
|
||||
faasHandlers.InfoHandler = auth.DecorateWithBasicAuth(faasHandlers.InfoHandler, credentials)
|
||||
faasHandlers.QueryFunction =
|
||||
auth.DecorateWithBasicAuth(faasHandlers.QueryFunction, credentials)
|
||||
faasHandlers.InfoHandler =
|
||||
auth.DecorateWithBasicAuth(faasHandlers.InfoHandler, credentials)
|
||||
faasHandlers.AsyncReport =
|
||||
auth.DecorateWithBasicAuth(faasHandlers.AsyncReport, credentials)
|
||||
}
|
||||
|
||||
r := mux.NewRouter()
|
||||
|
Loading…
x
Reference in New Issue
Block a user