forked from flux-framework/flux-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libjob: add FLUX_JOB_PRE_SIGNED flag
Problem: users of flux_job_submit() must know whether flux-core was built --with-flux-security or not. Add a FLUX_JOB_PRE_SIGNED flag that allows jobspec to be signed before submission, but change the default so flux_job_submit() signs the jobspec internally. If built --with-flux-security, configure a security context using default config file path and cache it in the flux_t handle. Each time flux_job_submit() is called, the context is reused, and the jobspec is signed with the default mechanism. If built without --with-flux-security, sign using the "sign_none" class. Update flux-job to use the FLUX_JOB_PRE_SIGNED flag if built --with-flux-security. Fixes flux-framework#1715
- Loading branch information
Showing
5 changed files
with
64 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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