From 0c8cbe4d4f375cde47a51f1f06877c9d6220e899 Mon Sep 17 00:00:00 2001 From: Ishank Arora Date: Fri, 15 Oct 2021 17:54:44 +0200 Subject: [PATCH] Add machine auth endpoint to gateway --- storage/pkg/flagset/gateway.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/storage/pkg/flagset/gateway.go b/storage/pkg/flagset/gateway.go index 940368532..34c008e0c 100644 --- a/storage/pkg/flagset/gateway.go +++ b/storage/pkg/flagset/gateway.go @@ -124,6 +124,13 @@ func GatewayWithConfig(cfg *config.Config) []cli.Flag { EnvVars: []string{"STORAGE_AUTH_BEARER_ENDPOINT"}, Destination: &cfg.Reva.AuthBearer.Endpoint, }, + &cli.StringFlag{ + Name: "auth-machine-endpoint", + Value: flags.OverrideDefaultString(cfg.Reva.AuthMachine.Endpoint, "localhost:9166"), + Usage: "endpoint to use for the machine auth provider", + EnvVars: []string{"STORAGE_AUTH_MACHINE_ENDPOINT"}, + Destination: &cfg.Reva.AuthMachine.Endpoint, + }, // storage registry