helpful-crowd-74546
08/18/2022, 5:47 AMclientSecret
authflow to be able to build and register workflows in our GitHub Actions CI builds. I looked at the CI docs here, and getting the following error both locally and in our CI when I run the same command. Has anyone experienced anything similar? Flytectl config available in comments
☁ ~ flytectl get projects
Error: rpc error: code = Unauthenticated desc = transport: oauth2: cannot fetch token: 401 Unauthorized
Response: {"error":"invalid_client","error_description":"Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method)."}
helpful-crowd-74546
08/18/2022, 5:49 AMadmin:
endpoint: dns:///domain
authType: ClientSecret
clientId: theClientId
clientSecretLocation: /path/to/secret # not base64 encoded
insecure: false
logger:
show-source: true
level: 1
tall-lock-23197
helpful-crowd-74546
08/18/2022, 6:51 AMicy-agent-73298
08/18/2022, 7:10 AMappAuth:
authServerType: External
externalAuthServer:
baseUrl: https://<provider-url>/oauth2/<auth-server-id>
thirdPartyConfig:
flyteClient:
clientId: <client-id>
redirectUri: <http://localhost:53593/callback>
scopes:
- all
helpful-crowd-74546
08/18/2022, 7:27 AM☁ terraform [main] ⚡ k logs flyteadmin-7fc47f776d-ddn4n
Defaulted container "flyteadmin" out of: flyteadmin, run-migrations (init), seed-projects (init), sync-cluster-resources (init), generate-secrets (init)
time="2022-08-18T07:24:48Z" level=info msg="Using config file: [/etc/flyte/config/cluster_resources.yaml /etc/flyte/config/clusters.yaml /etc/flyte/config/db.yaml /etc/flyte/config/domain.yaml /etc/flyte/config/logger.yaml /etc/flyte/config/remoteData.yaml /etc/flyte/config/server.yaml /etc/flyte/config/storage.yaml /etc/flyte/config/task_resource_defaults.yaml]"
{"json":{},"level":"debug","msg":"Config section [notifications] updated. No update handler registered.","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"debug","msg":"Config section [domains] updated. No update handler registered.","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"debug","msg":"Config section [externalevents] updated. No update handler registered.","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"debug","msg":"Config section [queues] updated. No update handler registered.","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"debug","msg":"Config section [qualityofservice] updated. No update handler registered.","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"debug","msg":"Config section [task_resources] updated. No update handler registered.","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"debug","msg":"Config section [plugins] updated. No update handler registered.","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"debug","msg":"Config section [plugins.catalogcache] updated. No update handler registered.","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"debug","msg":"Config section [plugins.k8s] updated. No update handler registered.","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"debug","msg":"Config section [admin] updated. Firing updated event.","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"debug","msg":"Config section [remotedata] updated. No update handler registered.","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"debug","msg":"Config section [namespace_mapping] updated. No update handler registered.","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"debug","msg":"Config section [database] updated. No update handler registered.","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"debug","msg":"Config section [auth] updated. No update handler registered.","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"debug","msg":"Config section [server] updated. No update handler registered.","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"debug","msg":"Config section [scheduler] updated. No update handler registered.","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"debug","msg":"Config section [cloudevents] updated. No update handler registered.","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"debug","msg":"Config section [secrets] updated. No update handler registered.","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"debug","msg":"Config section [storage] updated. No update handler registered.","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"info","msg":"setting metrics keys to [project domain wf task phase tasktype runtime_type runtime_version app_name]","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"info","msg":"Serving Flyte Admin Insecure","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"info","msg":"Starting profiling server on port [10254]","ts":"2022-08-18T07:24:48Z"}
{"json":{},"level":"error","msg":"Error creating resource server 404 Not Found: ","ts":"2022-08-18T07:24:48Z"}
Error: 404 Not Found:
Usage:
flyteadmin serve [flags]
helpful-crowd-74546
08/18/2022, 7:34 AMicy-agent-73298
08/18/2022, 7:39 AMhelpful-crowd-74546
08/18/2022, 7:44 AMhelpful-crowd-74546
08/18/2022, 7:46 AMserver.yaml: |
auth:
appAuth:
authServerType: External
externalAuthServer:
baseUrl: <https://login.microsoftonline.com/tenantId/v2.0>
thirdPartyConfig:
flyteClient:
clientId: clientId
redirectUri: <http://localhost:53593/callback>
scopes:
- offline
- all
authorizedUris:
- <https://domain>
- <http://flyteadmin:80>
- <http://flyteadmin.flyte.svc.cluster.local:80>
userAuth:
openId:
baseUrl: <https://login.microsoftonline.com/tenantId/v2.0>
clientId: clientId
scopes:
- profile
- openid
helpful-crowd-74546
08/18/2022, 7:47 AMicy-agent-73298
08/18/2022, 7:50 AM<https://login.microsoftonline.com/tenantId/v2.0/.well-known/oauth-authorization-server>
helpful-crowd-74546
08/18/2022, 7:52 AMopenid-configuration
suffix workshelpful-crowd-74546
08/18/2022, 7:55 AMicy-agent-73298
08/18/2022, 7:55 AMappAuth:
authServerType: External
externalAuthServer:
baseUrl: <https://login.microsoftonline.com/tenantId/v2.0>
metadataUrl: .well-known/openid-configuration
And checkhelpful-crowd-74546
08/18/2022, 7:56 AMicy-agent-73298
08/18/2022, 8:00 AMhelpful-crowd-74546
08/18/2022, 8:03 AMicy-agent-73298
08/18/2022, 8:04 AMhelpful-crowd-74546
08/18/2022, 8:05 AMhelpful-crowd-74546
08/18/2022, 8:06 AMhelpful-crowd-74546
08/18/2022, 8:06 AMhelpful-crowd-74546
08/18/2022, 8:07 AM☁ terraform [main] ⚡ flytectl get projects
Error: rpc error: code = Unauthenticated desc = transport: oauth2: cannot fetch token: 400 Bad Request
Response: {"error":"invalid_scope","error_description":"AADSTS1002012: The provided value for scope offline all is not valid
icy-agent-73298
08/18/2022, 8:09 AMhelpful-crowd-74546
08/18/2022, 8:10 AMicy-agent-73298
08/18/2022, 8:12 AMicy-agent-73298
08/18/2022, 8:12 AMhelpful-crowd-74546
08/18/2022, 8:18 AM☁ ⚡ flytectl get projects
Error: rpc error: code = Unauthenticated desc = transport: oauth2: cannot fetch token: 400 Bad Request
Response: {"error":"invalid_scope","error_description":"AADSTS1002012: The provided value for scope openid email offline_access is not valid. Client credential flows must have a scope value with /.default suffixed to the resource identifier
icy-agent-73298
08/18/2022, 8:40 AMhelpful-crowd-74546
08/18/2022, 9:09 AMhelpful-crowd-74546
08/18/2022, 1:05 PMicy-agent-73298
08/18/2022, 1:45 PMhelpful-crowd-74546
08/18/2022, 3:22 PMhelpful-crowd-74546
08/18/2022, 3:23 PMicy-agent-73298
08/18/2022, 3:27 PMicy-agent-73298
08/18/2022, 3:28 PMi used this scope https://graph.microsoft.com/.defaultThat seems to be an example scope
helpful-crowd-74546
08/18/2022, 3:34 PMhelpful-crowd-74546
08/18/2022, 3:34 PMhelpful-crowd-74546
08/18/2022, 3:35 PMi used this scope <https://graph.microsoft.com/.default>
That seems to be an example scope
helpful-crowd-74546
08/18/2022, 3:36 PMicy-agent-73298
08/18/2022, 3:54 PMicy-agent-73298
08/18/2022, 4:27 PMhelpful-crowd-74546
08/18/2022, 4:28 PMhelpful-crowd-74546
08/18/2022, 4:28 PMhelpful-crowd-74546
08/22/2022, 5:14 AMserver.yaml: |
auth:
appAuth:
thirdPartyConfig:
flyteClient:
clientId: flytectl
redirectUri: <http://localhost:53593/callback>
scopes:
- all
- offline
authorizedUris:
- <https://domain>
- <http://flyteadmin:80>
- <http://flyteadmin.flyte.svc.cluster.local:80>
userAuth:
openId:
baseUrl: <https://login.microsoftonline.com/tenantId/v2.0>
clientId: clientId
scopes:
- profile
- openid
This is my config currently. Why would I change from our IdP clientId to use Flytepropeller? Not quite sure I am followingicy-agent-73298
08/22/2022, 5:59 AMhelpful-crowd-74546
08/22/2022, 11:36 AMicy-agent-73298
08/22/2022, 11:50 AMicy-agent-73298
08/22/2022, 12:19 PM