Skip to main content

Permissions and restrictions

This page documents the authentication, role, email verification, and billing requirements of the platform's user-facing operations, in the platform UI, the CLI and the API. The notes below the table name the operations it leaves out, and Workflow run token covers the credential a task in a run uses.

Guard vocabulary​

The table's columns show four types of guards; the notes below the table cover the rest:

ColumnWhat it checks
Auth requiredRequest is authenticated (valid token present)
Email verifiedAuthenticated user's email is verified
Minimum roleUser's role is at least the specified level
Billing activeAccount billing status is Active

Roles in ascending order: Contributor → Admin → Owner. An Owner satisfies any minimum-role check. In the Minimum role column, — means the operation has no role check of its own; you still have to be a member of the account.


Permissions table​

Personal account​

OperationAuth requiredEmail verifiedMinimum roleBilling active
Get account infoYesNo—No
Change account nameYesYesOwnerNo
Change passwordYesYesOwnerNo
Read password policyYesNo—No
Check email verificationYesNoOwnerNo
Change workflow storage sizeYesYesOwnerNo
List my organizationsYesNo—No

Organizations​

OperationAuth requiredEmail verifiedMinimum roleBilling active
Get organization infoYesNo—No
Create organizationYesYesOwnerNo
Rename organizationYesYesOwnerNo
Change organization workflow storage sizeYesYesAdminNo
Delete organizationYesYesOwnerNo
Leave organizationYesYesContributorNo

Create organization checks the role on your personal account, where you are always the Owner.

Organization members​

OperationAuth requiredEmail verifiedMinimum roleBilling active
List membersYesNoAdminNo
Add memberYesYesAdminNo
Change member roleYesYesAdminNo
Remove memberYesYesAdminNo

Avatars​

OperationAuth requiredEmail verifiedMinimum roleBilling active
Get account avatarYesNoOwnerNo
Set account avatarYesYesOwnerNo
Remove account avatarYesYesOwnerNo
Get organization avatarYesNoContributorNo
Set organization avatarYesYesAdminNo
Remove organization avatarYesYesAdminNo

Teams​

OperationAuth requiredEmail verifiedMinimum roleBilling active
List teamsYesNoAdminNo
Create teamYesYesAdminNo
Update teamYesYesAdminNo
Delete teamYesYesAdminNo
List team membersYesNoAdminNo
Add team memberYesYesAdminNo
Remove team memberYesYesAdminNo

MFA (multi-factor authentication)​

OperationAuth requiredEmail verifiedMinimum roleBilling active
Get MFA statusYesNoOwnerNo
Sync MFA statusYesYesOwnerNo
Check can-disable MFAYesNoOwnerNo
Disable MFAYesYesOwnerNo
Regenerate recovery codeYesYesOwnerNo
Change organization MFA requirementYesYesAdminNo

Personal access tokens​

OperationAuth requiredEmail verifiedMinimum roleBilling active
Create tokenYesYes—No
List tokensYesNo—No
Get tokenYesNo—No
Check token nameYesNo—No
Rename tokenYesYes—No
Regenerate tokenYesYes—No
Delete tokenYesYes—No

Projects​

OperationAuth requiredEmail verifiedMinimum roleBilling active
Create projectYesYesAdminNo
List projectsYesNo—No
Get projectYesNo—No
Get project summaryYesNoContributorNo
List project runsYesNoContributorNo
List project runs in progressYesNoContributorNo
List recently ended project runsYesNoContributorNo
Follow project run changesYesNoContributorNo
Delete projectYesYesAdminNo
List deleted projectsYesNoAdminNo
Restore projectYesNoAdminNo
Set project workflow storage sizeYesYesAdminNo
Rename projectYesYesAdminNo

Repositories and tags​

OperationAuth requiredEmail verifiedMinimum roleBilling active
Create repositoryYesYes—No
List repositoriesYesNo—No
Get repositoryYesNo—No
Check repository existsYesNo—No
Delete repositoryYesYes—No
List deleted repositoriesYesNo—No
Restore repositoryYesNo—No
Create tag (push, re-tag)YesYes—No
List tagsYesNo—No
Get tagYesNo—No
Delete tagYesYes—No

