Skip to main content

Designing access with profiles and a reference matrix

This page gives a recommended way to set up access to an organization: how people sign in, which profiles to distinguish, which roles to build for them, and a complete access matrix for a reference organization. It applies the RBAC model; read that page first for the mechanics.

A reference organization: a few owners, user managers and viewers at organization level, everyone else signing in through the identity provider; in a business unit, one role edits and deploys in development and staging, another only deploys in production, each with its own service account

Decisions, in order​

Access is decided at three levels. Settle them from the outside in: a role is of no use while anyone can still sign in with a weak password.

OrderLevelDecisionScreen
1Sign-inWhich identity provider, which second factor, which local accounts remainIdentity Providers, MFA Policy, Sign-In Policies
2OrganizationWho administers the platform itselfUsers, Manage Roles
3Business unitWhich roles exist, restricted to which environmentsBusiness unit, Roles Base Access
4GrantWho holds which role, people and programsRole grants

Recommendations by Level​

Sign-in​

RecommendationReason
Federate sign-in with the company identity providerOffboarding, password policy and second factor of the directory apply to the console
Turn Require MFA on, with Local MFA Only when the provider already enforces a second factorNo account opens the console with a password alone; federated users are not asked twice
Keep two or three local administrator accounts, each with a security keyThey are the way in when the identity provider is down or misconfigured
Turn Registration offAccounts come from the directory or from an administrator, never from the sign-in page
Turn Password Login off once everyone signs in through the providerThe remaining local accounts use Passwordless Login
Turn Ignore Unknown Users onThe sign-in page does not confirm which user names exist

The sequence to get there without locking anyone out is in Sign-in hardening.

Organization level​

RecommendationReason
Two or three Owner accounts, no moreOwner reaches every business unit, present and future
Do not use an Owner account for daily workThe person who administers the platform also holds an ordinary account with roles
Give Viewer to audit and security staffThey read every business unit and change nothing
Give User Manager to those who create and suspend accountsManaging accounts does not require the right to deploy
Create a business unit only when isolation must be completeRoles and environment restrictions already separate duties inside a unit. See Organization and units

Roles​

RecommendationReason
One role per duty, not per personA person with two duties holds two roles; permissions add up, they never subtract
Keep roles small and combine themA role restricts a whole category to the same environments: edit in development and deploy in production cannot live in one role
Separate who edits from who deploys to productionA change reaches production through a second person or through the pipeline
Restrict API Manager, Applications Manager and Environment Services to environmentsThese are the three categories whose permissions can be narrowed
Keep Delete out of everyday rolesDeleting a resource is rare and not reversible
Name a role after the duty: Integration Developer AccessThe name is what appears in member lists and in reviews; it always ends with "Access"
Export each role as JSON and keep it under version controlA role can then be reviewed, compared and recreated in another business unit

Programs​

RecommendationReason
One service account per programA leaked credential is revoked without stopping anything else
Never run a pipeline with a person's credentialsIt would act with all of that person's rights, and stop when they leave
A separate service account for productionThe pipeline that deploys to development cannot deploy to production
Prefer a JWT key, or a personal access token with a short expirationA JWT key leaves no shared secret on the platform side; an expired token is of no use
Keep the credential in the secret store of the pipelineNever in a repository or in a build log

Lifecycle​

RecommendationReason
Deactivate a grant or an account before deleting itAccess stops at once; the history stays for audit
Review grants in RBAC at a fixed interval, and at every change of teamA grant outlives the reason it was given unless someone removes it
Give a temporary grant an owner and an end date in your own trackingThe platform keeps a grant until it is removed
Verify a new role signed in as a memberAn action outside the role must be refused, not hidden

Profiles to Distinguish​

A profile is a kind of person or program, defined by what it must be able to do. Most organizations have the same ones.

At organization level​

These are given in Users, Manage Roles. They concern the platform itself, not the content of a business unit.

ProfileOrganization roleTypical holder
Platform administratorOwner: full access to all resources and settings of the organizationThe two or three people who run the platform
AuditorViewer: read-only access to the resources of the organizationSecurity officer, internal audit, architecture
Account managerUser Manager: manages users and their accessIT service desk
Access managerPermission Editor: edits permissions and role assignmentsSecurity team
Business unit creatorProject Creator: creates business unitsPlatform team, on request

Everyone else is a plain member: they see only the business units where a role is granted to them.

In a business unit​

ProfileDoesDoes not
Business unit administratorEverything in the unit: roles, members, resourcesAct in another unit
Integration developerWrites, builds and deploys integrations up to stagingDeploy to production
API developerDesigns gateways, API instances, policies and auth gateways up to stagingDeploy to production
Release managerDeploys and rolls back in productionEdit what is deployed
Environment operatorCreates environments and targets, deploys and recycles their servicesEdit integrations or APIs
Secrets custodianCreates and distributes configurations and secretsDeploy
Observability engineerBuilds dashboards, exporters, log flowsChange what runs
Support contactOpens and follows support casesChange what runs
Deployment pipelineDeploys to development and stagingDeploy to production
Release pipelineDeploys to productionEdit

