Quader Docs 0.176.0

Projects

Give a team a project of its own: its members and their roles, its repositories, policies, service accounts and CI mappings.

On this page

What a project is

Part Rule
Key 2 to 32 lower-case letters, digits and hyphens, starting with a letter; fixed once created
Display name, Description 1 to 128 characters; at most 1,024
Repositories Every repository belongs to exactly one project; its key is unique within the project only
Visibility Private, Internal or Public, set by an administrator (Visibility levels)
Storage The logical size of its files, each counted in full even where the store keeps the content once; shown, never enforced

The project is part of every address of a repository:

Address Example
Package protocol https://quader.example.com/api/npm/web/npm-internal/
Raw files https://quader.example.com/files/web/generic-local/docs/guide.pdf
Management API https://quader.example.com/api/v1/projects/web/repositories/npm-internal

Outside its project a repository is named <projectKey>/<repoKey>, such as web/npm-internal: in a global policy, a token scope, an exposure rule and the configuration. Inside it the key alone names it. No repository is shared between projects; a public registry is proxied by a remote repository in each project that needs it, and the store keeps its content once.

Members and roles

Who
Owners of the project and administrators change members; every member reads the list

Users and groups are members, each with one role. Each role holds what the role above it holds:

Role On every repository of the project In the project
Reader read Reads the project, its members and repositories
Developer also annotate, deploy As Reader
Maintainer Every action, also overwrite, delete and manage As Reader
Owner Every action Administers the project (below)

On a virtual repository a role gives read and manage; a publish through it is decided on its deployment target.

  • A user's role is the highest of its own membership and its groups'. To a non-member the project answers 404, like one that does not exist, unless a visibility level or a policy admits it; a member whose role is too low gets 403.
  • A role acts through the member's browser session and personal tokens. An Owner administers only through a session or a token with the administrator scope; through any other token it acts as a Maintainer.
  • A service account, a CI mapping, anonymous, authenticated and a group every user joins are never members (principal_not_allowed).
  • A project keeps one Owner at least (409 last_owner); only an administrator may remove the last one.

To add a member, an Owner selects Add member, types part of a name, chooses the person or group from the matches and its role. A person who never signed in cannot be found yet. A role changes in the member's row; Remove ends a membership. Each change needs a recent sign-in.

What an Owner may do

Who
Owners of the project, without any system role
Area In this project and nowhere else
Members Add, change and remove users and groups
Repositories Create, change and delete repositories of every class; test a remote's upstream; move one to another project it owns
Permission policies Grant any action to users, groups, the project's service accounts and CI mappings
Service accounts Create and manage them and their technical tokens (Tokens)
CI mappings Manage the project's mappings, test them, read their issuances (GitLab CI federation)
Settings Change the display name and description; Visibility is shown read-only

An Owner creates no project, binds no system role and sees no global policy. The system roles act in every project as elsewhere: admin and repository-admin change every project's repositories; security-admin and auditor read every project.

Remote repositories of an Owner

An Owner without repositories:write-config sets up remote repositories, but sends no secret of the installation to a host it chose:

Refused When
secret_value_required A reference to a file or variable of the installation, or a stored password kept while the URL or a credential host changes
outbound_path_restricted Another outbound path than the installation's proxy
mirror_restricted A change of the mirror settings; pausing, resuming and back to pull-through stay allowed
vulnerability_weakening_refused Scanning made less strict; stricter is allowed

Move a repository to another project

In the repository's settings, Advanced › Move to another project: choose the Target project and select Move repository.

  • An Owner moves only between projects it owns; an administrator or a holder of repositories:write-config moves anywhere. It needs a recent sign-in.
  • Every address changes. …/api/npm/web/npm-libs/ answers 404 and …/api/npm/mobile/npm-libs/ serves the same packages: update every client. Content, owners, findings, mirror state and the repository's service accounts go along.
  • The source project's roles and policies stop reaching it. A global policy that names it follows; a pattern such as web/* does not.
  • While something of the source project names it (a virtual repository, a policy, a CI mapping's inline grant), the move answers 409 repository_in_use with the list in references. Remove them first; nothing is rewritten for you.

Policies and service accounts of a project

A project's policy covers its own repositories only and names them by bare key, key pattern or class (Resources). It may name users, groups, CI mappings, service accounts of no project and the project's own.

Service account Reference Granted by
Of the project sa:web/partner The project's policies only
Of one repository sa:web/npm-internal/release The rights chosen on that repository, nothing else; it moves and is deleted with the repository

Neither joins a group, becomes a member or holds a system role. Like every signed-in caller they read what is Internal: give their tokens a scope that names their repositories. A repository's accounts are on its settings, section Service accounts.

Create and delete a project

Who
administrators (projects:write)

New project on Projects asks for the key, display name, description, visibility and First Owners. Without an Owner, an administrator adds one as a member.

Settings › Visibility changes the level. Lowering it lowers the repositories above the new level after a confirmation; raising lowers nothing. Public is disabled while the installation admits no request without a credential.

Delete project on Settings works only when no repository, service account or CI mapping is left (409 project_not_empty); the project's policies go with it.

The Projects list

Projects under Your work lists your projects first, with your role, then the others your level admits. Holders of projects:read see every project and Show Owners and storage, which adds Owners and Storage. The admin area has no list of projects.

The project's side bar holds Repositories, Packages, Vulnerabilities, Access (Members, Permission policies, Service accounts, Usage, CI identity) and Settings, each as your role allows; a Reader sees neither Members nor Settings.

The management API is in the reference (projects); every code with its meaning in Error codes.

Limits

  • The four roles are fixed; there are no custom roles and no repository sharing.
  • A project's storage has no quota.
  • The lookup behind Add member finds names by their start, so an Owner can list names by prefix; it shows no e-mail address.