Secrets​

OperationAuth requiredEmail verifiedMinimum roleBilling active
Create account secretYesYesAdminNo
Update account secret valueYesYesAdminNo
Update account secret allowed projectsYesYesAdminNo
Add account secret allowed projectYesYesAdminNo
Remove account secret allowed projectYesYesAdminNo
Delete account secretYesYesAdminNo
Get account secretYesNoAdminNo
List account secretsYesNoAdminNo
List account secrets by projectYesNoContributorNo
Create project secretYesYesContributorNo
Update project secretYesYesContributorNo
Delete project secretYesYesContributorNo
Get project secretYesNo—No
List project secretsYesNo—No

Workflows and runs​

OperationAuth requiredEmail verifiedMinimum roleBilling active
Create workflowYesYesContributorNo
Get workflowYesNoContributorNo
List workflowsYesNoContributorNo
Update workflowYesYesContributorNo
Delete workflowYesYesContributorNo
Start runYesYesContributorYes
Get runYesNoContributorNo
List runsYesNoContributorNo
Follow run stateYesNoContributorNo
Get account summaryYesNoContributorNo
List account runs in progressYesNoContributorNo
List recently ended account runsYesNoContributorNo
Follow account run changesYesNoContributorNo
Cancel runYesYesContributorNo
Delete runYesYesContributorNo
List run tasksYesNoContributorNo
Get run taskYesNoContributorNo

Task definitions​

OperationAuth requiredEmail verifiedMinimum roleBilling active
Create task definitionYesYesAdminYes
Publish versionYesYesAdminYes
List task definitionsYesNoContributorNo
Get task definitionYesNoContributorNo
List versionsYesNoContributorNo
Make public / privateYesYesAdminNo
Delete versionYesYesAdminNo
Delete task definitionYesYesAdminNo

Usage & Billing​

OperationAuth requiredEmail verifiedMinimum roleBilling active
View usageYesNoOwnerNo
View costYesNoOwnerNo
Get billing statusYesNoContributorNo

GitHub integration​

OperationAuth requiredEmail verifiedMinimum roleBilling active
Check GitHub connectionYesNo—No
List connected ownersYesNo—No
Disconnect GitHub ownerYesYes—No
List source ownersYesNo—No
List source repositoriesYesNo—No
Browse source filesYesNo—No

The last three rows are the browsing the GitHub import dialogs do, and also need a GitHub connection on your own account. Importing a workflow is then Create workflow, re-importing one Update workflow, and importing a task definition Create task definition or Publish version, each with the requirements in its own row.