Reference roles​

The profiles above are served by eight roles, built once in each business unit. Each holds permissions from one or two categories only, so that they can be combined freely.

In the table, E is edit, D deploy, R recycle, X delete and V view. The environments after a permission are those the category is restricted to; none means the whole business unit.

RoleCategoryPermissionsEnvironments
Integration Developer AccessApplications ManagerE, Ddevelopment, staging
Project ManagerE—
API Developer AccessAPI ManagerE, Ddevelopment, staging
Production Release AccessApplications ManagerV, Dproduction
API ManagerV, Dproduction
Environment Operator AccessEnvironments ManagerE—
Environment ServicesD, Rall
Secrets Custodian AccessSecrets ManagerE, X—
Observability AccessMonitoring ManagerE—
Support AccessSupport ManagerE—
Cleanup AccessApplications Manager, API ManagerXall
View comes with Edit and Delete

A role that edits or deletes a resource also sees it, and viewing stays business-unit-wide even when the category is restricted. A role that only deploys needs View beside it. For someone who must read everything and change nothing, the organization role Viewer is simpler than a role in every business unit.

Cleanup Access is granted for the time of an operation and removed afterwards.

Reference matrix​

The organization below has two business units, payments and logistics, each with the environments development, staging and production. Each line is a person or a program, with the organization role and the roles granted in each business unit.

WhoProfileOrganizationpaymentslogistics
Platform leadPlatform administratorOwner——
Platform engineerPlatform administratorOwner——
Same two people, daily accountEnvironment operatorMemberEnvironment OperatorEnvironment Operator
Security officerAuditorViewer——
Service deskAccount managerUser Manager——
Head of paymentsBusiness unit administratorMemberAdministrator—
Payments developerIntegration developerMemberIntegration Developer, Observability—
Payments API developerAPI developerMemberAPI Developer, Observability—
Payments tech leadRelease managerMemberIntegration Developer, Production Release, Support—
Vault administratorSecrets custodianMemberSecrets CustodianSecrets Custodian
On-call engineerRelease managerMemberProduction Release, Observability, SupportProduction Release, Observability, Support
Logistics developerIntegration developerMember—Integration Developer, Observability
Shared developer, two teamsIntegration developerMemberIntegration DeveloperIntegration Developer
ci-payments-deployerDeployment pipelineService accountIntegration Developer—
ci-payments-releaseRelease pipelineService accountProduction Release—
ci-logistics-deployerDeployment pipelineService account—Integration Developer
ci-logistics-releaseRelease pipelineService account—Production Release

Role names are shortened: each ends with "Access".

What each profile may do, per environment​

The same matrix, read as actions on integrations and APIs. It is what the combination of roles above produces.

Profiledevelopmentstagingproduction
Integration developerEdit, deployEdit, deployView
API developerEdit, deployEdit, deployView
Tech leadEdit, deployEdit, deployView, deploy
On-call engineerViewViewView, deploy
Environment operatorServices: deploy, recycleServices: deploy, recycleServices: deploy, recycle
Deployment pipelineEdit, deployEdit, deployView
Release pipelineViewViewView, deploy
AuditorViewViewView
Business unit administratorEverythingEverythingEverything

Worked Examples​

A developer joins the payments team​

They sign in through the identity provider; the account is created at that first sign-in. In RBAC, one grant on payments with Integration Developer Access and Observability Access. Nothing else: they do not see logistics.

A production incident at night​

The on-call engineer holds Production Release Access: they roll the integration back to its previous revision. They cannot edit it: the correction goes through development and staging the next day, by a developer.

A pipeline deploys on every merge​

ci-payments-deployer holds Integration Developer Access, restricted to development and staging. Promotion to production is another job, run with ci-payments-release, whose credential is available only to the protected branch of the repository.

Someone changes team​

Moving from payments to logistics is removing one grant and adding another. The account, the sign-in method and the second factor do not change.

An external contractor for three months​

A local account, since they are not in the directory, with a second factor enrolled at first sign-in. One grant with API Developer Access. At the end of the mission, the account is deactivated, and deleted once nothing refers to it.

An audit​

The auditor receives the organization role Viewer for the duration of the audit. They read every business unit, including the roles and their permissions, and change nothing.

Setup Checklist​

  • An identity provider is active and tested with a second session open
  • Require MFA is on
  • Two or three local administrators hold a security key; Registration is off
  • No more than three accounts hold Owner
  • Every business unit has its reference roles, exported as JSON
  • No role both edits and deploys to production
  • Every pipeline has its own service account; production has a separate one
  • No personal access token is without an expiration
  • The grants were reviewed at the last change of team