infra icon indicating copy to clipboard operation
infra copied to clipboard

api fails to update identity information from provider when using an access key directly

Open jmorganca opened this issue 2 years ago • 0 comments

Create an access key for a user provided by Okta (or Google/Azure AD) and use it imperatively:

export INFRA_SERVER=infra.acme.com
export INFRA_ACCESS_KEY=x.y
infra login
infra use cluster
kubectl get pods

This will sometimes fail with 401 since when trying to sync with the identity provider

{"level":"info","error":"unauthorized: failed to update identity info from provider: record not found","method":"POST","path":"/api/tokens","statusCode":401,"remoteAddr":"192.168.205.197:33360","time":1660086393611,"caller":"server/routes.go:170","message":"api request error"}

jmorganca avatar Aug 09 '22 23:08 jmorganca