Hampus Rosvall
05/09/2022, 5:46 PMKetan (kumare3)
Hampus Rosvall
05/10/2022, 5:13 AMauthType: Pkce
and insecure: false
I am getting following error when trying to communicate with the backend. The 302 response is the HTTP response from login page to IdP, as the oidc flow is happening in the ALB rather than in the application itself.
For the second question I was referring to this security advisory where the suggested workaround is disabling flyte console availability on the internet. Not sure how that would work in practice, i.e., how do you do communicate with the Flyte Admin either locally or from a CI/CD workflow?
~: flytectl get projects
Error: rpc error: code = Unknown desc = Found: HTTP status code 302; transport: received the unexpected content-type "text/html"
Ketan (kumare3)
Hampus Rosvall
05/10/2022, 1:51 PMKetan (kumare3)
Hampus Rosvall
05/10/2022, 3:31 PMKetan (kumare3)
Prafulla Mahindrakar
05/11/2022, 7:25 AMHampus Rosvall
05/12/2022, 8:13 AM~/.flyte/config.yaml
but I am getting the following error below as the are using the oidc Ingress annotations i.e., the endpoint hits the
~: flytectl get projects
{"json":{"src":"viper.go:398"},"level":"debug","msg":"Config section [storage] updated. No update handler registered.","ts":"2022-05-12T10:11:43+02:00"}
{"json":{"src":"viper.go:398"},"level":"debug","msg":"Config section [root] updated. No update handler registered.","ts":"2022-05-12T10:11:43+02:00"}
{"json":{"src":"viper.go:400"},"level":"debug","msg":"Config section [admin] updated. Firing updated event.","ts":"2022-05-12T10:11:43+02:00"}
{"json":{"src":"viper.go:398"},"level":"debug","msg":"Config section [files] updated. No update handler registered.","ts":"2022-05-12T10:11:43+02:00"}
{"json":{"src":"client.go:183"},"level":"error","msg":"failed to initialize token source provider. Err: failed to fetch auth metadata. Error: rpc error: code = Unknown desc = Found: HTTP status code 302; transport: received the unexpected content-type \"text/html\"","ts":"2022-05-12T10:11:44+02:00"}
{"json":{"src":"client.go:188"},"level":"warning","msg":"Starting an unauthenticated client because: can't create authenticated channel without a TokenSourceProvider","ts":"2022-05-12T10:11:44+02:00"}
{"json":{"src":"client.go:64"},"level":"info","msg":"Initialized Admin client","ts":"2022-05-12T10:11:44+02:00"}
Error: rpc error: code = Unknown desc = Found: HTTP status code 302; transport: received the unexpected content-type "text/html"
{"json":{"src":"main.go:13"},"level":"error","msg":"rpc error: code = Unknown desc = Found: HTTP status code 302; transport: received the unexpected content-type \"text/html\"","ts":"2022-05-12T10:11:44+02:00"}
As we are using oidc ALB annotations i.e., <http://alb.ingress.kubernetes.io/auth-type|alb.ingress.kubernetes.io/auth-type>: oidc
and pointing to our IDP.Prafulla Mahindrakar
05/12/2022, 9:37 AMHampus Rosvall
05/12/2022, 1:16 PMPrafulla Mahindrakar
05/13/2022, 6:23 AM<http://alb.ingress.kubernetes.io/auth-type|alb.ingress.kubernetes.io/auth-type>: oidc)
you added exists on both the ingress objects. for grpc helm installer creates a new ingress object
kubectl get ingress -n flyte
Hampus Rosvall
05/13/2022, 7:47 AMflyte-core
and flyte-core-grpc
has the same annotationsPrafulla Mahindrakar
05/13/2022, 10:30 AMHampus Rosvall
05/13/2022, 12:25 PMflytectl
to our endpoint and still be able to handle authentication. But perhaps there is no way to do so?Prafulla Mahindrakar
05/13/2022, 12:50 PMHampus Rosvall
05/18/2022, 6:53 AM