Quader Docs 0.176.0

Set up a client

Connect a package client to a repository through its page Set up client, with a token the client reads from an environment variable.

On this page

One address for a client

Give a client one virtual repository: it serves your own packages and the public ones through one address and one token.

A client through local, remote and virtual repositoriesThe client knows one address, a virtual repository. The virtual repository asks its members in their order; a remote member fetches from its upstream registry and keeps what it fetched. A publish goes to the virtual repository's deployment target, a local member.install, publishinstall, publishinstallfetches and cachesClientVirtualrepositoryLocalrepositoryRemoterepositoryUpstreamregistry
Class Holds Takes a publish
Local what your teams publish yes
Remote a cache of an upstream registry, such as npmjs.com or Docker Hub no
Virtual only what it generates, such as a merged index; asks its members in their order yes, passed to its deployment target

Repositories explains the classes; each format's page says what its client sees of them.

Open Set up client

From Opens
Set up client on a repository's page, or in its row of a list That repository's page
Set up client in the Install or Pull panel of a version The repository and the client chosen in the panel
Guides in the side bar A tile per format: its repositories, and a guide per class for when you have none yet

The page belongs to one repository and changes nothing on the server, except Create a token. From top to bottom:

  1. Client, where the format has several, and Install from where a Bastion distributes the repository.
  2. Token: the snippets read it from QUADER_TOKEN (below).
  3. The steps 1 Configure, 2 Install, 3 Publish where you may publish, and Verify while the installation signs its receipts (Signatures).
  4. Guide: closed sections with the exact text for your class and client, ending in a troubleshooting table of the protocol's error codes.

What you replace with your own value is tinted and underlined; the copy button copies a snippet without prompts or line numbers.

Addresses

Every address holds the project key and the repository key, so two projects can each have a repository npm.

Format Address of a repository (example)
npm https://quader.example.com/api/npm/web/npm/
NuGet https://quader.example.com/api/nuget/web/nuget/v3/index.json
Container images (OCI) quader.example.com/web/docker, the start of an image reference
Debian (APT) https://quader.example.com/api/deb/web/deb/, with the suite beside it
Ansible https://quader.example.com/api/ansible/web/ansible/
Generic files https://quader.example.com/files/web/assets/

A repository moved to another project gets a new address; the old one answers 404.

The token

Create a token makes a personal token that may read this repository and, if you tick It may also publish, publish to it. It lives as long as ui.client_setup.token_ttl says, and you revoke it under your personal tokens. The page shows it once; put it into the variable without your shell recording it:

shell
read -rs QUADER_TOKEN && export QUADER_TOKEN

In CI, store it as a masked variable named QUADER_TOKEN; in GitLab CI a job can exchange its own token instead (GitLab CI pipelines). The snippets keep reading the variable, so a configuration file holds no secret and can be committed. An administrator can rename the variable (ui.client_setup.token_env_var); the page always shows the name in use.

More options writes a pasted token into the snippets instead. The browser checks its prefix, length and checksum and never sends it to the server.

Through a virtual repository a token reads what you may read of its members, and nothing more.

Install through a Bastion

Who
whoever may read a repository its project distributes through a Bastion

A Bastion is a read-only cache of this installation at an address of its own, for clients outside your network (What a Bastion is). The same token, project and repository keys work there; only the host differs.

Install from on Set up client, and From in every Install and Pull panel, switch the snippets to a Bastion's address; the page's address keeps the choice, so you can send the link. A Bastion takes no publish, so the page shows no Publish step and no guide for it.

Without a token, a Bastion serves only what a remote repository already holds; sign in to have it fetch a new version. The codes a Bastion answers are in Error codes.