Registry repository settings
Describe a repository, make it publicly pullable, guard tags against deletes and overwrites, and limit registry storage.
Goal: one repository on the A-Line.cloud registry with a README, the visibility you want and guarded release tags.
Open Registry and expand the repository.
Click Settings (org owners and admins). Members and viewers see the description, the README and which tags are guarded.
Description and README
The description is one line of up to 300 characters. The README is markdown
of up to 64 KiB: headings, lists, code, bold, italic and http(s) links. HTML
in it is shown as text, never rendered.
Visibility
Repositories are private by default: only your organization's credentials can pull them. Public read lets anyone pull that one repository, without signing in:
docker pull registry.a-line.cloud/<org>/<environment>/<project>/<app>:<tag>Public read never covers pushes, deletes, your other repositories or the registry catalog. Making a repository public asks for two-factor confirmation.
Protected and immutable tags
Both take tag globs, one per line, such as latest or v* (* matches any
characters).
- Protected tags can be deleted only by org admins, with two-factor confirmation.
- Immutable tags cannot be deleted by anyone through A-Line.cloud.
What is enforced and how:
- Deletes of guarded tags work only in the console and the API. Registry
clients (
docker,crane,oras) get no delete rights on a repository with guarded tags, for any tag. Deleting the whole repository is refused while it has an immutable tag, and needs an admin while it has a protected one. - Overwrites cannot be refused up front: registry credentials are per repository and a push to an existing tag is an ordinary push. When a push moves a guarded tag, A-Line.cloud puts the previous image back within seconds and logs Reverted a push to a protected tag in Activity. Until then, pulls of that tag get the pushed image. The pushed image does not trigger deploys on push. If putting it back fails, Activity says so. To move a protected tag on purpose, delete it in the console, then push.
- Retention never removes guarded tags, neither repository retention nor build retention. Retention itself is set per repository in the Usage tab.
Removing a glob asks for two-factor confirmation.
Pull statistics
Each tag shows its pulls in the last 30 days, and its image details show when
it was last pulled. A pull is a manifest download (GET), such as a
docker pull or a node fetching an image it does not have yet. HEAD
checks and layer downloads are not counted, and neither are the platform's
own reads. A node that already has the image cached only checks it with a
HEAD (even with imagePullPolicy: Always), so starting a pod there does not
count. Counts are per image digest, so tags
pointing at the same image share them. They are sampled hourly, so new pulls
show up within about an hour. A tag without numbers has not been sampled yet.
Retention can keep tags pulled in the last N days. This only ever keeps tags: a tag the other rules would delete stays while its image was pulled recently. When pull statistics are missing or more than a day old, tags are kept, never deleted. A digest that was never pulled counts as pulled when the statistics first saw it, so a new image gets the full N days. Right before deleting, retention reads the statistics again and keeps the tag if it was pulled since the last sample, or if they cannot be read.
Because cached pulls are not counted, retention also treats a repository as pulled when a registry token with pull access to it was issued in the last N days (see Token use): a node checking a cached image still asks for a token first. This works per repository, not per tag, so while anything pulls from a repository, the rule keeps all of its tags.
Token use
Every registry token the platform issues is recorded in Activity as Used a registry token, once per repository. Each entry has the actions granted (pull, push, delete), who asked (your user for a personal token, or the token's name for robot, deploy, build and CI tokens) and the client address. Pulls of a public repository by anonymous callers or other organizations show as An outside caller, with only the /24 (IPv4) or /48 (IPv6) network and no token details. Repeats from the same token, repository and client are grouped per hour, with a count, so cluster pulls don't flood the log. A token request may name at most 32 repositories. The token itself is never stored.
Token use and activity under a repository's tags opens Activity filtered
to that repository (?repository=<org>/<name>).
Storage limits
Storage limits are optional. Set them under Registry > Usage > Storage limits (org owners and admins); everyone in the organization sees them with a meter of how much is used.
- One per scope: one limit for the whole organization and one per
environment. An environment limit covers
<org>/<environment>/...; images outside an environment path (unassigned) count only against the organization limit. - Bounds: from 1 GiB to 1 PiB.
- Alerts: org owners and admins get a notice and an email (the billing alert email, following its email preference) when usage crosses 80 % and again at 100 %, once per crossing. Both re-arm when usage drops below 75 %; changing a limit re-arms them too.
- Refuse pushes while the limit is reached (off by default): while usage
is at or over the limit, registry tokens for that scope are issued without
push.
docker pushfails with a message naming the limit, for examplePush refused: the registry storage quota of environment production is reached (12.0 GiB of 10.0 GiB). Builds that push into that scope fail the same way. Pulls and deletes keep working so you can clean up.
Usage is the organization's billed total (a layer shared by several images counts once) for the organization limit, and the sum of its repositories for an environment limit (a layer shared by two repositories counts in both). Usage is measured shortly after each push and fully every six hours. Until a registry is first measured, limits never refuse a push; a metering outage uses the last measurement.
GET and PUT /api/internal/registry/quotas (body environment_id,
limit_bytes, block_pushes) and DELETE /api/internal/registry/quotas/{id}.
API
GET and PUT /api/internal/registry/repositories/{name}/settings, where
name is relative to your organization (<environment>/<project>/<app>).
Registries are not part of IaC.