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

Auto-generate token if the issuer is available #1591

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

bbockelm
Copy link
Collaborator

This tweak will cause the client to search for the issuer's private key in its local configuration and auto-generate a token as needed. (On simple origin deployments, it's not uncommon for the origin to be run by a single individual who has the private key)

This prevents the user (in this specific case) from needing to know how to create tokens to use Pelican: simply drop the private key into ~/.config/pelican/issuer.jwk and go!

For simple origins, there's one "service user" that has access to
the private key.  Instead of teaching admins how to manually create
a token, then use the client, have the client generate the token
immediately when needed.
The cache plugin directory is controlled by environment variable.  If
the environment variable is set in the `pelican` environment, pass its
value along to xrootd.

Simplifies testing in environments where the plugin is not installed
as root.
@bbockelm bbockelm added enhancement New feature or request client Issue affecting the OSDF client labels Sep 19, 2024
@bbockelm bbockelm added this to the v7.11.0 milestone Sep 19, 2024
@jhiemstrawisc jhiemstrawisc self-requested a review September 30, 2024 15:14
@jhiemstrawisc jhiemstrawisc merged commit 98fc081 into PelicanPlatform:main Sep 30, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Issue affecting the OSDF client enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants