Skip to content
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

Deploy auth server with OIDC authN on integration cluster #261

Closed
ericvaandering opened this issue Apr 5, 2022 · 9 comments
Closed

Deploy auth server with OIDC authN on integration cluster #261

ericvaandering opened this issue Apr 5, 2022 · 9 comments
Assignees

Comments

@ericvaandering
Copy link
Member

dmwm/rucio-flux#61

@dciangot
Copy link
Contributor

@ericvaandering regarding sync script for OIDC subject <-> rucio account.

I have a script that can do that and it needs:

  • a special IAM ID and secret authorized to get users details
  • a rucio account capable of adding identities to accounts

I was thinking that should be quite easy to integrate this with the CRIC sync script, or maybe make a parallel one (even better). What are your thougths/preferences?

@ericvaandering
Copy link
Member Author

ericvaandering commented Jun 22, 2022 via email

@ericvaandering
Copy link
Member Author

I guess we we should follow this up with an issue to get this into production? @dciangot want to make that and put it in the project?

Then actually close this one?

@dciangot
Copy link
Contributor

My suggestion would be another script run by this script: https://github.com/dmwm/CMSRucio/blob/master/docker/CMSRucioClient/scripts/k8s_sync_users_links.sh https://github.com/dmwm/CMSRucio/blob/master/docker/CMSRucioClient/scripts/k8s_sync_users_links.sh This runs every 12 hours and runs with the Robot account so no problems with adding identities. I assume the secret needed to get user details does not change frequently? Then I would make your script pick it up from an environment variable and I’ll get it into that variable via kubernetes mechanisms

So far I have added a separate .sh that contains the oidc-agent configuration (needed to refresh the token used to get user info). I'd avoid to get x509 sync stuck due to OIDC server issues or any bug related to this. Can we evaluate to setup a separate k8s cronjob?

@ericvaandering
Copy link
Member Author

I'd rather not. We can investigate setting timeouts or just do your part at the end.

@ericvaandering
Copy link
Member Author

https://stackoverflow.com/questions/55431218/cron-job-with-timeout

I should set these in general.

@dciangot
Copy link
Contributor

Ok, np, I'll put all in the same sh then.

@ericvaandering
Copy link
Member Author

Then we need something like dmwm/rucio-flux@e583d7e for prod as well

@dciangot
Copy link
Contributor

Created #312 for PROD deployment. I'm closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants