[slurm-users] Remote submission hosts and security
Michael Jennings
mej at lanl.gov
Wed Dec 6 12:22:45 MST 2017
On Wednesday, 06 December 2017, at 08:23:10 (-0800),
Jeff White wrote:
> A Web portal is exactly why I am doing this. The remote server is a
> Web server running some software that expects to pass a script to
> sbatch directly. So the SSH stuff you mention doesn't apply.
I'm not sure I agree with you there. :-)
The "sbatch" executable it finds and runs doesn't *have* to be SLURM's
sbatch. It could easily be a wrapper script/program that could do
literally anything, including SSHing to the cluster with
passphraseless SSH keys and executing a predefined program -- possibly
sbatch, or maybe another wrapper -- to submit the job. The wrapper
could feed in the file on stdin, set environment variables, etc., all
within your ability to control (since the exact command which is
executed is guaranteed by authorized_keys).
Seems like a pretty straightforward way of accomplishing what you're
trying to do, with a little coding work on your part....
Michael
--
Michael E. Jennings <mej at lanl.gov>
HPC Systems Team, Los Alamos National Laboratory
Bldg. 03-2327, Rm. 2341 W: +1 (505) 606-0605
More information about the slurm-users
mailing list