Describe Behaviour
Right now, you can specify an admin queue user, which is a security risk. I accidentally fell into this trap when I accidentally specified the queue user as the agent user by passing it to the --user flag when running the install-deadline-worker command.
Expected Behaviour
You should have to deliberately want to render with admin privileges and accept the security risk before being allowed to do so.
Renders should throw an error if trying to run as an admin user. And if the queue user is the same as the agent user, it should point out that's the root cause of the error. The agent user is always forced to be admin, so the even if you weren't trying to run your render with admin privileges, but misunderstood the --user flag you'd end up setting the agent and queue user to be the same user and running with admin privileges.
Current Behaviour
You just render with a bad security posture because you have admin privileges.
Reproduction Steps
Setup a worker. Use the --user and --grant-required-permissions flags on the queue user when running install-deadline-worker
Possible Solution
Add better warning and error messages to prevent accidentally setting it up this way like I did.
Have a config option that explicitly enables rendering as admin. We can put a comment in the config file that outlines the potential risk.
Package Version
deadline-worker-agent 0.27.4
Language Version
python 3.12
Dependencies
No response
Operating System
Windows
Other information
No response
Describe Behaviour
Right now, you can specify an admin queue user, which is a security risk. I accidentally fell into this trap when I accidentally specified the queue user as the agent user by passing it to the
--userflag when running theinstall-deadline-workercommand.Expected Behaviour
You should have to deliberately want to render with admin privileges and accept the security risk before being allowed to do so.
Renders should throw an error if trying to run as an admin user. And if the queue user is the same as the agent user, it should point out that's the root cause of the error. The agent user is always forced to be admin, so the even if you weren't trying to run your render with admin privileges, but misunderstood the
--userflag you'd end up setting the agent and queue user to be the same user and running with admin privileges.Current Behaviour
You just render with a bad security posture because you have admin privileges.
Reproduction Steps
Setup a worker. Use the
--userand--grant-required-permissionsflags on the queue user when runninginstall-deadline-workerPossible Solution
Add better warning and error messages to prevent accidentally setting it up this way like I did.
Have a config option that explicitly enables rendering as admin. We can put a comment in the config file that outlines the potential risk.
Package Version
deadline-worker-agent 0.27.4
Language Version
python 3.12
Dependencies
No response
Operating System
Windows
Other information
No response