Docs
check
What your account lacks, command by command: dormeto aws check on a manager, dormeto gcp check in a Google Cloud project.
1 min read
check

dormeto aws
Shows the permissions the profile lacks for each method, read-only.
dormeto aws check
No option of its own.
dormeto aws check
Table
Account 111122223333 (prod), manager dmt-prod-manager-api 0.24.0, checked as arn:aws:sts::111122223333:assumed-role/ops/ci
✓ alerts: every permission held
✓ api: every permission held
✓ audit: every permission held
✓ discovery: every permission held
✓ estimate: every permission held
✓ exclusions: every permission held
✓ groups: every permission held
✓ install: every permission held
✓ ip-lists: every permission held
✓ manager: every permission held
✓ operations: every permission held
✓ overview: every permission held
✓ routers: every permission held
✓ savings: every permission held
✓ schedule: every permission held
✓ settings: every permission held
✓ types: every permission held
✓ uninstall: every permission held
✓ users: every permission held
✓ whoami: every permission held
✓ workloads: every permission held
! IAM's simulation leaves out service control policies and the API's own refusals
JSON
{
"account": "111122223333",
"caller": "arn:aws:sts::111122223333:assumed-role/ops/ci",
"manager": {
"api": "dmt-prod-manager-api",
"version": "0.24.0"
},
"commands": [
{
"command": "alerts",
"checked": true,
"held": [
"apigateway:GET",
"execute-api:Invoke on GET /iam/alerts"
],
"missing": []
},
{
"command": "api",
"checked": true,
"held": [
"apigateway:GET",
"execute-api:Invoke on ANY /iam/*"
],
"missing": []
},
{
"command": "audit",
"checked": true,
"held": [
"apigateway:GET",
"execute-api:Invoke on GET /iam/audit"
],
"missing": []
},
{
"command": "discovery",
"checked": true,
"held": [
"apigateway:GET",
"execute-api:Invoke on GET /iam/discovery",
"execute-api:Invoke on POST /iam/discovery/run",
"execute-api:Invoke on GET /iam/discovery/candidates",
"execute-api:Invoke on POST /iam/discovery/dismiss",
"execute-api:Invoke on POST /iam/discovery/restore",
"execute-api:Invoke on GET /iam/discovery/access",
"execute-api:Invoke on GET /iam/discovery/config",
"execute-api:Invoke on PUT /iam/discovery/config"
],
"missing": []
},
{
"command": "estimate",
"checked": true,
"held": [
"autoscaling:DescribeAutoScalingGroups",
"cloudwatch:GetMetricData",
"ec2:DescribeInstances",
"ec2:DescribeRegions",
"ec2:DescribeSecurityGroups",
"ec2:DescribeSpotPriceHistory",
"ecs:DescribeServices",
"ecs:DescribeTaskDefinition",
"ecs:ListClusters",
"ecs:ListServices",
"eks:DescribeCluster",
"eks:ListClusters",
"elasticloadbalancing:DescribeListeners",
"elasticloadbalancing:DescribeLoadBalancers",
"elasticloadbalancing:DescribeRules",
"elasticloadbalancing:DescribeTags",
"elasticloadbalancing:DescribeTargetGroups",
"elasticloadbalancing:DescribeTargetHealth",
"organizations:DescribeOrganization",
"organizations:ListAccountsForParent",
"organizations:ListOrganizationalUnitsForParent",
"organizations:ListRoots",
"organizations:ListTagsForResource",
"pricing:GetProducts",
"rds:DescribeDBClusters",
"rds:DescribeDBInstances",
"sts:AssumeRole",
"sts:GetCallerIdentity"
],
"missing": []
},
{
"command": "exclusions",
"checked": true,
"held": [
"apigateway:GET",
"execute-api:Invoke on GET /iam/exclusions",
"execute-api:Invoke on POST /iam/exclusions",
"execute-api:Invoke on DELETE /iam/exclusions/*",
"execute-api:Invoke on GET /iam/operations/*"
],
"missing": []
},
{
"command": "groups",
"checked": true,
"held": [
"apigateway:GET",
"execute-api:Invoke on GET /iam/groups",
"execute-api:Invoke on POST /iam/groups",
"execute-api:Invoke on PUT /iam/groups/*",
"execute-api:Invoke on DELETE /iam/groups/*"
],
"missing": []
},
{
"command": "install",
"checked": true,
"held": [
"s3:CreateBucket",
"s3:PutBucketPolicy",
"s3:PutObject",
"s3:GetObject",
"iam:CreateRole",
"iam:AttachRolePolicy",
"iam:PassRole",
"iam:TagRole",
"codebuild:CreateProject",
"codebuild:StartBuild",
"codebuild:BatchGetBuilds",
"logs:CreateLogGroup",
"logs:GetLogEvents",
"iam:PutRolePolicy",
"s3:PutBucketNotification",
"events:PutRule",
"events:PutTargets"
],
"missing": []
},
{
"command": "ip-lists",
"checked": true,
"held": [
"apigateway:GET",
"execute-api:Invoke on GET /iam/ip-lists"
],
"missing": []
},
{
"command": "manager",
"checked": true,
"held": [
"apigateway:GET",
"execute-api:Invoke on GET /iam/health",
"execute-api:Invoke on GET /iam/update",
"execute-api:Invoke on GET /iam/update/check",
"execute-api:Invoke on PUT /iam/update/check",
"execute-api:Invoke on GET /iam/update/changes",
"execute-api:Invoke on POST /iam/update/plan",
"execute-api:Invoke on POST /iam/update/apply",
"execute-api:Invoke on GET /iam/operations"
],
"missing": []
},
{
"command": "operations",
"checked": true,
"held": [
"apigateway:GET",
"execute-api:Invoke on GET /iam/operations",
"execute-api:Invoke on GET /iam/operations/*"
],
"missing": []
},
{
"command": "overview",
"checked": true,
"held": [
"apigateway:GET",
"execute-api:Invoke on GET /iam/workloads",
"execute-api:Invoke on GET /iam/workloads/states",
"execute-api:Invoke on GET /iam/savings",
"execute-api:Invoke on GET /iam/alerts",
"execute-api:Invoke on GET /iam/operations",
"execute-api:Invoke on GET /iam/routers"
],
"missing": []
},
{
"command": "routers",
"checked": true,
"held": [
"apigateway:GET",
"execute-api:Invoke on GET /iam/routers",
"execute-api:Invoke on GET /iam/routers/*",
"execute-api:Invoke on GET /iam/workloads",
"execute-api:Invoke on POST /iam/operations",
"execute-api:Invoke on GET /iam/operations/*",
"execute-api:Invoke on POST /iam/routers/*/pause",
"execute-api:Invoke on POST /iam/routers/*/resume",
"execute-api:Invoke on PUT /iam/routers/*/settings",
"execute-api:Invoke on GET /iam/routers/*/description",
"execute-api:Invoke on PUT /iam/routers/*/description",
"execute-api:Invoke on DELETE /iam/routers/*/description",
"execute-api:Invoke on GET /iam/routers/*/waiting-page",
"execute-api:Invoke on PUT /iam/routers/*/waiting-page",
"execute-api:Invoke on DELETE /iam/routers/*/waiting-page"
],
"missing": []
},
{
"command": "savings",
"checked": true,
"held": [
"apigateway:GET",
"execute-api:Invoke on GET /iam/savings",
"execute-api:Invoke on PUT /iam/savings/settings"
],
"missing": []
},
{
"command": "schedule",
"checked": true,
"held": [
"apigateway:GET",
"execute-api:Invoke on GET /iam/workloads",
"execute-api:Invoke on GET /iam/workloads/*/*",
"execute-api:Invoke on PUT /iam/workloads/*/*/schedule",
"execute-api:Invoke on DELETE /iam/workloads/*/*/schedule"
],
"missing": []
},
{
"command": "settings",
"checked": true,
"held": [
"apigateway:GET",
"execute-api:Invoke on GET /iam/settings/workloads",
"execute-api:Invoke on PUT /iam/settings/workloads",
"execute-api:Invoke on GET /iam/settings/waiting-page",
"execute-api:Invoke on PUT /iam/settings/waiting-page",
"execute-api:Invoke on DELETE /iam/settings/waiting-page"
],
"missing": []
},
{
"command": "types",
"checked": true,
"held": [
"apigateway:GET",
"execute-api:Invoke on GET /iam/settings/types",
"execute-api:Invoke on PUT /iam/settings/types"
],
"missing": []
},
{
"command": "uninstall",
"checked": true,
"held": [
"s3:CreateBucket",
"s3:PutBucketPolicy",
"s3:PutObject",
"s3:GetObject",
"iam:CreateRole",
"iam:AttachRolePolicy",
"iam:PassRole",
"iam:TagRole",
"codebuild:CreateProject",
"codebuild:StartBuild",
"codebuild:BatchGetBuilds",
"logs:CreateLogGroup",
"logs:GetLogEvents",
"iam:PutRolePolicy",
"s3:PutBucketNotification",
"events:PutRule",
"events:PutTargets"
],
"missing": []
},
{
"command": "users",
"checked": true,
"held": [
"apigateway:GET",
"execute-api:Invoke on GET /iam/users",
"execute-api:Invoke on POST /iam/users",
"execute-api:Invoke on PUT /iam/users/*/role",
"execute-api:Invoke on PUT /iam/users/*/groups",
"execute-api:Invoke on POST /iam/users/*/disable",
"execute-api:Invoke on POST /iam/users/*/enable",
"execute-api:Invoke on POST /iam/users/*/resend",
"execute-api:Invoke on POST /iam/users/*/mfa/reset"
],
"missing": []
},
{
"command": "whoami",
"checked": true,
"held": [
"apigateway:GET",
"execute-api:Invoke on GET /iam/me",
"execute-api:Invoke on GET /iam/health"
],
"missing": []
},
{
"command": "workloads",
"checked": true,
"held": [
"apigateway:GET",
"execute-api:Invoke on GET /iam/workloads",
"execute-api:Invoke on GET /iam/workloads/*/*",
"execute-api:Invoke on GET /iam/workloads/*/*/history",
"execute-api:Invoke on GET /iam/workloads/*/*/idle-window",
"execute-api:Invoke on GET /iam/routers",
"execute-api:Invoke on GET /iam/discovery/candidates",
"execute-api:Invoke on POST /iam/operations",
"execute-api:Invoke on GET /iam/operations/*",
"execute-api:Invoke on POST /iam/exclusions",
"execute-api:Invoke on POST /iam/workloads/*/*/wake",
"execute-api:Invoke on POST /iam/workloads/*/*/nap",
"execute-api:Invoke on POST /iam/workloads/*/*/pause",
"execute-api:Invoke on POST /iam/workloads/*/*/resume",
"execute-api:Invoke on POST /iam/workloads/*/*/rename",
"execute-api:Invoke on PUT /iam/workloads/*/*/tags",
"execute-api:Invoke on PUT /iam/workloads/*/*/settings",
"execute-api:Invoke on GET /iam/workloads/*/*/description",
"execute-api:Invoke on PUT /iam/workloads/*/*/description",
"execute-api:Invoke on DELETE /iam/workloads/*/*/description",
"execute-api:Invoke on GET /iam/workloads/*/*/waiting-page",
"execute-api:Invoke on PUT /iam/workloads/*/*/waiting-page",
"execute-api:Invoke on DELETE /iam/workloads/*/*/waiting-page"
],
"missing": []
}
],
"warnings": [
"IAM's simulation leaves out service control policies and the API's own refusals"
]
}
- It asks IAM to simulate the profile's policies:
iam:SimulatePrincipalPolicy, andiam:GetRolefor an assumed role. - A manager's method needs
apigateway:GETto find the API, but with--api-url. - It also needs
execute-api:Invokeon each route it calls (Roles). - A route's
{…}is*: a policy narrowed to some routers or workloads shows those routes missing. installanduninstallneed the install's actions,estimateits reads.- With no manager found, it checks
install,uninstallandestimateonly, and says so. - When IAM refuses the simulation, each method is
not checkedand a warning says why: exit 0. - A method that lacks a permission: exit 1.
- The simulation leaves out service control policies and the manager's own refusals.
install checktests an install's prerequisites, not your rights on a manager (install).
dormeto gcp
Checks the permissions you lack for each command, read-only.
dormeto gcp check --project <project> [--region <region>] [--with cloud-sql,gke] [--image <image>]
| Option | Values | Default | Effect |
|---|---|---|---|
--region | a region | — | The router's region: its install record is tested too. |
--with | cloud-sql or gke, comma-separated or repeated | — | These features' optional access; the record's too with --region. |
--image | an image tagged with its version | Dormeto's | Your own router image: its permissions and Artifact Registry's API. |
dormeto gcp check --project my-project --region europe-west1
Table
Project my-project (123456789012), in organization 42, checked as ops@example.com
✓ check: every permission held
✓ install: every permission held
✓ install-router: every permission held
✓ uninstall: every permission held
✓ workloads: every permission held
✓ onboard: every permission held
✓ offboard: every permission held
✓ connect: every permission held
✓ disconnect: every permission held
APIs on: none
APIs off: compute.googleapis.com, run.googleapis.com, firestore.googleapis.com, cloudtasks.googleapis.com, cloudscheduler.googleapis.com, monitoring.googleapis.com, iam.googleapis.com, cloudresourcemanager.googleapis.com, logging.googleapis.com
✓ billing: enabled
JSON
{
"project": {
"id": "my-project",
"number": "123456789012",
"parent": "organizations/42"
},
"account": "ops@example.com",
"commands": [
{
"command": "check",
"held": [
"resourcemanager.projects.get",
"resourcemanager.projects.getIamPolicy",
"serviceusage.services.list",
"serviceusage.services.use"
],
"missing": []
},
{
"command": "install",
"held": [
"cloudtasks.queues.create",
"cloudtasks.queues.get",
"cloudtasks.queues.getIamPolicy",
"cloudtasks.queues.setIamPolicy",
"cloudtasks.queues.update",
"datastore.databases.create",
"datastore.databases.get",
"datastore.entities.create",
"datastore.entities.get",
"datastore.entities.update",
"datastore.operations.get",
"iam.roles.create",
"iam.roles.get",
"iam.roles.undelete",
"iam.roles.update",
"iam.serviceAccounts.actAs",
"iam.serviceAccounts.create",
"iam.serviceAccounts.get",
"iam.serviceAccounts.getIamPolicy",
"iam.serviceAccounts.setIamPolicy",
"logging.views.create",
"logging.views.get",
"logging.views.update",
"resourcemanager.projects.get",
"resourcemanager.projects.getIamPolicy",
"resourcemanager.projects.setIamPolicy",
"resourcemanager.tagKeys.create",
"resourcemanager.tagKeys.get",
"resourcemanager.tagValues.create",
"resourcemanager.tagValues.get",
"serviceusage.operations.get",
"serviceusage.services.enable",
"serviceusage.services.list",
"serviceusage.services.use"
],
"missing": []
},
{
"command": "install-router",
"held": [
"cloudscheduler.jobs.create",
"cloudscheduler.jobs.get",
"cloudscheduler.jobs.update",
"compute.regionNetworkEndpointGroups.create",
"compute.regionNetworkEndpointGroups.get",
"compute.regionOperations.get",
"iam.serviceAccounts.actAs",
"run.operations.get",
"run.routes.invoke",
"run.services.create",
"run.services.get",
"run.services.getIamPolicy",
"run.services.setIamPolicy",
"run.services.update"
],
"missing": []
},
{
"command": "uninstall",
"held": [
"cloudscheduler.jobs.delete",
"cloudscheduler.jobs.get",
"cloudtasks.queues.delete",
"cloudtasks.queues.get",
"compute.regionNetworkEndpointGroups.delete",
"compute.regionNetworkEndpointGroups.get",
"compute.regionOperations.get",
"datastore.databases.delete",
"datastore.databases.get",
"datastore.databases.list",
"datastore.entities.get",
"datastore.entities.list",
"datastore.operations.get",
"iam.roles.delete",
"iam.roles.get",
"iam.serviceAccounts.delete",
"iam.serviceAccounts.get",
"logging.views.delete",
"logging.views.get",
"resourcemanager.projects.get",
"resourcemanager.projects.getIamPolicy",
"resourcemanager.projects.setIamPolicy",
"resourcemanager.tagKeys.delete",
"resourcemanager.tagKeys.get",
"resourcemanager.tagValues.delete",
"resourcemanager.tagValues.get",
"run.operations.get",
"run.routes.invoke",
"run.services.delete",
"run.services.get",
"serviceusage.services.list",
"serviceusage.services.use"
],
"missing": []
},
{
"command": "workloads",
"held": [
"run.routes.invoke"
],
"missing": []
},
{
"command": "onboard",
"held": [
"compute.backendServices.get",
"compute.backendServices.update",
"compute.globalOperations.get",
"compute.instanceGroupManagers.createTagBinding",
"compute.instanceGroupManagers.deleteTagBinding",
"compute.instanceGroupManagers.listTagBindings",
"compute.instances.createTagBinding",
"compute.instances.deleteTagBinding",
"compute.instances.listTagBindings",
"compute.regionBackendServices.get",
"compute.regionBackendServices.update",
"compute.regionOperations.get",
"resourcemanager.tagValueBindings.create",
"resourcemanager.tagValueBindings.delete",
"resourcemanager.tagValues.get",
"run.routes.invoke"
],
"missing": []
},
{
"command": "offboard",
"held": [
"compute.backendServices.get",
"compute.backendServices.update",
"compute.globalOperations.get",
"compute.instanceGroupManagers.deleteTagBinding",
"compute.instanceGroupManagers.listTagBindings",
"compute.instances.deleteTagBinding",
"compute.instances.listTagBindings",
"compute.regionBackendServices.get",
"compute.regionBackendServices.update",
"compute.regionOperations.get",
"resourcemanager.tagValueBindings.delete",
"resourcemanager.tagValues.get",
"run.routes.invoke"
],
"missing": []
},
{
"command": "connect",
"held": [
"iam.roles.create",
"iam.roles.get",
"iam.roles.undelete",
"iam.roles.update",
"iam.serviceAccounts.create",
"iam.serviceAccounts.get",
"iam.serviceAccounts.getIamPolicy",
"iam.serviceAccounts.setIamPolicy",
"iam.workloadIdentityPoolProviders.create",
"iam.workloadIdentityPoolProviders.get",
"iam.workloadIdentityPoolProviders.undelete",
"iam.workloadIdentityPoolProviders.update",
"iam.workloadIdentityPools.create",
"iam.workloadIdentityPools.get",
"iam.workloadIdentityPools.undelete",
"iam.workloadIdentityPools.update",
"resourcemanager.projects.get",
"resourcemanager.projects.getIamPolicy",
"resourcemanager.projects.setIamPolicy",
"resourcemanager.tagValues.get",
"resourcemanager.tagValues.getIamPolicy",
"resourcemanager.tagValues.setIamPolicy",
"run.services.get",
"run.services.getIamPolicy",
"run.services.list",
"run.services.setIamPolicy",
"serviceusage.operations.get",
"serviceusage.services.enable",
"serviceusage.services.list",
"serviceusage.services.use"
],
"missing": []
},
{
"command": "disconnect",
"held": [
"iam.roles.delete",
"iam.roles.get",
"iam.serviceAccounts.delete",
"iam.serviceAccounts.get",
"iam.workloadIdentityPoolProviders.delete",
"iam.workloadIdentityPoolProviders.get",
"iam.workloadIdentityPools.delete",
"iam.workloadIdentityPools.get",
"resourcemanager.projects.get",
"resourcemanager.projects.getIamPolicy",
"resourcemanager.projects.setIamPolicy",
"resourcemanager.tagValues.get",
"resourcemanager.tagValues.getIamPolicy",
"resourcemanager.tagValues.setIamPolicy",
"run.services.get",
"run.services.getIamPolicy",
"run.services.list",
"run.services.setIamPolicy",
"serviceusage.services.list",
"serviceusage.services.use"
],
"missing": []
}
],
"apis": {
"enabled": [],
"missing": [
"compute.googleapis.com",
"run.googleapis.com",
"firestore.googleapis.com",
"cloudtasks.googleapis.com",
"cloudscheduler.googleapis.com",
"monitoring.googleapis.com",
"iam.googleapis.com",
"cloudresourcemanager.googleapis.com",
"logging.googleapis.com"
]
},
"billing": {
"checked": true,
"enabled": true
},
"warnings": []
}
- What it tests: Router.
- It also checks the APIs on, and the project's billing account: none, exit 1.
connectanddisconnectare tested for what they do in the project.- A command that lacks a permission: exit 1.