akbennett / lava-docker

Deploying LAVA in a docker image
6 stars 9 forks source link

The reason of a lava user ? #21

Open jguyot opened 7 years ago

jguyot commented 7 years ago

Maybe a silly question, but I wonder why this lava user is created.

In my case, I use an ssh pipeline device and the .ssh folder must be in the /root directory and not on the lava home directory. If I do this, I can run pipeline jobs for my ssh device, and this is the only way I found to launch jobs for my ssh devices.

I think it is normal because lava services are launched as root, and not the lava user.

So, my question is : why creating this lava user ?

akbennettatlinaro commented 7 years ago

Well, for the most part, I wouldn't recommend running automated jobs as root on a machine that was going to live for any sort of time and there are strategies the LAVA admins use for managing keys as things 'could' go wrong rather quickly when running as root.