-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(chart): enable device auth grant #2491
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you want to handle the transition period? I guess one option would be for the server side to support both, old and new CLI login for a certain period.
Yes, that would work. This PR does not remove anything so, it's safe to merge it. We should keep the custom auth flow in the gateway for a while (i.e. not merging SwissDataScienceCenter/renku-gateway#558 for now) to support old CLI clients. |
Sounds good. But for this to work we'd have to still allow the standard flow on the renku-cli for the time being, no? |
That's right. I've enabled it. I'll create a new story to disable it once we decided to drop support for the old login flow. |
Ok, that looks good. Can you check what happens when you make these changes to an already existing deployment? I think it won't automatically update the client settings. We've stumbled over this before. So if you could check the init-realm script for this, that would be nice. |
I've checked the |
Thanks for checking. I think the post-install job should indeed delete and recreate clients which do not match the expected configuration. |
Is this waiting for a change to the post-install job? |
db526f4
to
6cf43d9
Compare
3a321f7
to
3a90f41
Compare
I've updated the |
@mohammad-sdsc thanks for looking into this! Can't we just completely remove the old configuration and apply the new one in the case that there is a config change? That's effectively what we do by hand now and it works fine... |
I didn't realize this. Thanks for mentioning it! It's more robust and simpler to implement. |
@ableuler please chime in if I misrepresented how this is currently handled :) |
What do you mean by existing configuration? Do you mean all clients in the Renku realm? |
I meant the client that has the configuration conflict. Though in practice we actually removed all the clients and let the post-install script recreate them iirc, but I wouldn't do that in general. |
I never delete all clients by hand and even more so I think that we should not do this programmatically. So the solution that @mohammad-sdsc has already implemented (recreate a specific client whose configuration has changed) is the way to go. |
It doesn't delete all clients; it only deletes/recreates clients that have changed. The difference with the previous approach is in the configuration that is used to recreate the client: Before it was using the existing configuration but now it's using the new configuration. Basically, this should be fine if all the required configuration is already in the value files/templates. If there are manual changes to the clients (i.e. changes via Keycloak UI) then those are gone. |
Yeah, the |
Follow up story: #2504 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mohammad-sdsc, let's get this merged!
Fixes: #2490