Specifying a User to Run Tasks on Worker Nodes

Is it possible to spawn the Ray cluster workers as a specific Windows user? For instance, in task code connecting to a SQL Server database might use integrated authentication. This would perhaps go in the runtime_env configuration.

Or are all the workers strictly limited to run as the user specified in auth_ssh user?

Related security question: can a running task find & read the source code of other user’s tasks that are coincidentally running (or have run) on the same node?

Thank you.

1 Like