Skip to content

Stealing token compat from ifdh.cfg for fake_ifdh.py#562

Merged
shreyb merged 2 commits intomasterfrom
gfal_tokens
Apr 5, 2024
Merged

Stealing token compat from ifdh.cfg for fake_ifdh.py#562
shreyb merged 2 commits intomasterfrom
gfal_tokens

Conversation

@marcmengel
Copy link
Copy Markdown
Contributor

Token-only launches were failing to copy sandbox files at launch... Needed
BEARER_TOKEN set in the environment for gfal utilities. Fixes #561

@marcmengel marcmengel requested a review from shreyb April 5, 2024 15:53
@shreyb shreyb added this to the 1.8 milestone Apr 5, 2024
Copy link
Copy Markdown
Collaborator

@shreyb shreyb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but two things.

  1. Could you please update the submodule commit hash?
  2. I think the answer is yes to this question, but just to be sure - by putting this new setting in gfal_clean_env, we're making sure it only gets used in the various gfal commands here in fake_ifdh, correct?

@marcmengel
Copy link
Copy Markdown
Contributor Author

RIght; so that only happens in the subshell we run the gfal-copy in; we scrub the various PYTHON related variables (because the gfal developers don't know about
"python -I " ?) and grab BEARER_TOKEN from BEARER_TOKEN_FILE, if it is set.

Copy link
Copy Markdown
Collaborator

@shreyb shreyb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool - I just did a quick test, and this worked as advertised. Merging.

@shreyb shreyb merged commit c116636 into master Apr 5, 2024
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

Successfully merging this pull request may close these issues.

Log web sandbox creation works only with proxy

2 participants