pegasus icon indicating copy to clipboard operation
pegasus copied to clipboard

[PM-1098] encrypt the credentials when transferred with jobs

Open mayani opened this issue 1 year ago • 2 comments

HTCondor has now a notion of encrypt_input_files , in addition to encryption of output files and execute directories.

http://research.cs.wisc.edu/htcondor/manual/current/condor_submit.html

we should explore and add the use of this feature for credential transfers

Reporter: @vahi Watchers: @rynge @vahi

mayani avatar Dec 14 '24 04:12 mayani

Author: @vahi

will consider for swip related activities

mayani avatar Dec 14 '24 15:12 mayani

@rynge we should discuss this whether it is worth using this feature or not.

vahi avatar May 15 '25 20:05 vahi

https://htcondor.readthedocs.io/en/latest/man-pages/condor_submit.html whether to use encrypt_input_files for it or not.

vahi avatar Aug 01 '25 18:08 vahi

@rynge on my local desktop, if I do encrypt_input_files, it does work. However, I do notice that the job requrements get updated to include TARGET.HasPerFileEncryption

(TARGET.Arch == "X86_64") && (TARGET.OpSys == "macOS") && (TARGET.Disk >= RequestDisk) && (TARGET.Memory >= RequestMemory) && (TARGET.HasFileTransfer && TARGET.HasPerFileEncryption)

If i look at startds on corbusier and workflow they both have it

(virtualenv) corbusier:run0003 vahi$ condor_status -l corbusier.ads.isi.edu | grep -i encry
HasPerFileEncryption = true

same for ones on workflow

condor_status -l [email protected] | grep -i encr
HasPerFileEncryption = true

i guess the question i have is whether there is a scenario where the startd does not have it on. If so we might have to expose an option in Pegasus to turn off or on the ecryption

vahi avatar Aug 01 '25 21:08 vahi

from HTCondor team

By default, htcondor file transfers (CEDAR) are encrypted, unless a user explicitly turns it off by setting SEC_DEFAULT_ENCRYPTION=never

However, even in the above case, if a file is explicitly asked to be encrypted in the job submit file, then the file encryption gets turned on , notwithstanding the global option.

vahi avatar Aug 11 '25 18:08 vahi