Ahmed Laadraoui
04/20/2023, 4:12 PMadmin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: dns:///127.0.0.1:8080
authType: Pkce
insecure: true
clientId: <My Client ID here>
logger:
show-source: true
level: 10
then forward the port to 8080 like so:
kubectl -n flyte port-forward service/flyteadmin 8080:81
then I create the project using flytectl create:
flytectl create project --file project.yaml
This is where I am getting the attached logs
After one second I am redirected to this link:
https://localhost:30081/oauth2/authorize?client_id=flytectl&redirect_uri=http%3A%2F%[…]NTRqenJxbWY&state=Z2Zja3JqemRyZ2Q4cDRjd3h3enZkbTh0NnRrbDh2MnQ
Then after couple seconds I see this in the logs and the execution is ended:
Error: authentication error! Original Error: rpc error: code = Unauthenticated desc = token parse error [JWT_VERIFICATION_FAILED] Could not retrieve id token from metadata, caused by: rpc error: code = Unauthenticated desc = Request unauthenticated with IDToken, Auth Error: context was canceled during auth flow
{"json":{"src":"main.go:13"},"level":"error","msg":"authentication error! Original Error: rpc error: code = Unauthenticated desc = token parse error [JWT_VERIFICATION_FAILED] Could not retrieve id token from metadata, caused by: rpc error: code = Unauthenticated desc = Request unauthenticated with IDToken, Auth Error: context was canceled during auth flow","ts":"2023-04-20T16:10:46Z"}
I don’t know if I missed something in the authentication setup.
Your guidance will be very appreciable. Looking forward to it 🙂David Espejo (he/him)
04/20/2023, 4:59 PMkubectl get svc -n <flyte namespace>
?Ahmed Laadraoui
04/20/2023, 7:15 PMDavid Espejo (he/him)
04/20/2023, 7:24 PMinsecureSkipVerify: true
to your config.yaml
?Ahmed Laadraoui
04/20/2023, 8:10 PMadmin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: dns:///127.0.0.1:8080
authType: Pkce
insecure: true
clientId: ****.<http://apps.googleusercontent.com|apps.googleusercontent.com>
insecureSkipVerify: true
logger:
show-source: true
level: 10