creamy-greece-49911
08/01/2023, 4:03 PM2023-07-30 12:52:23.957 PDT time="2023-07-30T19:52:23Z" level=info msg="Using config file: [/etc/flyte/config.d/000-core.yaml /etc/flyte/config.d/001-plugins.yaml /etc/flyte/config.d/002-database.yaml /etc/flyte/config.d/003-storage.yaml /etc/flyte/config.d/004 auth.yaml /etc/flyte/config.d/012-database-secrets.yaml /etc/flyte/config.d/014-auth-secrets.yaml]"
2023-07-30 12:52:24.411 PDT Error:
2023-07-30 12:52:24.411 PDT 1 error(s) decoding:
2023-07-30 12:52:24.411 PDT {}
2023-07-30 12:52:24.411 PDT * error decoding 'appAuth.selfAuthServer.staticClients[flytepropeller].client_secret': illegal base64 data at input byte 0
2023-07-30 12:52:24.415 PDT Usage:
2023-07-30 12:52:24.415 PDT flyte secret init [flags]
2023-07-30 12:52:24.415 PDT {}
2023-07-30 12:52:24.415 PDT Flags:
2023-07-30 12:52:24.415 PDT -h, --help help for init
2023-07-30 12:52:24.415 PDT -p, --localPath string Specifies where the secrets should be written.
creamy-greece-49911
08/01/2023, 8:05 PMtall-lock-23197
creamy-greece-49911
08/02/2023, 5:35 AMcreamy-greece-49911
08/02/2023, 5:36 AM# auth Specify configuration for Flyte authentication
auth:
# enabled Enable Flyte authentication
enabled: false
# enableAuthServer Enable built-in authentication server
enableAuthServer: true
# oidc OIDC configuration for Flyte authentication
oidc:
# baseUrl URL for OIDC provider
baseUrl: ""
# clientId Flyte application client ID
clientId: ""
# clientSecret Flyte application client secret
clientSecret: ""
# internal Configuration for internal authentication
# The settings for internal still need to be defined if you wish to use an external auth server
# These credentials are used during communication beteween the FlyteAdmin and Propeller microservices
internal:
# clientId Client ID for internal authentication - set to flytepropeller or external auth server
clientId: flytepropeller
# clientSecret Client secret for internal authentication
clientSecret: ""
# clientSecretHash Bcrypt hash of clientSecret
clientSecretHash: ""
# Uncomment next line if needed - set this field if your external Auth server (ex. Auth0) requires an audience parameter
# audience: ""
# flyteClient Configuration for Flyte client authentication
flyteClient:
# clientId Client ID for Flyte client authentication
clientId: flytectl
# redirectUri Redirect URI for Flyte client authentication
redirectUri: <http://localhost:53593/callback>
# scopes Scopes for Flyte client authentication
scopes:
- all
# audience Audience for Flyte client authentication
audience: ""
# authorizedUris Set of URIs that clients are allowed to visit the service on
authorizedUris: []
# clientSecretExternalSecretRef Specify an existing, external Secret containing values for `client_secret` and `oidc_client_secret`.
# If set, a Secret will not be generated by this chart for client secrets.
clientSecretsExternalSecretRef: ""
creamy-greece-49911
08/02/2023, 5:37 AMtall-lock-23197
clientSecretHash
.creamy-greece-49911
08/02/2023, 3:29 PMcreamy-greece-49911
08/02/2023, 3:29 PMconfiguration.auth.internal.clientSecret
does this needs to be in base64 or crypt?tall-lock-23197
creamy-greece-49911
08/02/2023, 4:44 PMclientSecretHash
and regular secret string in internal.clientSecret
and still go the same errorcreamy-greece-49911
08/02/2023, 4:44 PMinternal.clientSecret
in base64 and did not changetall-lock-23197
average-finland-92144
08/02/2023, 4:55 PMflytepropeller
. A new set of instructions was merged here: https://docs.flyte.org/en/latest/deployment/configuration/auth_setup.html#apply-oidc-configuration
Please let us know if it answers your questioncreamy-greece-49911
08/02/2023, 5:02 PMcreamy-greece-49911
08/02/2023, 5:04 PMaverage-finland-92144
08/02/2023, 5:10 PMcreamy-greece-49911
08/02/2023, 7:12 PMcreamy-greece-49911
08/02/2023, 7:13 PMconfiguration.auth.authorizedUris
?average-finland-92144
08/02/2023, 7:14 PMauthorizedUris
yescreamy-greece-49911
08/02/2023, 11:15 PM/console
to the endpoint?
cat ./flyteconfig.yaml
admin:
endpoint: dns:///<PUBLIC_ACCESSABLE_DOMAIN>
insecure: false
insecureSkipVerify: true
authType: ClientSecret
clientId: flytepropeller
clientSecretEnvVar: FLYTE_CLIENTSECRET
$ flytectl --config=flyteconfig.yaml version
{"json":{},"level":"warning","msg":"using insecureSkipVerify. Server's certificate chain and host name wont be verified. Caution : shouldn't be used for production usecases","ts":"2023-08-02T23:12:21Z"}
{
"App": "flytectl",
"Build": "145bc5c",
"Version": "0.6.45",
"BuildTime": "2023-08-02 23:12:21.162374874 +0000 UTC m=+0.037043299"
}
$ flytectl register files --config=flyteconfig.yaml --project=flytesnacks --domain=development --archive flyte-package.tgz --version=v1
{"json":{},"level":"warning","msg":"using insecureSkipVerify. Server's certificate chain and host name wont be verified. Caution : shouldn't be used for production usecases","ts":"2023-08-02T23:12:26Z"}
--------------------------------------------------------------------------------------------------------------------- -------- ---------------------------------------------------
| NAME | STATUS | ADDITIONAL INFO |
--------------------------------------------------------------------------------------------------------------------- -------- ---------------------------------------------------
| /tmp/register3175681439/0_example_project.house_price_prediction.house_price_predictor.generate_and_split_data_1.pb | Failed | Error registering file due to rpc error: code = |
| | | Unimplemented desc = unexpected HTTP status code |
| | | received from server: 404 (Not Found); transport: |
| | | received unexpected content-type "text/plain; |
| | | charset=utf-8" |
--------------------------------------------------------------------------------------------------------------------- -------- ---------------------------------------------------
1 rows
Error: rpc error: code = Unimplemented desc = unexpected HTTP status code received from server: 404 (Not Found); transport: received unexpected content-type "text/plain; charset=utf-8"
{"json":{},"level":"error","msg":"rpc error: code = Unimplemented desc = unexpected HTTP status code received from server: 404 (Not Found); transport: received unexpected content-type \"text/plain; charset=utf-8\"","ts":"2023-08-02T23:12:26Z"}
thankful-minister-83577
thankful-minister-83577