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

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

Merged
merged 2 commits into from
Apr 5, 2024
Merged

Conversation

marcmengel
Copy link
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
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
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
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
2 checks passed
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