Quader Docs 0.176.0

Upstream registries

Switch on the public registries Quader offers every project, choose who reads each, and give one an address or an account of your own.

On this page

The project Upstream

The built-in project Upstream (upstream) holds one remote repository per public registry Quader knows. Quader creates and maintains them; teams list them in their virtual repositories instead of configuring the same registry each (Members of a virtual repository). Nobody creates, moves or deletes a repository in it, and it has no members, policies or service accounts.

Format Registries
npm npm public registry (upstream/npmjs)
NuGet nuget.org (upstream/nuget-org)
OCI Docker Hub (upstream/docker-hub), Quay (upstream/quay), GitHub (ghcr.io) (upstream/ghcr), GitLab (upstream/gitlab)
Debian Debian, Debian security updates, Ubuntu, Ubuntu security updates, Ubuntu ports (upstream/debian, -security, ubuntu, …), each with its archive keys
Ansible Galaxy Ansible Galaxy (upstream/galaxy)

Each is addressed like any repository: docker pull quader.example.com/upstream/docker-hub/library/nginx:1.27. A release adds a new registry switched off, moves a changed address unless you set your own, and keeps a registry it drops as No longer offered, its cached content removed.

Switch on and off

Who
holders of repositories:write-config (admin, repository-admin) change them; security-admin and auditor read the page
Where
Admin area › Upstream registries

Every registry starts switched off and Internal: nothing reaches a public registry until you switch it on.

Warning

One switch opens a registry to everyone signed in who is not external, their pipelines and service accounts included, in every project. If fewer should read it, lower its level first.

  • The row's switch saves at once. Switching off a registry that virtual repositories list says how many, in how many projects; they keep it as a member and skip it while it is off.
  • Switch all on switches on every registry that is off, each at Internal, a Private one too; it never makes one public.
  • A switched-off registry answers 404 repository_disabled. One that was on before carries the badge Switched off; one never switched on reads Off.

Who reads a registry

Level Reads it, directly and through every virtual repository that lists it
Private Administrators and whom a global policy names (upstream/npmjs, upstream/*)
Internal (default) Everyone signed in, service accounts and CI jobs included, except external users
Public Anyone, without signing in, on your bandwidth and the registry's allowance

A team's own permissions do not reach a registry. Choosing Public, in a row or with Set visibility of all, asks first; raising a level asks for a recent sign-in. Where the installation restricts Internal, a new registry starts Private.

Address and account

Details opens the registry's page:

  • Address: the upstream URL, the further hosts and a Debian archive's keys. Your own address is marked Differs from Quader's, with Reset to Quader's address; a release keeps it.
  • Account: authentication, username and a password or token never shown again. Every project's pulls count against that account, and whoever reads the registry pulls with it. Test connection tests the saved or the typed settings.
  • An account goes only to the hosts it was entered for. Saving an address on other hosts asks you to enter the account again or remove it; a release that moves the registry removes it, and the row says so.

The registry's settings page keeps only Offline and the administrator's notes editable; the rest reads "Managed in Admin area › Upstream registries." Download limits apply as to every repository (Download limits).

An account from the Helm values

An installation run with Helm can give a registry its account from an existing Kubernetes Secret, so the value never enters the values or the database. Only the registries of this page take an account this way.

yaml
secrets:
  upstreamAccounts:
    docker-hub:            # example: the key the registry's page shows
      existingSecret: quader-upstream-docker-hub  # example
      authMode: basic      # default; bearer sends a token alone (npm)
      usernameKey: username  # default
      passwordKey: password  # default

For Docker Hub use a personal access token with Public Repo Read-only; ghcr.io a classic token with read:packages; GitLab read_registry; Quay a robot account. The upgrade applies it and removes an account stored on the page. The page shows the source Helm configuration read-only. A missing Secret starts every pod, and that registry answers 502 upstream_secret_unavailable until it exists. To rotate, update the Secret and wait three minutes before you revoke the old token. Without Helm: repositories.upstream_accounts.

The image scanning's database

scanner-trivy, under System repositories, is the repository through which the image scanning reads its database, the image aquasec/trivy-db. It has no switch, is always Private, and answers no client. Its address and account can be changed like any registry's (Advisory sources).

ClamAV's definitions

clamav holds the signature databases of the malware scan (main, daily, bytecode), written only by Quader (Malware scanning). The repository's own page lists each database's version in use and its age; a daily older than 7 days is Outdated.

ClamAV definition updates, off by default, lets it serve the company's ClamAV installations at https://<your installation>/api/clamav/upstream/clamav: Public unless you choose lower, Internal with a warning where the installation allows no Public level. Switched on, the section shows the address, the PrivateMirror line for freshclam.conf, with a token or a client certificate, and a curl script for an installation without freshclam (Client certificates). Updater lists the pods of malware-updater-freshclam with the definitions each holds.

Where the system repositories show

While they answer no client (scanner-trivy always, clamav while its updates are off), both answer 404 to everyone, administrators included. Lists and the search show them with the badge System and without Set up client, an address, Pull or Download, and nothing offers them where you pick a repository to work with.

Registries of this installation

Your organization's own registries (a company Harbor, a GitLab registry of your own) go into Registries of this installation. The form of a new remote repository offers each as a button in every project, after the well-known ones.

  • Add registry takes the format, the button's name, the upstream URL and the further hosts. Tick Receives the credential for the registry's token service.
  • A preset holds no credential: each project enters its own. At most 10 per format; a well-known registry's address is refused.
  • A repository made from a preset keeps its address when the preset changes.