I'm having trouble configuring flytectl after impl...
# flyte-support
i
I'm having trouble configuring flytectl after implementing auth. Partly because I can't seem to configure an endpoint that responds. Is there some example documentation or can someone please help me out?
h
Hey @icy-queen-60245, can you clarify what you mean by configuring an endpoint that responds? If you use the UI, does it prompt you for auth now? The flytectl config should looks something like this:
Copy code
admin:
  # Update with the Flyte's ingress endpoint (e.g. flyteIngressIP for sandbox or <http://example.foobar.com|example.foobar.com>)
  # You must keep the 3 forward-slashes after dns:
  endpoint: dns:///<Flyte ingress url>

  # Update auth type to `Pkce` or `ClientSecret`
  authType: Pkce

  # Set to the clientId (will be used for both Pkce and ClientSecret flows)
  # Leave empty to use the value discovered through flyteAdmin's Auth discovery endpoint.
  clientId: <Id>

  # Set to the location where the client secret is mounted.
  # Only needed/used for `ClientSecret` flow.
  clientSecretLocation: </some/path/to/key>
i
So yes, the UI does prompt me for auth and it works with my cognito setup. But I can't seem to get this config file properly setup. I'm using the same dns:///my.domain.com address But I get this error "{"json":{},"level":"warning","msg":"Failed fetching from cache. Will restart the flow. Error: no token found in the cache","ts":"2024-10-01T113925-06:00"} {"json":{},"level":"fatal","msg":"Couldn't start the callback http server on host my.domain.com due to listen tcp: address my.domain.com: missing port in address"
I currently have my my.domain.com/callback configured in my flyte build, instead of using the localhost address.
h
Do you have ingress setup as well? otherwise the server (flyteadmin) listens on two different ports (one for http and one for grpc)
i
Yes I do