Skip to main content

Project

Use this page to reference project workspaces, sandboxes, and continuous integration commands.

The Project manifest: the envelope (apiVersion, kind, metadata; see Manifests) plus spec.

Fields​

ProjectSpec (spec)​

FieldTypeDefaultMeaning
workspaceWorkspace or nullnullWhere agents work.
sandboxSandbox or nullnullThe container their commands run in, when they run any.
ciCI or nullnullHow the project is built and tested.
accessProjectAccess or nullnullThe roles per subject.

A project without a workspace serves only the flows that need none. A sandbox or a ci needs one. An access says who may do what in the project.

ProjectAccess (spec.access)​

FieldTypeDefaultMeaning
viewerlist[Subject or RoleGrant][]Who may see the project and its tickets.
operatorlist[Subject or RoleGrant][]Who may start, rerun, pause, cancel and resume tickets.
approverlist[Subject or RoleGrant][]Who may see the tickets and answer their questions.
administratorlist[Subject or RoleGrant][]Who may do everything in the project, its audit trail included.

A Subject is group:<name> or afeServiceAccount:<name>. Validation refuses an unknown role, a subject without one of the two prefixes and an empty name.

  • group:<name> is a group of the identity provider. The groups come from the token claim named by AFE_OIDC_GROUPS_CLAIM.
  • afeServiceAccount:<name> is a service account of afe, by name (see Service accounts). It is not a Kubernetes ServiceAccount.

A caller's roles in a project are the union of the roles its groups and its name reach. A project without access is reachable only by global administrators.

RoleGrant (spec.access)​

An entry of a role list may name the flows it covers:

access:
approver:
- group:payments-leads
- subject: group:support
flows: [refund, triage]

Its fields:

  • subject: who the grant is for.
  • flows: the flows it covers, at least one.

A restricted grant keeps the rights the role already gives, and only on those flows. It never adds a right. Two grants of one subject add up to the union of what each allows. A flow no Flow defines fails validation, with the path of the entry.

Role matrix​

The rights of each role, per project:

  • viewer: see the project's tickets, events, artifacts and BPMN.

  • operator: everything a viewer does. Start, rerun, pause, cancel and resume without an answer.

  • approver: everything a viewer does. Answer a question: a human node, the budget, the loop guard or a hand-over.

  • administrator: everything above. Read the project's audit trail.

  • The approver answers every question the engine raises, not only human nodes.

  • A global administrator (AFE_OIDC_ADMIN_GROUPS) and the local caller have every right in every project, and manage service accounts.

  • The Workers and Revision pages show every project at once, so only global administrators see them.

  • A ticket of a project the caller cannot see answers "not found", like an unknown ticket.

  • A ticket with no project is visible to global administrators only.

  • A caller who may see a ticket but lacks the right gets -32008, and the refusal is recorded.

  • Starting a ticket needs a project, except for the local caller on a flow that needs no workspace.

Workspace (spec.workspace)​

FieldTypeDefaultMeaning
typefolder or gitrequiredfolder for a path on this machine, git for a repository.
pathstr or nullnullfolder: the path agents work in.
urlstr or nullnullgit: the repository URL to clone.
defaultBranchstrmaingit: the branch a new worktree starts from.
forgenone or githubnoneWhich forge hosts the project's pull requests.
forgeUrlstr or nullnullThe forge's URL, for a self-hosted instance.
tokenEnvstr or nullnullThe environment variable holding the forge token.

Sandbox (spec.sandbox)​

FieldTypeDefaultMeaning
imagestrrequiredThe container image to start.
cpusfloat2.0How many CPUs the sandbox may use.
memorystr2gThe sandbox's memory limit, as Docker spells it.
timeoutint300Seconds one command may run before it is killed.
egresslist[str][]Hosts the sandbox may reach; empty means no network.
envlist[str][]Environment variable names the sandbox gets; Docker reads them from the worker, Kubernetes from envSecret. An engine credential, a model apiKeyEnv included, is refused by name and by value.

CI (spec.ci)​

FieldTypeDefaultMeaning
scriptstrrequiredThe command that builds and tests the project.
teststr or nullnullThe command behind the ws.test tool; defaults to script.

See also​