# Roles

Every way into HKB: 9 Identity Center permission sets for people and 38 IAM roles for machines, each with what it trusts, what fences it and the policy text it carries, read from the templates at build time. There are no IAM users. The [access grid](/access/) shows the same principals account by account.

Each machine role carries a permissions boundary, so it can never do more than the boundary allows, even if its own policy is widened. The exceptions are Control Tower's roles in the management account, which AWS defines.

## People: permission sets

| Permission set | Session | Accounts | Purpose |
| --- | --- | --- | --- |
| [`HKB-ReadOnly`](/wiki/roles/people/hkb-readonly/) | 8 h | [Management](/architecture/management/), [Log Archive](/architecture/log-archive/), [Security](/architecture/security/), [Shared Services](/architecture/shared-services/), [Dev](/architecture/dev/), [Prod](/architecture/prod/), [Sandbox](/architecture/sandbox/) | Daily visibility (ViewOnlyAccess and SecurityAudit, plus the reads the verifier and change-set reviews need) |
| [`HKB-RootUnlock`](/wiki/roles/people/hkb-rootunlock/) | 1 h | [Management](/architecture/management/) | Task-scoped root sessions for member accounts (audit, S3 and SQS policy unlock) |
| [`HKB-DomainAdmin`](/wiki/roles/people/hkb-domainadmin/) | 1 h | [Management](/architecture/management/) | Domain registration changes and DNSSEC DS record updates |
| [`HKB-Billing`](/wiki/roles/people/hkb-billing/) | 4 h | [Management](/architecture/management/) | Budgets, Cost Explorer and invoices |
| [`HKB-Support`](/wiki/roles/people/hkb-support/) | 1 h | [Management](/architecture/management/), [Log Archive](/architecture/log-archive/), [Security](/architecture/security/), [Shared Services](/architecture/shared-services/), [Dev](/architecture/dev/), [Prod](/architecture/prod/), [Sandbox](/architecture/sandbox/) | Open and manage AWS Support cases, nothing else (DQ-157) |
| [`HKB-MasterAdmin`](/wiki/roles/people/hkb-masteradmin/) | 1 h | [Management](/architecture/management/) | Full administrator on master for the manual master stacks. Elevated by design; 1 h sessions, every use alarmed (hkb-security-master-alerts). |
| [`HKB-PipelineApprover`](/wiki/roles/people/hkb-pipelineapprover/) | 4 h | [Shared Services](/architecture/shared-services/) | Approve or reject the pipeline's manual approvals and read its state and change records. No edit rights. |
| [`HKB-SecurityOps`](/wiki/roles/people/hkb-securityops/) | 4 h | [Security](/architecture/security/), [Log Archive](/architecture/log-archive/) | Investigate and respond to findings. SecurityAudit plus finding workflow; log reads; no log deletion or unlock. |
| [`HKB-SandboxAdmin`](/wiki/roles/people/hkb-sandboxadmin/) | 4 h | [Sandbox](/architecture/sandbox/) | Hands-on building and experiments in Sandbox. PowerUser; IAM only for sbx-* roles under hkb-sandbox-boundary. |

## Machines: IAM roles

