Endpoints and exposure
Open a further listener with its own hosts, certificates and credentials, and limit with exposure rules what an outside audience can read there.
On this page
What an endpoint is
Every installation has the default endpoint: the client listener on port 8080 with the UI, the management API, the package clients and
/files/. A further endpoint is another listener of the same api and packages processes, or of a pool of its own. A request belongs
to the endpoint whose port it arrived on; no header, host or path moves it elsewhere.
| Property | Decides | A further endpoint by default |
|---|---|---|
| Port, base URL | Its listener; the origin of the URLs it writes, such as npm tarball links | Required |
| Hosts | The exact hosts it answers, or one wildcard such as *.packages.example.com; any other answers 421 misdirected_request |
The base URL's host |
| Certificates | Its own pairs, chosen by SNI | The pair of the pods that serve it |
| Surface | The route families: ui, api, ci_exchange, packages, files; a path of another family answers 404 |
packages (ui is refused) |
| Accepted credentials | Token types, tokens bound to it, anonymous reads | Service-account tokens bound to it |
| Exposure | rules: only what its rules expose; all: no ceiling |
rules |
| Cache fill | Whether a request may make a remote repository contact its upstream | Off |
| Rate limit, replica header, concurrency | A class of server.endpoint_rate_limits, X-Quader-Replica, requests in flight |
external, never, 1,024 |
The default endpoint serves every family, accepts pat, sat and cit tokens unbound and anonymous reads, exposes all and fills
caches; endpoints.default tunes it. Once a further endpoint exists, the chart makes the default endpoint answer only the hosts of
config.server.base_url and additional_base_urls; add other names it is reached by, such as the in-cluster Service, to
endpoints.default.hosts.
Configure endpoints with the Helm chart
Endpoints are configuration, never created on a screen: up to 16, named ^[a-z][a-z0-9-]{0,19}$.
endpoints:
customers: # example: the endpoint name
port: 8443 # example; required
baseUrl: https://packages.example.com # example; required
surface: [packages] # default
auth:
tokenTypes: [sat] # default: pat | sat | cit
boundTokensOnly: true # default
anonymous: false # default
exposure: rules # default: rules | all
cacheFill: false # default
tls:
existingSecret: quader-packages-tls # example; default: the pair of the pods that serve it
pool:
enabled: true # example; default false: served by the main pods
ingress:
enabled: true # example; default false
className: haproxy # example
tls:
- secretName: packages-edge-tls # example
hosts: [packages.example.com] # example
networkPolicy:
from: [] # default: from anywhere
The chart renders the Service and NetworkPolicy <fullname>-ep-<name>, an Ingress with ingress.enabled, and with pool.enabled the
Deployments <fullname>-packages-ep-<name> and <fullname>-api-ep-<name>. A pool keeps external load off the internal pods, but holds
the same database, Valkey and object-store credentials. hostRoots binds a host to one repository, <projectKey>/<repoKey>: for an OCI
repository that host's /v2/ is then a Docker Engine mirror
(Container images). Every value:
Helm values, group Endpoints.
Client certificates for ClamAV installations
The ClamAV installations of your company can fetch signatures from Quader with a client certificate instead of a token, while ClamAV definition updates is on at Internal or Public (Upstream registries). Quader checks the certificate itself, so TLS must end at Quader: an Ingress with passthrough, or a Service of its own.
endpoints:
clamav:
port: 8444 # example
baseUrl: https://clamav.quader.example.com # example
exposure: all # example; with rules, one that names upstream/clamav
auth:
clientCertificates: true # default false
tls:
existingSecret: quader-clamav-tls # example: the pair the clients see
clientCaSecret: company-device-ca # example: ca.crt, the CAs whose certificates are admitted
ingress:
enabled: true
tlsPassthrough: true # default false
- Passthrough works with HAProxy Ingress and with ingress-nginx run with
--enable-ssl-passthrough; Traefik is refused. Without an Ingress,service.type: LoadBalancergives the endpoint an address of its own. - Every valid certificate of a CA in
clientCaSecretis admitted until it expires: name only a CA that issues to the ClamAV hosts. - A certificate reads
upstream/clamavand nothing else, and writes nothing. Its subject is the caller in the request log and the usage store.
Accepted credentials
A UI session counts only where the surface holds ui. An endpoint refuses a token of a type outside tokenTypes, a token bound to
other endpoints, an unbound token under boundTokensOnly, and no credential without anonymous. The refusal is the 401 of an unknown
token, audited as token.rejected with endpoint_not_accepted. Anonymous callers read only Public content; while the
default endpoint refuses anonymous reads, nothing can be set Public (Permissions).
Bind a token to an endpoint
A token's scope lists endpoint names; empty is unbound. The token screens do not offer the binding: create the token through the
management API with "scope": {"endpoints": ["customers"]} or with quader admin token create --scope-file
(Tokens). A leaked customer token is then useless on the default endpoint.
Exposure rules
On an endpoint in mode rules the rules are a ceiling on what anyone may read there; they never grant. A caller still needs read
permission.
- Everyone is bound, administrators and the break-glass account included.
- Hidden is missing: unexposed content answers
404, decided before the repository is looked up, audited asdeny.exposure. - Read-only: every write answers
403 endpoint_read_only. - Rules add up: a rule names one repository; content is exposed when any enabled rule admits it. An exclude beats an include; a rule without patterns exposes the whole repository. At most 1,000 rules per endpoint.
- Formats: generic repositories by paths; npm by names, versions, a range, pre-releases and dist-tags; NuGet by IDs, versions, a range and pre-releases. OCI and Debian repositories take no rule and serve nothing on such an endpoint.
A change reaches every replica within about 2 seconds, also without Valkey; a replica that cannot confirm its rules are current answers
503 authz_stale. Rules belong to the endpoint's name: a new endpoint under a removed one's name inherits its rules at once.
The Endpoints screen
- Who
endpoints:read(admin, security-admin, auditor, repository-admin) reads;endpoints:write(admin, security-admin) changes rules- Where
- Admin area › Endpoints
Changing a rule needs a recent sign-in.
An endpoint's page shows its Helm configuration and its rules; a row's copy button copies the repository's client address on this endpoint. A name no longer configured but holding rules is marked Not configured.
- Select New rule, or a rule's Edit.
- Choose the Repository, enter a Name, and fill in the patterns the repository's format offers.
- Watch the Preview: it judges a package and its stored versions, or the paths you enter, against the form and the endpoint's other rules, and names the deciding rule.
- Select Create rule, or Review and save, which shows the difference to the stored rule first.
Patterns: * any characters but /, ** any including /, ? one character. Versions are compared in their canonical form; a range
takes the format's syntax (>=2.0.0 for npm, [2.0,4.0) for NuGet).
npm through a customer endpoint
- A package document lists only exposed versions; a tag on a hidden version disappears, and
latestmoves to the highest exposed release. - Every URL uses the endpoint's host. A hidden version or tarball answers
404. - Publishing answers
403 endpoint_read_only;npm auditanswers501. - Without cache fill a remote serves only what its cache holds, otherwise
403 populate_not_permitted: fill it through the default endpoint. - No
Quader-Resolved-FromorCache-Statusheader reveals members or cache state; package times stay real.
NuGet through a customer endpoint
- Version lists, registrations and search list only exposed versions; counts and pages follow the filtered list.
- A hidden version answers
404, which the client reports asNU1102. Dependencies are not filtered: check a dependency's ID in the Preview first. - The service index lists no publish resource; a push sent directly answers
403 endpoint_read_only. - Pre-releases stay hidden unless a rule exposes them, whatever the client asks.
Warning
A request that reaches port 8080 has the default endpoint's rules, which expose everything the caller may read. Route each external host
only to its endpoint's Service and restrict port 8080 with networkPolicy.ingress.http.from.