The answer depends on the type of role. Vultr IAM has two role types, assignable and assumable, and each works differently in terms of who or what can hold it.
Assignable Roles
Assignable roles can be directly attached to following types of entities:
- Users — a role assigned directly to a user grants the user all the permissions bundled within the role for as long as the assignment exists.
- Service Users — a role assigned to a service user grants the permissions it needs to interact with Vultr resources programmatically by scripts and automated workloads, keeping machine access cleanly separated from human access.
- Groups — a role assigned to a group is automatically inherited by all current and future members of that group. This is the recommended pattern for managing access at scale. Assign the role once to the group and let membership drive access automatically.
Assumable Roles
Assumable roles are temporarily assumed by a trusted entity via a trust relationship defined on the role itself. When creating an assumable role, you define which entities are permitted to assume it and under what conditions. Vultr IAM supports three types of trusted entities:
- Organization User — allows a specific user within your organization to assume the role and perform actions under the permissions it grants.
- Organization Group — allows any member of a specific group within your organization to assume the role.
- OIDC Issuer — allows an external identity via an OpenID Connect provider to assume the role. This enables federation with external systems and CI/CD pipelines that authenticate via OIDC.
Assumption and Expiration
When you create a role trust, you control how the role is assumed, when it can be assumed, and for how long the trust relationship remains valid.
Trust types:
- TemporaryAssumption — the trusted entity must explicitly assume the role to activate it. The session that is created becomes the principal.
- IAMAssumption — the role is assumed automatically through OIDC inline validation. The platform user remains the principal.
- FederatedAssumption — the role is assumed automatically through OIDC inline validation. The role itself determines the principal, not a platform user.
Assumption conditions:
- Schedule — the role can always be assumable, assumable at specific times of the day, assumable on specific days of the week, or assumable on specific days of the week at specific times of the day.
- IP access restrictions — optionally restrict role assumption to one or more allowed IPv4 or IPv6 addresses.
Trust expiration:
You can optionally set a date until which the trust relationship remains valid (valid_until in the API). Once the trust expires, the trusted entity can no longer assume the role. The length of each assumed session is controlled by the session duration, which cannot exceed the role's max_session_duration.
0 Comments
Be the first to comment and share your perspective with the community.