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

Globus setup documentation missing? #50

Open
craig-willis opened this issue Feb 24, 2022 · 0 comments
Open

Globus setup documentation missing? #50

craig-willis opened this issue Feb 24, 2022 · 0 comments

Comments

@craig-willis
Copy link
Contributor

I'm trying to configure bdbag to fetch via Globus for Whole Tale bags that have been downloaded to a user's local system. Looking at https://github.com/fair-research/bdbag/blob/master/doc/config.md, I see that I need a keychain.json, but it's not clear how the average user would configure this on their local system.

Here's what I have working so far. It seems a bit complex, so I'm hoping there's a more straightforward way:

  • Install GCP and configure access with "/" writeable (since the transfer uses full paths)
  • pip install globus-cli and install sqlite3
  • globus login (this creates the transfer token)
  • sqlite3 ~/.globus/cli/storage.db "select * from token_storage where resource_server = 'transfer.api.globus.org'"
  • Obtain the local endpoint ID from https://app.globus.org/endpoints
  • Create ~/.bdbag/keychain.json:
[
    {
        "uri": "globus://",
        "auth_type": "globus_transfer",
        "auth_params": {
            "local_endpoint": "<local endpoint ID>",
            "transfer_token": "<access token from sqlite3 query>"
        }
    }
]

I'm happy to contribute a documentation PR. The basic requirements seem to be:

  • Local endpoint and a way to obtain the endpoint ID
  • A way to obtain a valid transfer token for the user
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

1 participant