Hi, I am using the `flyte-binary` helm chart to se...
# ask-the-community
b
Hi, I am using the
flyte-binary
helm chart to setup external auth server. Unfortunately, not being successfully, the below config is not getting propagated to the configmap. Setting
enableAuthServer=false
is having no effect. Has anyone successfully used
flyte-binary
helm chart to setup an external server?
Copy code
configuration:
  auth:
    enabled: true
    enableAuthServer: false
    oidc:
      baseUrl: "okta-server"
      clientId: "my_id"
      clientSecret: "my_secret-"
    internal:
      # propeller
      clientId: "my_id"
      clientSecret: "my_secret-"
      clientSecretHash: "hash
    flyteClient:
      clientId: my_id"
      redirectUri: <http://localhost:53593/callback>
      scopes:
        - all
        - offline
    authorizedUris:
      - https://${app_name}.${env}.<http://cloud.com|cloud.com>
      - <http://flyteadmin:80>
      - <http://flyteadmin.flyte.svc.cluster.local:80>
j
enableAuthServer: false
just disables the auth server in flyteadmin: https://github.com/flyteorg/flyte/blob/baba9bd59008d640c10344906c11473b1cfb166e/charts/flyte-binary/templates/configmap.yaml#L128 are you perhaps missing some configuration?
you can add the external auth server under
configuration.inline
b
Thanks @jeev. I will add it in the inline and keep you posted.
@jeev I have added the following block in addition the one above. Is this correct? I found an issue reported here. Would be great if you can point to me of an working example. Thanks https://github.com/flyteorg/flyte/issues/3660
Copy code
configuration:  
 inline:
    authServerType: External
    externalAuthServer:
      baseUrl: "<https://xxx/oauth2/aus9pvuqy0Xc2VzSA5d7>"
j
the flyte-binary helm chart templates the core configuration but you can merge arbitrary config in from configuration.inline into the final configuration that flyte-binary will use. i don’t have an example of external auth server unfortunately. @Yee @Eduardo Apolinario (eapolinario) do we have docs for this?
@Bosco Raju: looks like you need to nest that block under auth.appAuth. See: https://github.com/flyteorg/flyte/blob/baba9bd59008d640c10344906c11473b1cfb166e/charts/flyte-binary/templates/configmap.yaml#L126 for structure.
something like:
Copy code
configuration:  
  inline:
    auth:
      appAuth:
        authServerType: External
        externalAuthServer:
          baseUrl: "<https://xxx/oauth2/aus9pvuqy0Xc2VzSA5d7>"
b
Thanks @jeev. I will test it out.