Quader Docs 0.176.0

Managing repositories

Create a repository in its project, set what every repository shares, order a virtual repository's members, and edit or delete one.

On this page

Where repositories are

Your work › Repositories lists the repositories of every project you can see, with filters for project, format, class and Disabled only; the admin area has no list of its own. A project's Repositories shows its own and offers New repository. The badge System marks the two repositories Quader keeps for its scanners (Upstream registries).

Classes, keys and addresses: Repositories. A remote's upstream, cache and mirror: Remote repositories.

Create a repository

Who
the project's Owner, and in every project holders of repositories:write-config (admin, repository-admin)
  1. In the project's Repositories, select New repository and pick the format's tile; Search by package type narrows them.
  2. Choose the Class: Local, Remote or Virtual. A class the format lacks is shown unavailable, with the reason.
  3. Keep or change the suggested Key. It is part of every address and never changes, and neither do the class and the format.
  4. A remote repository adds its Upstream, a virtual one its Members and Deployment target.
  5. Select Create repository, or Show as API request for the same request as JSON and curl.

Everything else waits, closed, in Advanced settings, each field showing its default as its value. A key is unique in its project and stays taken until a deleted repository is gone; batch-create, batch-update, batch-get, batch-delete and quick-setup are reserved.

Settings every repository has

Setting Default What it does
Description empty Shown to every reader, at most 2,000 characters
Administrator notes empty Shown only to the project's Owner and holders of repositories:read-config, at most 8,000 characters
Include patterns, Exclude patterns empty: everything What a local or virtual repository admits; an exclude wins. Up to 100 each; Pattern syntax explains *, **, ? and \
Hide existence from callers without access the installation's setting 404 instead of 403 to a refused read
Download links on Off keeps every download streamed by Quader (Download links)
Disable repository, in Advanced off Serves and accepts nothing, keeps its content; virtual repositories skip it

A pattern matches paths of generic files and package or image names elsewhere (@acme/*, team/*). A remote repository has none: its delivery rules decide.

Visibility

Visibility level (Private, Internal, Public) says who reads the packages besides the project's members and those a policy names (Permissions). A new repository starts at the lower of the installation's default and the project's level; a level above the project's is disabled, and raising one asks for a recent sign-in. A level the installation restricts to administrators is disabled for an Owner, who may keep it but not choose it again.

For npm, NuGet and Ansible Galaxy, Wiki visibility gives the README and documentation a lower level; it opens by itself whenever the two differ.

Format settings

Each format's own settings are on its page: npm, NuGet, OCI, Debian, Ansible. Generic has none.

Members of a virtual repository

A virtual repository asks its members, local and remote repositories of its project and format, in order; the first answer wins. Default deployment target names the local member that takes a publish; None makes it read-only. Explain a path shows what each member would do with a path.

A member may also be a registry of the project Upstream, written upstream/<key> (upstream/npmjs after your local npm repository). One an administrator has not switched on stays in the list as a placeholder and is skipped:

Badge What to do
Not switched on, Switched off Ask an administrator; the virtual repository needs no change
No longer offered Remove the member

A client asking for a name only the placeholder would serve gets 404 with that reason. Who reads through the member is the registry's own level (Upstream registries).

Protection against dependency confusion

When a virtual repository combines a local and a remote member, a public package could stand in for an internal one of the same name.

Defence What it does
Namespace claim of a local repository A claimed name resolves only from the claimant. Scope members acts in the virtual repositories that contain it, global in every virtual repository of the format and, by default, refuses the name at its remotes. By default the first publish of a name claims it
Shadowing check The first version of a name a remote member already serves is refused (403 shadows_remote_package) unless the name is claimed; a holder of manage may publish anyway
Pin rule of a virtual repository Package names come only from the listed members

A virtual repository with local and remote members, no pin rule, no claim and the first-publish claim switched off carries the warning dependency_confusion_unprotected.

Settings that are set through the API

Claims, pin rules, package ownership and these members of the repository document have no field. The closed section API shows the Stored document; change it with PATCH and If-Match (Management API).

Member What it sets
local.packageOwnership enforce (default where packages have names): after the first publish only its owners, holders of manage and administrators change a name
local.autoClaim Whether the first publish of a name claims it; on by default where packages have names
priorityMember of a local or remote repository Asked first in every virtual repository that lists it
virtual.mergedMetadataTtlSeconds How long merged package documents are kept
remote.connectTimeoutMs, readTimeoutMs Timeouts of upstream requests
remote.cacheFillAction The action, besides read, a caller needs to fill the cache from a request; with deploy only deployers fill it
remote.cache.maxStaleSeconds, availability.failureThreshold, circuitOpenSeconds Expired metadata served while the upstream fails; when it counts as down
remote.integrity, remote.limits, remote.sourceNetwork, remote.outboundProxy Checksum and content-type policy, size and concurrency bounds, the source address, the proxy

After a restore

A restore returns repositories to the restore point, then re-applies what narrowed them after it: include patterns narrowed, exclude patterns and pin rules added, members taken out, claims made, and stricter ownership, security, delivery and download-link settings. How a repository talks to its upstream is not re-applied (Known limitations). A repository that could otherwise serve more than before is disabled and listed as suspended. Check its patterns, members, pin rules and claims, correct them, and enable it again (Backup and restore).

Edit, disable or delete

Each section of the settings page has its own Save changes. If someone saved in between, Changed by someone else since you opened it offers Copy my changes, Reload (discard mine) and Overwrite.

Advanced, last, holds Disable repository, Move to another project (Projects) and Delete repository. Deleting asks for the key and a recent sign-in, and is final. A repository still a member or target of a virtual repository is refused; Delete in the list's row menu then offers Also remove it from the virtual repositories that include it. A local or remote repository's content goes in a background job; the key is free again when it ends.

File operations

The repository's page uploads generic files, NuGet packages and Ansible collections (Generic files); the other formats publish with their client. Only an administrator removes items outside the include patterns or in a disabled repository (DELETE …/items, Management API).