boundless-lifeguard-61788
08/09/2024, 6:42 PMboundless-lifeguard-61788
08/09/2024, 6:46 PMThe requested feature is not enabled in this environment
if it does what are we missing
The error we are encountering is
{"json":{"src":"main.go:13"},"level":"error","msg":"authentication error! Original Error: <nil>, Auth Error: failed to issue token. Error: failed to get token: oauth2: \"access_denied\" \"The requested feature is not enabled in this environment.\"","ts":}
the config file
admin:
endpoint: dns:///[ourendpoint]
authType: ClientSecret
clientId: [clientId:]
clientSecretEnvVar: FLYTE_CLIENT_SECRET
authorizationServerUrl: https://[ouoidcurl]]
scopes:
- openid
- profile
- email
- read_user
tokenUrl: https://[ouroidtokenurl]
insecure: false
logger:
show-source: true
level: 6
@damp-animal-95109average-finland-92144
08/09/2024, 10:00 PMClientSecret
and clientSecreLocation
are two of the configs that need to go together, and this is preferred over using an envvar (ref)thankful-minister-83577
damp-animal-95109
08/09/2024, 11:22 PMflytepropeller
admin:
endpoint: dns:///<our_endpoint>
authType: ClientSecret
clientId: flytepropeller
clientSecretEnvVar: FLYTE_CLIENT_SECRET
logger:
show-source: true
level: 6
This worked inside a docker container for both flytectl
and pyflyte
using either the env var or the secret file.
Thanks for your quick response!