Add support for remote cred manager with Globus Compute backend#302
Merged
mightqxc merged 2 commits intoHSF:masterfrom Feb 26, 2026
Merged
Add support for remote cred manager with Globus Compute backend#302mightqxc merged 2 commits intoHSF:masterfrom
mightqxc merged 2 commits intoHSF:masterfrom
Conversation
Collaborator
|
@tmaeno any ETA on approving this PR. |
Collaborator
|
@GKNB @dougbenjamin |
…the correct place, change name from globus_xxx to globus_compute_xxx to remove ambiguity
Contributor
Author
@mightqxc Sorry I made a mistake when I generate my repo for submitting PR. Now those files are put in correct position, and I also change the name for all class/filename that looks like globus_xxx to globus_compute_xxx to distinguish them from globus toolkit |
mightqxc
approved these changes
Feb 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a remote credential manager that synchronizes freshly renewed IAM tokens to a remote filesystem path using Globus Compute.
IamTokenCredManagerRemoteGlobusComputeIamTokenCredManagerGlobusTokenReplicator+-------------------+ +-----------------------------+
| Harvester (local) | | Remote site (GC endpoint) |
+-------------------+ +-----------------------------+
|
| IssuerBroker.get_access_token
v
[ plaintext token in memory ]
|
| write token locally
v
out_dir/<token_filename>
|
| Fernet.encrypt
v
[ ciphertext token (string) ]
|
| Executor.submit(_remote_write_token, ciphertext, remote_path, remote_key_file)
v
+-------------------+ +-----------------------------+
| GC task queued | -------> | _remote_write_token() |
+-------------------+ | - read remote_key_file |
| - Fernet.decrypt() |
| - write tmp (0600) |
| - os.replace(tmp, final) |
+-----------------------------+
|
v
remote_out_dir/<token_filename>
Notes:
Below are example of how to use this in the panda_harvester.cfg: In pluginConfigs, add/modify the following
{
"module": "pandaharvester.harvestercredmanager.iam_token_cred_manager_globus_compute",
"name": "IamTokenCredManagerRemoteGlobusCompute",
"configs": {
"pilot-pandaserver-token-remote": {
"client_cred_file": "...",
"target_type": "panda",
"panda_token_filename": "panda_token",
"out_dir": "...",
"check_interval": 1800,
"refresh_interval": 3500,
"remote_out_dir": "...",
"globus_compute": {
"endpoint_id": "...",
"local_key_file": "...",
"remote_key_file": "...",
"task_timeout": 60
}
}
}
}
Successful tests:
Planned follow-ups: