For the complete documentation index, see llms.txt. This page is also available as Markdown.

RunAsUser permissions

Run a resource under another user's identity without changing ownership or submitter identity.

What does it enable?

runAsUser permissions let you act on behalf of another user in DataOS. When you set it in a manifest, the resource is created and runs under that user's identity, not yours. Their permissions apply, not yours. You are the one who applied it, but it runs as them.

When you apply a resource, DataOS tracks three identities separately:

  • owner: who the resource belongs to

  • submitter: who ran the apply command

  • runAsUser: whose identity the resource executes under at runtime

These can all be different users. runAsUser only controls the runtime identity. It does not change who owns the resource or who submitted it.

This also means deletion depends on ownership, never on runAsUser. If you submit a resource with runAsUser set to someone else, you remain its owner and can delete it normally.

runAsUser is built on explicit consent, and only an Operator can give it.

Before you can run a Resource as another identity, an Operator grants the Run As User use-case in Bifrost. The grant is made on the target identity's profile, with your user ID as the subject, so it authorizes you, and only you, to run Resources as that one identity. Without it, a manifest that sets runAsUser is rejected.

See Grant permissions for the steps.

Once a grant is in place, add runAsUser to your manifest:

Manifest snippet
spec:
  runAsUser: johndoe
Show example

iamgroot needs to create a Minerva Cluster, but does not have permission to access the Depots it depends on. johndoe, who has that access, grants iamgroot the Run As User use-case.

iamgroot applies this manifest:

Example manifest
name: minerva-cluster
version: v1alpha
type: minerva
spec:
  compute: universe-compute
  runAsUser: johndoe
  depots:
    - address: "dataos://johndoe-s3-depot?purpose=rw"

The Cluster is created by iamgroot but runs under johndoe's identity. johndoe does not need to apply anything themselves.

When to use it?

Use runAsUser when you need to perform an action in DataOS (creating a resource, editing it, managing its access, or any other operation), but you don't have the permissions required to do it yourself. A team member who has those permissions can grant you the ability to act on their behalf.

This also applies when working with application users. A person user can set runAsUser to an application user's ID so that a Data Product workload resource (such as Vulcan or Minerva) runs under that application user's identity. This is the common pattern for Data Product workload resources that need to operate under a shared application identity rather than a personal one.

To grant or revoke RunAsUser permission, see Grant permissions.

How to use it?

In DataOS, there are two types of users: person and application. runAsUser can be set to either type. Data Product workload resources (such as Nilus, Vulcan, and Minerva) are generally expected to run under an application identity rather than a personal one.

Either way, the permission must be explicitly granted; it is never implicit.

Last updated

Was this helpful?