Notes​

  • Every operation listed here requires authentication — every request must carry a valid token.
  • Avatars on the Hub. Swale Hub shows an account's avatar to anyone, without sign-in, while the account has at least one public task definition; that read is not listed here.
  • The workflow run token is narrower than any row here. The table describes people; see Workflow run token for what a task holding the workflow run token can reach.
  • Turnstile-protected endpoints (account registration, account deletion, changing the account email, resending the verification email, account-name existence check) need a Turnstile token that only the platform UI obtains, so they are infrastructure and are not listed here. Neither is the registration page's password-policy fetch before sign-in, which needs neither sign-in nor a Turnstile token and returns the same rules as the documented password-policy endpoint. Changing your email and resending the verification email are done from Account Details; see Manage account settings.
  • Sign-in-only operations. Changing your password, changing the account email, deleting your personal account, disabling MFA, regenerating your recovery code and every personal access token operation refuse a personal access token, whatever else comes with the request, so only someone signed in to the platform UI can do them. The Change password and token rows above describe that signed-in request. Deleting an organization still accepts a personal access token.
  • Recent sign-in. Changing your password or email, deleting your personal account, disabling MFA, regenerating your recovery code, generating or regenerating a personal access token, adding an organization member, changing a member's role, and changing or deleting a secret, including which projects an account secret is allowed in, also need a sign-in from the last two hours. Creating, listing and viewing secrets do not. When your sign-in is older, the platform UI asks you to sign in again before it opens the action: with your password, or, once you have enabled multi-factor authentication, with a code from your authenticator app instead. A personal access token adding a member, changing a role or writing a secret is not asked for one.
  • Organizations that require MFA refuse every operation on their behalf to a member without MFA, whatever the member's role, with an error naming the organization, until the member enables MFA again. A personal access token is judged by its account's MFA status as the platform last learned it; a workflow run token is not judged by it. See Require MFA for organization members.
  • Content-transfer endpoints (xorb and manifest registration, upload and download URLs, deduplication queries) are wire-protocol steps the CLI sequences on your behalf during push and pull, not operations you call yourself, and are not listed here. Uploading content during a push and downloading it during a pull both need billing active on the account; Create tag itself does not check billing, so re-tagging content the account already stores works without it.
  • Task-log reads (the short-lived read URLs a task's page in the UI and workflow run task logs use to fetch a task's log straight from storage) are likewise a client-side protocol step and are not listed here. Reading a task's log needs the Contributor role, with no email-verified or billing check.
  • Start run is also refused while the account is at its limit on runs in progress, for a workflow that uses a compute type the platform does not offer, and for one that needs more tasks running at once than the account may run; see Limits and quotas.
  • Billing active means the account billing status is Active. With any other status, operations marked Yes in that column return an error; see Billing statuses.
  • Billing is checked on the account the operation targets, never on the personal account of the caller. Working inside an organization, it is the organization's billing status that decides — your own personal payment method is irrelevant, and an organization without a payment method blocks its members even when each of them has one personally. The error names the account whose billing status blocks the operation.
  • Opening billing settings and connecting GitHub hand you from the platform UI to a hosted page, Stripe's or GitHub's, and are not listed here. Opening billing settings needs an Owner with a verified email, so an Admin blocked by an organization's billing status has to ask an Owner to restore it. See Restore an Active status. Connecting GitHub needs a verified email but no role; see Connect and manage GitHub integration.
  • Role checks apply to organization membership. Personal accounts where the user is the sole owner always satisfy the role check. Operations that exist only for organizations, such as members, teams and organization settings, refuse a personal account.
  • In an organization, a Contributor reaches only the projects associated with their teams; Admins and Owners reach every project. A team stays associated with a project when the project is renamed, so a Contributor keeps access to it under its new name.
  • Adding or removing an Owner, making a member an Owner, and changing an Owner's role need the Owner role; an Admin changes other members' roles only between Contributor and Admin. An Owner cannot demote themselves, and an organization's last Owner cannot be removed, demoted, or leave. An Owner of any organization cannot delete their personal account until they leave it or delete it, and deleting a personal account removes it from every organization it still belongs to.

Workflow run token​

secrets.WORKFLOW_TOKEN is a credential scoped to one run, which the platform adds to the run's secrets; see Secrets. A task authenticating with it reaches only its run's own project, and can:

  • Read the run's project: the project, its repositories and tags, its workflows, its runs and their tasks, and the read URLs for a task's logs.
  • Transfer content: swale push and swale pull. A push creates the repository if it does not exist yet and records a tag for what it uploaded, and swale tag <target> --new-tag <name> adds a further tag to content already there. The transfers reach the account's shared content store, which is account-wide by design.
  • Release content: swale tag delete <target> --yes deletes a tag, so a run can clean up after itself. A task has no terminal to confirm at, so it passes --yes.
  • Read the account's billing status, which push and pull check first.

Everything else is refused with 403. That includes every other write — deleting or restoring a repository, creating or deleting a workflow, starting, canceling or deleting a run, changing the project — and the secrets API in both directions: a task holding the token can neither list the project's secret names nor create, replace or delete a secret.

  • The token never reaches another project or another account. When a task needs to act on another project, or do anything this list does not cover, pass it a personal access token as a secret of your own.
  • It is not subject to the email-verified column, since a run only exists where a verified person started it, and an organization's MFA requirement does not apply to it.
  • It is accepted while the task holding it is under way, and for 10 minutes after that task ends.
  • The CLI inside a task reads it from SWALE_ACCOUNT_TOKEN, with the account's name in SWALE_ACCOUNT_NAME; Give the task the CLI's credentials shows how a workflow passes both.