Allow Introspection of Linux Usernames for Use as Variables
C
Continuous Squid
I like the new feature of managed identities. It is great to allow users to access only the files they are authorized to. The problem now is that all users should use the same work folder, and should be all allowed to access the subfolders. This is a security problem, as this means that everyone can see all the files generated.
I'm therefore wondering if it is possible to get the value of the “Linux username” (introspection), for instance in the computing environment configuration (I would like to use something like “/scratch/${linuxuser}” as work path).
I did some tests: I tried to setup my compute environment like this:
- Work directory: /scratch/seqera-work-${USER}
- Lauch directory: /scratch/seqera-work-${USER}
It creates two folders with the correct username (/scratch/seqera-work-user1 and /scratch/seqera-work-user1) which remains empty, and two folders "/scratch/seqera-work-${USER}" and "/scratch/seqera-work-${USER}" (${USER} is not interpreted}) which are actually used.