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

Option for including access token to VM #135

Open
tdviet opened this issue Mar 31, 2022 · 0 comments
Open

Option for including access token to VM #135

tdviet opened this issue Mar 31, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@tdviet
Copy link
Owner

tdviet commented Mar 31, 2022

During initialization, client tools on VMs may need access tokens to access various services. It is important to have option to include the access token that is used for creating the VM, to the VM (via cloud-init) so users don't have to copy the access token manually.

That has been agreed in the discussion via fedcloud mailing list that we will follow WLCG suggestion (https://zenodo.org/record/3937438):

  1. If the BEARER_TOKEN environment variable is set, then the value is
    taken to be the token contents.
  2. If the BEARER_TOKEN_FILE environment variable is set, then its value is
    interpreted as a filename. The contents of the specified file are taken
    to be the token contents.
  3. If the XDG_RUNTIME_DIR environment variable is set*, then take the
    token from the contents of $XDG_RUNTIME_DIR/bt_u$ID **.
  4. Otherwise, take the token from /tmp/bt_u$ID . If a potential token is
    found at a step, then the discovery implementation MUST strip all
    whitespace on the left and right sides of
@tdviet tdviet added the enhancement New feature or request label Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant