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

[8.0] Pilot submission with tokens #6580

Closed
wants to merge 156 commits into from

Conversation

atsareg
Copy link
Contributor

@atsareg atsareg commented Nov 24, 2022

This PR adds possibility to submit pilots with tokens. The tokens are obtained by SiteDirectors via a standard mechanism from the TokenManager. In order to use the oidc-agent instead of the OAuth2 flow, a new OidcAgentIdProvider is added. This can be useful in some environments, also for debugging. Using OAuth2 IdProviders with pilot tokens generated from the long tokens in the TokenDB are also supported
SiteDirector is enabled to select queues by Tag values. Queues can define Token tag to be used with tokens, otherwise with certificates. Later on, the default will be switched to Token I hope :).
The oidc-agent is supposed to have a client created with the name of the user submitting pilots and having necessary compute scopes.

The following ComputingElement should be enabled with the tokens:

  • HTCondorCE

  • ARC/ARC6

  • AREX

    The case of CloudComputingElement is not addressed specifically as the case can be solved by using Application Credentials authentication mechanism where Application Credentials can be created after authentication with OAuth2 tokens.

BEGINRELEASENOTES

*Framework
NEW: OidcAgentIdProvider identity provider class

*WorkloadManagement
NEW: SiteDirector enabled to select queues by tags
NEW: SiteDirector sets up tokens for ComputingElements configured with the Token tag

*Resources
NEW: HTCondorComputingElement and ARC(6)ComputingElement enabled to for job operations with tokens

*Configuration
CHANGE: Registry - IdProvider can be defined either on VO or Group level

ENDRELEASENOTES

@DIRACGridBot DIRACGridBot added the alsoTargeting:integration Cherry pick this PR to integration after merge label Nov 24, 2022
@marianne013
Copy link
Contributor

@atsareg If there is an issue with the CloudComputingElement (selecting projects in Openstack), could you please make a separate issue for Simon ? We'll not port VMDIRAC, we'd consider this obsolete.

fstagni and others added 27 commits January 27, 2023 17:31
[8.0] Minor fixes for docs and code
…5500ea-rel-v8r0

[sweep:v8r0] Reorder pilot downloads to minimise race condition
@atsareg
Copy link
Contributor Author

atsareg commented Feb 1, 2023

The PR was screwed while rebasing and will be redone

@atsareg atsareg closed this Feb 1, 2023
@atsareg atsareg mentioned this pull request Feb 1, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alsoTargeting:integration Cherry pick this PR to integration after merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants