[BUG] Flyte-binary Helm misconfigures flyte-binary pod config when auth.externalAuthServer: true, and auth.internal.clientId is undefined in values.yaml #3659
Labels
bug
Something isn't working
Related issues
#3660 #3661
Describe the bug
When enabling external authorization servers for the Flyte-binary deployment, if
auth.externalAuthServer = true
in the values.yaml file, and ifauth.internal.clientId
is undefined (defaults toflytepropeller
), the flyte-binary pod will query the external authorization server with theflytepropeller
parameter as the clientId.This results in failed auth to the server when scheduling workflows/tasks/notebook tasks through pyflyte or the web console. Workflows and tasks will show up as
UNKNOWN
in the web console, and the flyte-binary pod will continuously make requests to the auth server - too many retries(? Have counted potentially 60 within a span of a minute to auth0,).Specifically, within the flyte-binary pod: if you exec into the
flyte
container in the pod at path:/etc/flyte/config.d/000-core.yaml
or a similar path, the relevant parameters within the admin field aren't set correctly.Or alternatively, add more documentation to clearly outline this behaviour so future users are aware of how these parameters are set - specifically within the context of integrating Auth0.
Tldr;
Granted, this could be classified as a documentation issue, but perhaps the
internal
key could be renamed to something along the lines ofpropeller
ordataplane
(not sure if this is the correct terminology) in order to clarify what is being configured with internal.Expected behavior
When
auth.enableAuthServer: false
, it might be a good idea to makeinternal.clientId
be a required parameter. In addition to that, it might help to indicate to users that this will then correspond to000-core.yaml
and will be used by the scheduler for workflow pods.The current documentation implies that this only needs to be set for internal use and makes no mention of it being linked to external.
One alternative is if
auth.enableAuthserver: false
, the Helm chart template could derive the values for000-core.yaml
--admin.clientId
from a different field in the values.yaml - thirdpartyconfig.flyteclient is one suggestion.Relevant path in the helm chart is
templates/configmap.yaml
Additional context to reproduce
Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: