Skip to main content

Configure origin membership and role-based access control

You can use role-based access control (RBAC) to assign specific levels of access to each user that belongs to an origin.

When you join an origin, Chef Habitat Builder assigns you the read-only role, and when you create an origin, it assigns you the owner role. These roles are linked to your personal access token. An owner or administrator can update a user’s role.

Prerequisites

Origin roles

Chef Habitat Builder has the following origin roles and permissions:

Read-Only

  • Can view packages, channels, origin membership, invitations, member roles, settings, and integrations.
  • Can’t upload, promote, or modify packages, channels, keys, settings, or integrations.
  • Can’t manage origin membership, roles, or secrets.

Member

  • Inherits all Read-Only permissions.
  • Can upload packages to the unstable channel and trigger build jobs in unstable.
  • Can’t promote packages or modify channels, keys, settings, or integrations.
  • Can’t manage origin membership, roles, or secrets.

Maintainer

  • Inherits all Member permissions.
  • Can promote packages, add/update/delete channels, and manage integrations.
  • Can’t manage origin keys, membership roles, or secrets.

Administrator

  • Inherits all Maintainer permissions.
  • Can manage origin keys, membership roles, and secrets.
  • Can’t transfer or delete the origin.

Owner

  • Has full permissions, including the ability to transfer or delete the origin.
  • Can perform all actions available to Administrators and more.

Also, see the following table of role permissions:

ActionRead-OnlyMemberMaintainerAdministratorOwner
Packages
View packagesYYYYY
Upload packages to unstableNYYYY
Promote packages from unstableNNYYY
Channels
View channelsYYYYY
Add/Update/Delete channelsNNYYY
Origin Keys
View keysYYYYY
Add/Update/Delete keysNNNYY
Origin Membership
View origin membershipYYYYY
View invitationsYYYYY
Send InvitationsNNYYY
Revoke InvitationsNNYYY
Member Roles
View member rolesYYYYY
Update member rolesNNNYY
Origin Settings
View settingsYYYYY
Add/Update/Delete settingsNNNYY
Origin Secrets
View secretsNNNYY
Add/Update/Delete secretsNNNYY
Cloud Integrations
View integrationsYYYYY
Add/Update/Delete integrationsNNYYY
Ownership
Transfer originNNNNY
Delete originNNNNY

Manage origin members

You can use the hab CLI to manage and view users’ roles in an origin. You can also view users’ roles and invite users in Habitat Builder.

Invite members

Manage Chef Habitat Builder origin membership with the Chef Habitat CLI, using the hab origin invitations command.

All Chef Habitat Builder users can accept, ignore, and see invitations for their accounts.

View origin invitations:

hab origin invitations list

Accept origin invitations:

hab origin invitations accept <ORIGIN> <INVITATION_ID>

Ignore origin invitations:

hab origin invitations ignore <ORIGIN> <INVITATION_ID>

Send origin membership invitations:

hab origin invitations send <ORIGIN> <INVITEE_ACCOUNT>

Origin administrators and owners can see all pending origin membership invitations:

hab origin invitations pending <ORIGIN>

Origin administrators and owners can rescind an origin membership invitation:

hab origin invitations rescind <ORIGIN> <INVITATION_ID>

Transfer origin ownership

Origin owners can transfer origin ownership to another member with the hab origin transfer subcommand:

hab origin transfer [OPTIONS] <ORIGIN> <NEW_OWNER_ACCOUNT>

Manage membership roles

You can see and set a member’s role using the hab origin rbac CLI subcommands. You can also see the list of origin members in an origin’s Members tab.

The hab origin rbac command syntax is:

hab origin rbac <SUBCOMMAND>

The syntax for the show subcommand is:

hab origin rbac show <MEMBER_ACCOUNT> --origin <ORIGIN>

The syntax for the set subcommand is:

hab origin rbac set [FLAGS] [OPTIONS] <MEMBER_ACCOUNT> <ROLE> --origin <ORIGIN>
Edit this page on GitHub

Thank you for your feedback!

×