| Role | Accounts | Trusted by | Boundary |
| --- | --- | --- | --- |
| [`hkb-baseline-account-settings`](/wiki/roles/machines/hkb-baseline-account-settings/) | [Log Archive](/architecture/log-archive/), [Security](/architecture/security/), [Shared Services](/architecture/shared-services/), [Prod](/architecture/prod/), [Dev](/architecture/dev/), [Sandbox](/architecture/sandbox/) | `lambda.amazonaws.com` | `hkb-pipeline-boundary` |
| [`hkb-detection-target`](/wiki/roles/tools/hkb-detection-target/) | [Sandbox](/architecture/sandbox/) | `ec2.amazonaws.com` | `hkb-workload-boundary` |
| [`hkb-detection-test`](/wiki/roles/tools/hkb-detection-test/) | [Sandbox](/architecture/sandbox/) | `codebuild.amazonaws.com` | `hkb-detection-boundary` |
| [`hkb-detection-test-schedule`](/wiki/roles/tools/hkb-detection-test-schedule/) | [Sandbox](/architecture/sandbox/) | `scheduler.amazonaws.com` | `hkb-pipeline-boundary` |
| [`hkb-events-forwarder`](/wiki/roles/machines/hkb-events-forwarder/) | [Log Archive](/architecture/log-archive/), [Security](/architecture/security/), [Shared Services](/architecture/shared-services/), [Prod](/architecture/prod/), [Dev](/architecture/dev/), [Sandbox](/architecture/sandbox/) | `events.amazonaws.com` | `hkb-pipeline-boundary` |
| [`hkb-pipeline-cfn-security`](/wiki/roles/machines/hkb-pipeline-cfn-security/) | [Security](/architecture/security/) | `cloudformation.amazonaws.com` | `hkb-pipeline-boundary` |
| [`hkb-pipeline-cfn-site`](/wiki/roles/machines/hkb-pipeline-cfn-site/) | [Sandbox](/architecture/sandbox/), [Dev](/architecture/dev/), [Prod](/architecture/prod/) | `cloudformation.amazonaws.com` | `hkb-pipeline-boundary` |
| [`hkb-pipeline-cfn-tools`](/wiki/roles/tools/hkb-pipeline-cfn-tools/) | [Security](/architecture/security/) | `cloudformation.amazonaws.com` | `hkb-pipeline-boundary` |
| [`hkb-pipeline-security`](/wiki/roles/machines/hkb-pipeline-security/) | [Security](/architecture/security/) | `hkb-pipeline-orchestrator` | `hkb-pipeline-boundary` |
| [`hkb-pipeline-site`](/wiki/roles/machines/hkb-pipeline-site/) | [Sandbox](/architecture/sandbox/), [Dev](/architecture/dev/), [Prod](/architecture/prod/) | `hkb-pipeline-site-orchestrator` | `hkb-pipeline-boundary` |
| [`hkb-pipeline-site-sync`](/wiki/roles/machines/hkb-pipeline-site-sync/) | [Sandbox](/architecture/sandbox/), [Dev](/architecture/dev/), [Prod](/architecture/prod/) | `hkb-pipeline-sync` | `hkb-pipeline-boundary` |
| [`hkb-pipeline-tools`](/wiki/roles/tools/hkb-pipeline-tools/) | [Security](/architecture/security/) | `arn:${AWS::Partition}:iam::${SharedServicesAccountId}:root` | `hkb-pipeline-boundary` |
| [`hkb-pipeline-cfn-network`](/wiki/roles/network/hkb-pipeline-cfn-network/) | [Sandbox](/architecture/sandbox/), [Dev](/architecture/dev/), [Prod](/architecture/prod/) | `cloudformation.amazonaws.com` | `hkb-network-boundary` |
| [`hkb-pipeline-network`](/wiki/roles/network/hkb-pipeline-network/) | [Sandbox](/architecture/sandbox/), [Dev](/architecture/dev/), [Prod](/architecture/prod/) | `hkb-pipeline-orchestrator` | `hkb-network-boundary` |
| [`hkb-scanner`](/wiki/roles/tools/hkb-scanner/) | [Log Archive](/architecture/log-archive/), [Security](/architecture/security/), [Shared Services](/architecture/shared-services/), [Prod](/architecture/prod/), [Dev](/architecture/dev/), [Sandbox](/architecture/sandbox/), [Management](/architecture/management/) | `arn:${AWS::Partition}:iam::${SecurityAccountId}:root` | `hkb-scanner-boundary` |
| [`hkb-site-cutoff`](/wiki/roles/site/hkb-site-cutoff/) | [Prod](/architecture/prod/) | `lambda.amazonaws.com` | `hkb-pipeline-boundary` |
| [`hkb-site-traffic`](/wiki/roles/site/hkb-site-traffic/) | [Prod](/architecture/prod/) | `codebuild.amazonaws.com` | `hkb-workload-boundary` |
| [`hkb-site-traffic-schedule`](/wiki/roles/site/hkb-site-traffic-schedule/) | [Prod](/architecture/prod/) | `scheduler.amazonaws.com` | `hkb-pipeline-boundary` |
| [`AWSControlTowerAdmin`](/wiki/roles/machines/awscontroltoweradmin/) | [Management](/architecture/management/) | - | none (AWS-defined) |
| [`AWSControlTowerCloudTrailRole`](/wiki/roles/machines/awscontroltowercloudtrailrole/) | [Management](/architecture/management/) | - | none (AWS-defined) |
| [`AWSControlTowerConfigAggregatorRoleForOrganizations`](/wiki/roles/machines/awscontroltowerconfigaggregatorrolefororganizations/) | [Management](/architecture/management/) | - | none (AWS-defined) |
| [`AWSControlTowerStackSetRole`](/wiki/roles/machines/awscontroltowerstacksetrole/) | [Management](/architecture/management/) | - | none (AWS-defined) |
| [`hkb-master-org-cfn`](/wiki/roles/machines/hkb-master-org-cfn/) | [Management](/architecture/management/) | `cloudformation.amazonaws.com` | `hkb-pipeline-boundary` |
| [`hkb-net-image-build`](/wiki/roles/network/hkb-net-image-build/) | [Sandbox](/architecture/sandbox/), [Dev](/architecture/dev/), [Prod](/architecture/prod/) | `ec2.amazonaws.com` | `hkb-workload-boundary` |
| [`hkb-net-image-lifecycle`](/wiki/roles/network/hkb-net-image-lifecycle/) | [Sandbox](/architecture/sandbox/), [Dev](/architecture/dev/), [Prod](/architecture/prod/) | `imagebuilder.amazonaws.com` | `hkb-workload-boundary` |
| [`hkb-net-nat`](/wiki/roles/network/hkb-net-nat/) | [Sandbox](/architecture/sandbox/), [Dev](/architecture/dev/), [Prod](/architecture/prod/) | `ec2.amazonaws.com` | `hkb-workload-boundary` |
| [`hkb-net-nat-scheduler`](/wiki/roles/network/hkb-net-nat-scheduler/) | [Sandbox](/architecture/sandbox/), [Dev](/architecture/dev/), [Prod](/architecture/prod/) | `scheduler.amazonaws.com` | `hkb-workload-boundary` |
| [`hkb-net-flow-logs`](/wiki/roles/machines/hkb-net-flow-logs/) | [Sandbox](/architecture/sandbox/), [Dev](/architecture/dev/), [Prod](/architecture/prod/) | `vpc-flow-logs.amazonaws.com` | `hkb-workload-boundary` |
| [`hkb-pipeline-cfn-self`](/wiki/roles/pipeline/hkb-pipeline-cfn-self/) | [Shared Services](/architecture/shared-services/) | `cloudformation.amazonaws.com` | `hkb-pipeline-boundary` |
| [`hkb-pipeline-cfn-stacksets`](/wiki/roles/pipeline/hkb-pipeline-cfn-stacksets/) | [Shared Services](/architecture/shared-services/) | `cloudformation.amazonaws.com` | `hkb-pipeline-boundary` |
| [`hkb-pipeline-orchestrator`](/wiki/roles/pipeline/hkb-pipeline-orchestrator/) | [Shared Services](/architecture/shared-services/) | `codepipeline.amazonaws.com` | `hkb-pipeline-boundary` |
| [`hkb-pipeline-self`](/wiki/roles/pipeline/hkb-pipeline-self/) | [Shared Services](/architecture/shared-services/) | `hkb-pipeline-orchestrator` | `hkb-pipeline-boundary` |
| [`hkb-pipeline-site-orchestrator`](/wiki/roles/pipeline/hkb-pipeline-site-orchestrator/) | [Shared Services](/architecture/shared-services/) | `codepipeline.amazonaws.com` | `hkb-pipeline-boundary` |
| [`hkb-pipeline-stacksets`](/wiki/roles/pipeline/hkb-pipeline-stacksets/) | [Shared Services](/architecture/shared-services/) | `hkb-pipeline-orchestrator` | `hkb-pipeline-boundary` |
| [`hkb-pipeline-sync`](/wiki/roles/pipeline/hkb-pipeline-sync/) | [Shared Services](/architecture/shared-services/) | `codebuild.amazonaws.com` | `hkb-pipeline-boundary` |
| [`hkb-pipeline-tools-orchestrator`](/wiki/roles/pipeline/hkb-pipeline-tools-orchestrator/) | [Shared Services](/architecture/shared-services/) | `codepipeline.amazonaws.com` | `hkb-pipeline-boundary` |
| [`hkb-pipeline-validate`](/wiki/roles/pipeline/hkb-pipeline-validate/) | [Shared Services](/architecture/shared-services/) | `codebuild.amazonaws.com` | `hkb-pipeline-boundary` |
| [`hkb-log-archive-replication`](/wiki/roles/machines/hkb-log-archive-replication/) | [Log Archive](/architecture/log-archive/) | `s3.amazonaws.com` | `hkb-workload-boundary` |

Each permission set and each role has a page of its own, with its policy text as deployed.
