Skip to content

Bug: Queue User should not be allowed to be Admin or the same as the agent user #488

Description

@yuanmich2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions