infra
infra copied to clipboard
api fails to update identity information from provider when using an access key directly
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"}