Skip to main content

GraphQL Permission Reference

Each operation in the Massdriver GraphQL API and the ABAC permissions it requires.

  • Required permission(s): every action the resolver checks. When more than one is listed, all are required.
  • visibility-filtered: a list query with no permission of its own. It returns what the caller's group policies and grants already make visible.

For a least-privilege policy, take the union of the permissions for the operations the principal needs.

organization:manage is an umbrella. A policy that grants it satisfies organization:manageServiceAccounts, organization:manageGroups, organization:manageBilling, organization:manageIntegrations, organization:manageCustomAttributes, organization:manageResourceTypes, organization:manageSettings, organization:manageProfile, organization:manageMembers, and organization:manageEventDestinations. Grant a single sub-action to scope authority to one capability.


Project​

OperationTypeRequired permission(s)Notes
projectsQueryvisibility-filteredReturns only projects the caller has project:view on.
projectQueryproject:view
createProjectMutationproject:createChecked against the proposed effective attributes, including md-project (the project's local identifier).
cloneProjectMutationproject:view, project:createView on source, then create on the proposed clone.
updateProjectMutationproject:update
deleteProjectMutationproject:deleteProject must have no environments, components, or instances.
createProjectFromEnvironmentMutationproject:view, project:create, environment:createView on the source environment's project, then create on the proposed project and environment.
addComponentMutationproject:designAlso requires a repo grant on the bundle covering the destination project (view + grant gate).
updateComponentMutationproject:design
removeComponentMutationproject:designComponent must have no provisioned instances.
linkComponentsMutationproject:design
unlinkComponentsMutationproject:design
setComponentPositionMutationproject:design
componentQueryproject:viewLoaded via parent project.

Environment​

OperationTypeRequired permission(s)Notes
environmentsQueryvisibility-filtered
environmentQueryproject:view
compareEnvironmentsQueryproject:view (both source and target)
createEnvironmentMutationproject:view, environment:createView the parent project, then environment:create on the proposed environment (md-environment is the new env's identifier).
forkEnvironmentMutationproject:view, environment:createSame shape as createEnvironment.
updateEnvironmentMutationenvironment:update
deleteEnvironmentMutationenvironment:deleteEnvironment must have no provisioned instances.
setEnvironmentDefaultMutationenvironment:configure, resource:viewConfigure the env, view the resource being defaulted in. Also requires a resource grant covering the destination environment.
removeEnvironmentDefaultMutationenvironment:configure
deployEnvironmentMutationenvironment:deployDeploys every instance in dependency order. Replaces an in-flight environment deployment.
decommissionEnvironmentMutationenvironment:decommissionDecommissions every instance in reverse dependency order. The environment remains.
resourceTypeDependentsQueryproject:viewChecked on the environment's project.

Instance​

Mutations that create or act on deployments are listed here. The deployment queries are in Deployment.

OperationTypeRequired permission(s)Notes
instancesQueryvisibility-filtered
instanceQueryproject:view
paramDimensionsQueryvisibility-filteredAggregates over instances the caller can see.
updateInstanceMutationinstance:configureSets version constraints, release strategy.
setInstanceSecretMutationinstance:configure
removeInstanceSecretMutationinstance:configure
setRemoteReferenceMutationinstance:configure, resource:viewConfigure the destination instance, view the resource being wired in. Also requires a resource grant covering the instance's environment.
removeRemoteReferenceMutationinstance:configure
copyInstanceMutationproject:view, instance:configureView on source instance, configure on destination.
moveInstanceMutationinstance:move, plus project:design, instance:configure, resource:view, resource:grant as neededinstance:move on the instance before and after the move. project:design when the move adds the component, instance:configure and resource:view for each link it turns into a remote reference, resource:grant for each grant it creates. Fails with every missing permission and changes nothing.
orphanInstanceMutationinstance:decommissionBreak-glass reset to INITIALIZED. Clears state locks, aborts in-flight deployments, and with deleteState: true deletes the instance's OpenTofu/Terraform state.
forceUnlockInstanceStateMutationinstance:deployReleases the state lock of one step.
createDeploymentMutationinstance:deploy, instance:plan, or instance:decommissionPermission depends on input.action: PROVISION → instance:deploy, PLAN → instance:plan, DECOMMISSION → instance:decommission.
planDeploymentMutationinstance:planRe-runs a PLAN against a source deployment's params on the same instance. Source may be in any status.
proposeDeploymentMutationinstance:proposeOnly PROVISION and DECOMMISSION are proposable.
approveDeploymentMutationinstance:deploy
rejectDeploymentMutationinstance:deploySame permission as approve — both close out a proposal.
abortDeploymentMutationinstance:deploy, instance:plan, or instance:decommissionPermission mirrors the deployment's original action: PROVISION → instance:deploy, PLAN → instance:plan, DECOMMISSION → instance:decommission. Only PENDING, APPROVED, or RUNNING deployments are abortable. Use rejectDeployment to discard a PROPOSED deployment.
rollbackDeploymentMutationinstance:proposeChecked on the source deployment's instance. Creates a PROPOSED deployment from a COMPLETED PROVISION deployment.

Deployment​

OperationTypeRequired permission(s)Notes
deploymentsQueryvisibility-filtered
deploymentQueryproject:view
compareDeploymentsQueryproject:view (both deployments' projects)Source and target need not be on the same instance.

Instance Alarm​

OperationTypeRequired permission(s)Notes
instanceAlarmsQueryvisibility-filtered
instanceAlarmQueryproject:view
createInstanceAlarmMutationenvironment:updateAlarms attach to an instance but the gate is on the surrounding environment. A deployment subject that owns the underlying instance is also allowed.
updateInstanceAlarmMutationenvironment:updateA deployment subject that owns the underlying instance is also allowed.
deleteInstanceAlarmMutationenvironment:updateA deployment subject that owns the underlying instance is also allowed.

Resource​

OperationTypeRequired permission(s)Notes
resourcesQueryvisibility-filteredHonors group policies on resource:view plus project cascade plus grants.
resourceQueryresource:view
createResourceMutationresource:importImported resource only; provisioned resources are emitted by deployments.
updateResourceMutationresource:updateImported resource only.
deleteResourceMutationresource:deleteImported resource only.
exportResourceMutationresource:exportReturns the unmasked sensitive payload; recorded in the audit log.

Resource Type​

OperationTypeRequired permission(s)Notes
resourceTypesQueryno explicit gateAvailable to every org member. Deprecated.
resourceTypeQueryno explicit gate
publishResourceTypeMutationorganization:manageResourceTypesCovered by the organization:manage umbrella. Deprecated bridge from V0 publishArtifactDefinition.
deleteResourceTypeMutationorganization:manageResourceTypesCovered by the organization:manage umbrella. Deprecated bridge from V0 deleteArtifactDefinition.

OCI Repo / Bundle​

OperationTypeRequired permission(s)Notes
ociReposQueryvisibility-filteredUnion of repo:view policies and matching grants. filter.projectId also requires project:view on that project.
ociRepoQueryrepo:view
bundleQueryrepo:view
createOciRepoMutationrepo:createChecked against the proposed OCI repo's attributes (including md-repo).
updateOciRepoMutationrepo:update
deleteOciRepoMutationrepo:deleteRepo must have no published bundle versions.

Runtime / Application​

OperationTypeRequired permission(s)Notes
runtimesQueryvisibility-filteredReturns runtimes whose repository you can view.
runtimeQueryvisibility-filteredNot found when you cannot view the runtime's repository.
applicationsQueryvisibility-filteredReturns applications whose repository you can view.
applicationQueryvisibility-filteredNot found when you cannot view the application's repository.

Grant​

OperationTypeRequired permission(s)Notes
createRepoGrantMutationrepo:grantOn the source repo.
createResourceGrantMutationresource:grantOn the source resource.
deleteGrantMutationrepo:grant or resource:grantDispatch on grant kind: repo:grant for repo-source grants, resource:grant for resource-source grants.

There is no updateGrant. Grants are immutable: delete and re-create one to change recipient_conditions or action.

Group​

OperationTypeRequired permission(s)Notes
groupsQueryno explicit gateReturns every group in the organization.
groupQueryno explicit gate
createGroupMutationorganization:manageGroupsCovered by the organization:manage umbrella.
updateGroupMutationorganization:manageGroupsCovered by the organization:manage umbrella.
deleteGroupMutationorganization:manageGroupsCovered by the organization:manage umbrella.
addAccountToGroupMutationorganization:manageGroupsCovered by the organization:manage umbrella.
deleteGroupMemberMutationorganization:manageGroupsCovered by the organization:manage umbrella.
addServiceAccountToGroupMutationorganization:manageGroupsCovered by the organization:manage umbrella.
removeServiceAccountFromGroupMutationorganization:manageGroupsCovered by the organization:manage umbrella.
deleteGroupInvitationMutationorganization:manageGroupsCovered by the organization:manage umbrella.

Policy​

OperationTypeRequired permission(s)Notes
policyEntitiesQueryno explicit gateCatalog of entity types that can carry policies.
policyActionsQueryno explicit gateCatalog of available actions.
evaluatePolicyQueryno explicit gateEvaluation runs against the caller's own effective permissions.
evaluatePoliciesQueryno explicit gateBatched form of evaluatePolicy.
explainPolicyQueryno explicit gateRenders a policy spec (same shape as createGroupPolicy input) as sentences. The policy does not have to exist.
groupPolicyQueryno explicit gate
effectiveAttributesQueryno explicit gateAttribute keys that apply to an entity type.
createGroupPolicyMutationorganization:manageGroupsCovered by the organization:manage umbrella.
updatePolicyMutationorganization:manageGroupsCovered by the organization:manage umbrella.
deletePolicyMutationorganization:manageGroupsCovered by the organization:manage umbrella.

Custom Attribute​

OperationTypeRequired permission(s)Notes
customAttributeSchemaQueryno explicit gateSchema is org-public.
customAttributeValuesQueryno explicit gate
createCustomAttributeMutationorganization:manageCustomAttributesCovered by the organization:manage umbrella.
updateCustomAttributeMutationorganization:manageCustomAttributesCovered by the organization:manage umbrella.
deleteCustomAttributeMutationorganization:manageCustomAttributesCovered by the organization:manage umbrella.

Organization​

OperationTypeRequired permission(s)Notes
organizationQueryno explicit gatePublic profile fields (name, logo, identifier) are open to every org member. The members and member fields are open to every org member as well. Sensitive subfields gate individually: billing requires organization:manageBilling, customAttributes requires organization:manageCustomAttributes, settings requires organization:manageSettings. Each resolves to null with a top-level FORBIDDEN error when the caller lacks the sub-action. All three are covered by the organization:manage umbrella.
namingConventionAtomsQueryorganization:manageSettingsCovered by the organization:manage umbrella.
createOrganizationMutationauthenticated onlyCaller becomes the org's first owner.
updateOrganizationMutationorganization:manageProfileCovered by the organization:manage umbrella.
updateOrganizationSettingsMutationorganization:manageSettingsCovered by the organization:manage umbrella. Settings are partial-update: only the provided settings change.
setOrganizationLogoMutationorganization:manageProfileCovered by the organization:manage umbrella.
removeOrganizationLogoMutationorganization:manageProfileCovered by the organization:manage umbrella.
deleteOrganizationMemberMutationorganization:manageMembersCovered by the organization:manage umbrella.

Service Account​

OperationTypeRequired permission(s)Notes
serviceAccountsQueryorganization:manageServiceAccountsCovered by the organization:manage umbrella.
serviceAccountQueryorganization:manageServiceAccountsCovered by the organization:manage umbrella.
createServiceAccountMutationorganization:manageServiceAccountsCovered by the organization:manage umbrella.
updateServiceAccountMutationorganization:manageServiceAccountsCovered by the organization:manage umbrella.
deleteServiceAccountMutationorganization:manageServiceAccountsCovered by the organization:manage umbrella.

Access Token​

OperationTypeRequired permission(s)Notes
accessTokensQueryno explicit gateReturns only your own tokens. Admins cannot list other principals' tokens.
createPersonalAccessTokenMutationno explicit gateIssues a token for the calling account. Human accounts only. Expiry capped at 1 year.
createServiceAccountAccessTokenMutationno explicit gateIssues a token for the calling service account. Service accounts only. Expiry capped at 10 years.
revokeAccessTokenMutationowner-onlyOnly the token's owner can revoke it. Admins cannot revoke another user's personal tokens.

Integration​

OperationTypeRequired permission(s)Notes
integrationsQueryorganization:manageIntegrationsCovered by the organization:manage umbrella.
integrationQueryorganization:manageIntegrationsCovered by the organization:manage umbrella.
integrationTypesQueryno explicit gate
createIntegrationMutationorganization:manageIntegrationsCovered by the organization:manage umbrella.
updateIntegrationMutationorganization:manageIntegrationsCovered by the organization:manage umbrella.
enableIntegrationMutationorganization:manageIntegrationsCovered by the organization:manage umbrella.
disableIntegrationMutationorganization:manageIntegrationsCovered by the organization:manage umbrella.
deleteIntegrationMutationorganization:manageIntegrationsCovered by the organization:manage umbrella.

Event Destination​

OperationTypeRequired permission(s)Notes
eventDestinationAdaptersQueryno explicit gateStatic catalog of destination types.
eventDestinationsQueryorganization:manageEventDestinationsCovered by the organization:manage umbrella.
eventDestinationQueryorganization:manageEventDestinationsCovered by the organization:manage umbrella. Includes the destination's deliveries.
previewEventDestinationQueryorganization:manageEventDestinationsCovered by the organization:manage umbrella. Returns every matching event in the organization, not only events in projects the caller can view.
createEventDestinationMutationorganization:manageEventDestinationsCovered by the organization:manage umbrella.
updateEventDestinationMutationorganization:manageEventDestinationsCovered by the organization:manage umbrella.
pauseEventDestinationMutationorganization:manageEventDestinationsCovered by the organization:manage umbrella.
resumeEventDestinationMutationorganization:manageEventDestinationsCovered by the organization:manage umbrella.
deleteEventDestinationMutationorganization:manageEventDestinationsCovered by the organization:manage umbrella.
testEventDestinationMutationorganization:manageEventDestinationsCovered by the organization:manage umbrella.
redeliverEventsMutationorganization:manageEventDestinationsCovered by the organization:manage umbrella.

Stash​

Each stash action is checked on the entity that holds the entries: the project, environment, component, or instance. For a deployment's entries, it is checked on the deployment's instance. A deployment's own credentials do not use these actions.

OperationTypeRequired permission(s)Notes
alphaStashEntryQuerystash:viewA sensitive value is null without stash:export.
alphaStashEntriesQuerystash:viewSensitive values are null without stash:export.
alphaStashEntriesForScopesQuerystash:view on every scopeNever returns sensitive entries.
alphaSetStashEntryMutationstash:write
alphaDeleteStashEntryMutationstash:write
alphaStashEventsSubscriptionstash:view on the project, and on the environment when you pass environmentId
alphaWidgetCatalogQueryno explicit gateStatic catalog of widgets and their well-known keys.
alphaWidgetsForScopesQuerystash:view on every scope
alphaUiNoticesQuery and subscriptionvisibility-filteredReturns the notices of the projects and environments where you have stash:view.

Annotation​

Annotations are private to the account that creates them. Service accounts cannot have annotations.

OperationTypeRequired permission(s)Notes
alphaAnnotationsQueryproject:viewReturns only your own annotations.
alphaAnnotationQueryproject:viewAnother account's annotation is not found.
alphaCreateAnnotationMutationproject:view
alphaUpdateAnnotationMutationproject:view
alphaDeleteAnnotationMutationproject:view

Audit Log​

OperationTypeRequired permission(s)Notes
auditLogsQueryproject-scoped rows: no explicit gate; org-level rows: organization:manageA caller sees the project-scoped entries of every project they can view. Org-level entries (billing, integrations, service accounts, profile changes) require organization:manage.
auditLogQueryproject-scoped: no explicit gate; org-level: organization:manageSame split as the list query. Project-scoped entries are reachable through project:view on the entry's project; org-level entries require the umbrella.
auditLogEventTypesQueryno explicit gateCatalog query.

Event Catalog​

OperationTypeRequired permission(s)Notes
eventTypesQueryno explicit gateStatic catalog of event identifiers.

Subscriptions​

OperationTypeRequired permission(s)Notes
organizationEventsSubscriptionno explicit gateOpen to every org member. A project event for a project the member does not have project:view on arrives as null. An OCI repository event, or a bundle event for a version published to that repository, arrives as null unless the member can see the repository: a repo:view policy, or a grant on the repository to a project they can view.
projectEventsSubscriptionproject:view
environmentEventsSubscriptionproject:viewInherits the surrounding project's view permission.
instanceEventsSubscriptionproject:viewIf you cannot view the instance's project, for example after it moves or you lose access, events arrive as null.
deploymentEventsSubscriptionproject:viewChecked against the project of the deployment's instance. If you cannot view it, events arrive as null.
deploymentLogsSubscriptionproject:viewStreams log lines for a single deployment. Checked against the project of the deployment's instance. If you cannot view it, batches arrive as null.

projectEvents, environmentEvents, instanceEvents, and deploymentEvents also send stash entry events. The entry of a stash entry event is null when you do not have stash:view on the entity that holds the entry.

Viewer (Self-context)​

OperationTypeRequired permission(s)Notes
viewerQueryauthenticated onlyReturns the current account or service account. No ABAC check.
updateAccountMutationself-onlyHuman accounts only. Fails when SCIM manages the name.
acceptGroupInviteMutationinvitation-scopedCaller must be the invite's recipient.
setAccountAvatarMutationself-onlyEdits your own profile.
removeAccountAvatarMutationself-only

Server​

OperationTypeRequired permission(s)Notes
serverQueryunauthenticatedPublic endpoint exposing build/version metadata.

Visibility filtering, in detail​

A visibility-filtered list query folds the caller's group policies and matching grants into its query:

  • projects returns the union of projects matched by the caller's project:view policies.
  • ociRepos returns repos matched by repo:view policies plus repos with grants whose recipient_conditions match a project the caller has project:view on. A deny repo:view policy does not remove a granted repo. filter.projectId keeps only the repos granted to that project, and filter.viewer keeps only the repos the caller's own policies match (true) or do not match (false).
  • resources returns resources matched by resource:view policies plus the project cascade for provisioned resources, plus grants.

The single-entity queries (project, ociRepo, resource) check the matching :view permission and return not_found on denial.

Conventions​

  • forbidden is masked as not_found for read paths that need to obscure existence (e.g., project, environment). Mutations return an explicit forbidden error.
  • Proposed-attribute checks apply to create* mutations: the resolver synthesizes the would-be entity's effective attributes (cascaded parent attrs + the entity's own md-id and local identifier) and checks ABAC against that map. This lets policies gate creation by name (md-environment: [dev, staging, prod]).
  • The built-in admin group has full access. Its members pass every check on this page. You cannot add policies to it, rename it, or delete it.

See also​