-
Notifications
You must be signed in to change notification settings - Fork 51
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
Allow tool access to Flux while running outside an allocation #6546
Comments
Perhaps obvious, but I wonder if we can come up with some alternate solution vs |
See also #5697 for a review of the use case - is that description still accurate @ardangelo? |
I had forgotten but
From shell/rexec.c /* The embedded subprocess server restricts access based on FLUX_ROLE_OWNER,
* but this shell cannot trust message credentials if they are passing through
* a Flux instance running as a different user (e.g. the "flux" user in a
* system instance). If that user were compromised, they could run arbitrary
* commands as any user that currently has a job running. Therefore, this
* additional check ensures that we only trust an instance running as the same
* user.
*
* For good measure, check that the shell userid matches the credential
* userid. After the above check, this could only fail in test where the
* owner can be mocked.
*/ |
I can't remember if we had any ideas to address that? Perhaps an optional munge credential that validates message credentials? |
Good question, I'll open a separate issue. |
Yes, we basically need to be able to perform the same operations as in an allocation / batch but outside an allocation. |
We would like to support attaching our tools to jobs run outside of a batch job or allocation. The tools require Flux utilities such as
flux archive
and accessing the Flux API while not inside an allocation.Ideally there would be a way to enter or provide the context of the running job to use
flux arhive
and access the Flux API.For example using
flux archive
to attempt to add a tool support file for a job launched withflux run
results in the errorThe text was updated successfully, but these errors were encountered: