Ana içeriğe geç
Bu sayfa henüz Türkçeye çevrilmedi; İngilizce sürümü gösteriliyor.
Versiyon: 2.0

Projects

A project is a part of the installation that a team works in. Each project has its own jobs, workflows, executions and logs, failures, calendars, secrets, AI connections, connectors, notification channels, budgets, reports, activity log and API keys. Someone working in one project sees nothing of another, and a key created in a project works there only.

Every installation has the Default project. All data from before projects existed is in it, and a single-team installation never needs another one.

Projects separate teams inside one organisation that share an operator. They are not meant for customers who must not trust each other: run a separate installation for those.

Turning Projects On​

Projects are off until a super admin turns them on in Settings → Projects. While they are off, every request runs in the Default project and permissions work exactly as they did before projects.

The configuration key MilvaionConfig:Projects:Enabled wins over the switch when it is set:

MilvaionConfig:Projects:EnabledSwitch in SettingsProjects
not setoff (default)off
not setonon
trueignored, shown read-onlyon
falseignored, shown read-onlyoff

The switch is stored in the database and every API instance picks up a change at once. An installation that set the key to true on 1.6 keeps it that way: the key still wins.

Turning projects off again keeps the data of the other projects. Nobody sees it until projects are on again, and their schedules keep running. To end a project for good, archive or delete it instead.

Other settings in the same section of the configuration:

SettingDefaultDescription
Projects:RequireExplicitProjectfalseWhen true, a request signed in as a user must name its project. When false, a request without one runs in the Default project.
Projects:CacheSeconds30How long each API instance caches projects and memberships. A membership change made on another instance takes effect within this time.

Working in a Project​

The project switcher at the top of the sidebar shows the current project. It appears once projects are on and you can work in more than one. Choose another project and the page you are on loads that project's data; live updates on the page follow too.

Behind the scenes the dashboard names the project in the X-Milvaion-Project header of every request. Other clients do the same:

ClientHow it chooses the project
DashboardThe project switcher.
An API keyThe key's own project. A header that names another project is refused with 403.
A user's token (scripts, the CLI, MCP with a sign-in token)The X-Milvaion-Project header with the project's slug. Without it, the Default project.
SignalR?project=<slug> on the hub URL.
MCPLike the API: the key's project, or the header. list_projects and get_current_project tell an assistant where it is.

A request for a project you are not a member of is refused with 403, and a project that does not exist with 404.

Members and Roles​

There are two kinds of roles, chosen when the role is created in Settings → Roles:

ScopeHoldsGiven
InstanceAny permissionTo users directly, in Settings → Users. Its project permissions apply in the Default project.
ProjectProject permissions only (jobs, workflows, secrets, keys and so on)To the members of a project, in Settings → Projects → Members. It applies in that project only.

Milvaion creates three project roles the first time it starts with projects support. You can change or delete them; a deleted one is not created again.

RolePermissions
Project OwnerEvery project permission, members and API keys included.
Project EditorEverything except members, API keys, the worker gateway, notification channels and AI budgets.
Project ViewerLists and details only.

What a user may do in a project:

  • Super admins may work in every project, without a membership.
  • In the Default project, a user has the permissions of their roles, as before projects, plus those of a Default membership if they have one.
  • In any other project, a user needs a membership. They have the instance permissions of their roles (user management, for example) and the project permissions of the membership's role. The project permissions of their own roles do not apply there.

Instance-wide things (users, roles, single sign-on, branding, system administration) are not split by project.

Who Manages Members​

PermissionScopeAllows
ProjectManagement.ListInstanceSeeing every project, with its members and what it holds.
ProjectManagement.CreateInstanceCreating projects. Someone who is not a super admin becomes the new project's owner.
ProjectManagement.UpdateInstanceChanging any project, and its members.
ProjectManagement.ArchiveInstanceArchiving and restoring.
ProjectManagement.DeleteInstanceDeleting.
ProjectManagement.MoveInstanceMoving jobs and workflows between projects.
ProjectMemberManagement.ListProjectSeeing the members of the project you work in.
ProjectMemberManagement.UpdateProjectAdding, changing and removing members of the project you work in.

A project owner sees the Projects section with the members of their own project. Nobody can give a role whose permissions they do not hold themselves in that project, or take away such a role from someone else.

Members From Single Sign-On​

The role mappings of an identity provider can also grant project memberships: a provider role or group gives a project role in a project, or in every project (*). Set them in Settings → Single sign-on, in the provider's role mappings.

  • These memberships are replaced at every sign-in, like the roles a provider grants. Leaving the group removes the membership.
  • They are shown read-only among the members, marked OIDC or LDAP. A membership added in the panel wins over a mapped one in the same project.
  • A mapping to a project or role that does not exist grants nothing. Projects are never created from groups.
  • A group that is mapped (to roles or to projects) is not mirrored as a role of its own.

For providers in the configuration files, use ProjectMappings next to RoleMappings:

"Oidc": {
"RoleMappings": { "milvaion-admins": "Operators" },
"ProjectMappings": {
"retail-devs": "retail:Project Editor",
"sre": "*:Project Viewer"
}
}

Creating and Changing Projects​

Settings → Projects → New project asks for a name, a slug and, optionally, a description and a color for the badge.

  • The slug is 2 to 40 lowercase letters, digits and dashes. Clients use it in the header, so it never changes. all and a few other words are reserved.
  • Names and slugs are unique.

Archiving​

An archived project is read-only: its data can be read, but nothing can be created or changed in it, its jobs and workflows do not start, and its webhooks are refused. Work that is already running finishes. When the project is restored, each job's missed run policy decides what happens to the runs it missed. The Default project cannot be archived.

Deleting​

  • An empty project is deleted at once.
  • A project that holds data must be archived first. The delete dialog shows what it holds, and the project's slug must be typed to confirm. Everything in it is deleted with it: jobs and their executions, logs and failures, workflows and their runs, secrets, connections, keys and the rest. Activity log entries stay, without a project.
  • The Default project cannot be deleted.

There is no undo. Move what you want to keep first.

Moving Jobs and Workflows​

Settings → Projects → Move jobs moves jobs and workflows to another project with their history. Choose the source, the target and what to move, then Check. The plan shows what moves and why, what the moved resources need in the target, and anything that stops the move. Move carries it out in one transaction; nothing changes until then.

What moves:

  • A job moves with its executions, logs and failures.
  • A workflow moves with its runs, step runs, triggers, budgets and AI usage. The jobs its steps run and the workflows it runs (SubWorkflow, ForEach, Agent tools) move with it, recursively, in its published definition and its draft.
  • An execution that belongs to a workflow run follows the run. Past step executions of a moved job inside runs that stay behind stay with those runs.

What stops a move:

  • A job or workflow that moves is used by a workflow that stays. Move that workflow too, or change it first.
  • The moved resources use a secret ({{secret:name}}), AI connection, connector connection, imported connector or calendar that the target does not have. Create one of the same name in the target, or tick Copy to copy it there; the source keeps its own. Secrets are encrypted again for the target.
  • An Approval step names a notification channel the target does not have, and which is not global. Channels are not copied.
  • A moved job has a queued or running execution, or a moved workflow an active run.
  • The source or the target is archived.

When the target already has a resource of the same name, the moved jobs and workflows use the target's from then on. The plan says so.

Moving needs ProjectManagement.Move. It is a separate operation on purpose: everywhere else, a row can never change its project.

Workers​

  • Workers on RabbitMQ or Kafka receive the jobs routed to them whatever project the job is in. A moved job keeps reaching the same worker.
  • A worker that connects through the worker gateway receives the jobs of its API key's project only. To serve another project, run a worker with a key created in that project (with WorkerGateway.Connect). A worker id belongs to the project that registered it first, so give that worker its own id, or revoke the first project's keys.
  • The Workers page lists the workers of the Default project. Workers do not declare a project yet.

API​

All under /api/v1/projects:

RequestPermission
GET minesigned inThe projects you can work in, with your permissions in each, and whether projects are on.
GETProjectManagement.ListEvery project, with members and what it holds.
GET project?id=ProjectManagement.ListOne project; executions and runs are counted too.
POST projectProjectManagement.Create{ name, slug, description, color }
PUT projectProjectManagement.Update{ id, name, description, color }
PUT project/archive, PUT project/restoreProjectManagement.Archive{ id }
DELETE project?id=&confirmSlug=ProjectManagement.Delete
GET project/members?projectId=ProjectManagement.List, or ProjectMemberManagement.List in that project
PUT project/membersProjectManagement.Update, or ProjectMemberManagement.Update in that project{ projectId, userId, roleId }
DELETE project/members?projectId=&userId=as above
GET rolesas aboveThe project roles that can be given.
POST move/plan, POST moveProjectManagement.Move{ sourceProjectId, targetProjectId, jobIds, workflowIds, copyMissingDependencies }
PUT featuresuper admin{ enabled }; refused while the configuration key is set.

Creating, changing, archiving, restoring and deleting projects, member changes, moves and the switch are recorded in the activity log.