Hi, I was curious if there is a way to add additi...
# flyte-support
r
Hi, I was curious if there is a way to add additional clients to the internal authorization server of flyte? At the moment I can interact with our flyte installation using e.g.
Copy code
flytectl get workflows  -d development  -p flytesnacks --admin.authType ClientSecret --admin.clientId flytepropeller --admin.clientSecretLocation /Users/christoph/.flyte/secret --admin.endpoint dns:///....
where the file
/Users/christoph/.flyte/secret
contains the password I setup for
flytepropeller
. Is there a way to get additional
client_id
and
client_secret
values working?
h
r
Thanks, I've read that page multiple times but there is no mention of additional
client_id
and
client_secrets
- Should I take this to mean the answer is "No, that's not possible"?
Hmm, I might have figured it out now looking for something else. Probably possible by adding to the list here
h
@ripe-smartphone-56353, sorry for the confusion. The docs can certainly be improved (PRs are welcome!). To define clients in the internal auth server you should be able to modify the
staticClients
stanza in the selfAuthServer config in your values file. We have an example of this in the single binary template files.
r
Thanks. I'll give that a try.
Just to confirm. Putting the following in my
values.yaml
worked:
Copy code
inline:
    auth:
      appAuth:
          selfAuthServer:
            staticClients:
              new-client-id:
                client_secret: <output of `pip install bcrypt && python -c 'import bcrypt; import base64; print(base64.b64encode(bcrypt.hashpw("<your-random-password>".encode("utf-8"), bcrypt.gensalt(6))))'`>
                grant_types:
                - refresh_token
                - client_credentials
                id: new-client-id
                response_types:
                - token
                scopes:
                - all
                - offline
                - access_token
Do you know if it`s possible to restrict an account to a certain flyte project as well? I wasn't able to find anything about that in the docs.
h
Do you know if it`s possible to restrict an account to a certain flyte project as well?
@ripe-smartphone-56353, no, this is not available in Flyte. We've had users express interest in this feature in the past (e.g. https://github.com/flyteorg/flyte/issues/5189), but no concrete implementation yet.
🙏 1