Add machine auth API key to ocs service

This commit is contained in:
Ishank Arora
2021-09-21 16:26:19 +02:00
parent 08c51ee8c8
commit fcd861f38f
6 changed files with 12 additions and 4 deletions

View File

@@ -295,7 +295,7 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
Name: "machine-auth-api-key",
Value: flags.OverrideDefaultString(cfg.MachineAuthAPIKey, "change-me-please"),
Usage: "the API key to be used for the machine auth driver in reva",
EnvVars: []string{"PROXY_MACHINE_AUTH_API_KEY"},
EnvVars: []string{"PROXY_MACHINE_AUTH_API_KEY", "OCIS_MACHINE_AUTH_API_KEY"},
Destination: &cfg.MachineAuthAPIKey,
},

View File

@@ -178,7 +178,7 @@ func (a *accountsServiceBackend) getAccount(ctx context.Context, query string) (
})
if err != nil {
a.logger.Error().Err(err).Str("query", query).Msgf("error fetching from accounts-service")
a.logger.Error().Err(err).Str("query", query).Msgf("error fetching from accounts-service %+v", a.tokenManager)
status = http.StatusInternalServerError
return
}