aggrega registry
จัดการ
รูป
aggrega registryคำ
Manage the OCI registries Aggrega publishes to and resolves from, together withthe signature trust policy for each.
A registry entry records where to reach the registry and what to require of thesignatures on artifacts it serves — which identities are trusted, and whether asignature is required at all. That policy is what "aggrega pull" enforces whenit verifies an artifact and what "aggrega push" honours when it decides whetherto sign.
"aggrega registry add" can fetch a registry's own advertised trust policy ratherthan having you write it out. "aggrega registry update" builds the localsearchable index that "aggrega search" and "aggrega plugin add" read.
A registry entry is written to the global config shared across every workspaceon this machine, because a registry and the identities you trust on it areusually the same wherever you work. That makes adding or removing one amachine-wide change: every project on this machine resolves through the entryyou just wrote or dropped. Pass --workspace to write it to this project's configfile instead. Building the searchable index is the exception — that lands inthis workspace's own artifact cache and reaches no other project.คำ
| คำ | คำ |
|---|---|
aggrega registry add | ลง |
aggrega registry list | แสดง |
aggrega registry remove | ลบ |
aggrega registry update | สร้าง |
คำaggrega registry add
Register a registry host and its signature trust policy.
The entry is keyed under the host exactly as written, and every lookup of it ismade in one spelling: a lowercase host name containing a dot, localhost, a singlename followed by a port (registry:5000), an IPv4 address, or an IPv6 address inbrackets, each with an optional :port. A reference may be given instead — itsscheme, path and credentials are dropped and the entry is keyed under the host itnames — but a host written in capitals, with the default HTTPS port, or as asingle name with no port is refused, naming the spelling to write where there isone.
The entry is written to the global config shared across every workspace, since aregistry and the identities you trust on it are usually the same wherever youwork. Pass --workspace to write it to this project's config file instead; the twoflags are mutually exclusive.
By default the registry's advertised trust policy is fetched once from theregistry's own origin (https://<host>/.well-known/aggrega-trust) and pinnedlocally — trust-on-first-use. Verification at pull time always runs against thepinned local policy, never a live re-fetch. Pass --fetch-trust=false to skip thefetch and pin only what the flags supply.
A trust policy can also be set by hand: keyless (one or more --identity entries,each an "identity=issuer" pair) or keyed (--key pointing at a pinned public-keyPEM). Manual --identity / --key flags OVERRIDE the fetched set — when either issupplied, the fetch is skipped and the policy is built from the flags alone.Pass --trusted-root to pin a Sigstore trust-root bundle for air-gapped keylessverification. Adding the official hub host with no policy flags pins the built-inofficial baseline.
When the registry advertises no trust policy (a 404 or an unreachable endpoint),the add does not fail: it writes the policy from the flags (or an empty policy)and prints a notice suggesting manual --identity / --key pinning. The officialhub writes its built-in baseline instead, and the notice says the baseline waspinned.
When the workspace is offline the advertised policy cannot be fetched, so theregistry is never asked. Adding a registry other than the official hub is thenrefused unless --identity or --key supplies the policy, rather than writing anentry that trusts nothing: register it once while online, or pin it by hand.Adding the official hub offline pins its built-in baseline, with a notice sayingso, and a manual policy registers offline exactly as it does online.
Existing settings in the target config file are preserved.แฟล็กaggrega registry add
| แฟล็ก | ค่า | คำ |
|---|---|---|
--advisory | false | ลด |
--fetch-trust | true | ดึง |
--global | false | เขียน |
--identity | [] | ตัวidentity=issuer เช่น dev@example.com=https://accounts.google.com (ระบุ |
--key | — | เส้น |
--name | — | นามแฝง |
--require-signatures | false | ต้อง |
--trusted-root | — | เส้น |
--workspace | false | เขียน |
คำaggrega registry list
List every registry configured in the effective merged config, one per line,with its friendly alias (if any), a short trust-posture summary, and a marker onthe default registry.
This reads the resolved configuration and never contacts a registry. Registriesare listed in ascending host order.
With -o json the same set is emitted as one structured document per registry:its host, its alias, whether it is the default, its trust posture as discretefields rather than the table's rendered sentence, and whether a credential forthat host is present in the shared credential store. The credential state reportspresence only — a credential is never read out, measured, or shown in any form,and whether the registry would accept it is not asked, since that would take anetwork round trip. Reading it consults the local credential store, which honorsa configured credential helper. The order is the same ascending host order thetable uses.แฟล็กaggrega registry list
| แฟล็ก | ค่า | คำ |
|---|---|---|
--output, -o | table | รูป |
คำaggrega registry remove
Remove a registry's trust-policy entry from a config file, addressed by its hostor its friendly alias.
By default the entry is removed from the global config shared across everyworkspace; pass --workspace to remove it from this project's workspace configinstead. Setting both --global and --workspace is a usage error.
The default_registry pointer is left untouched — removing a registry's trustpolicy reverts that host to default trust; it does not change which registry isthe default. Where default_registry names the removed entry by its alias, thatalias names nothing afterwards, and the configuration is refused untildefault_registry is written as a host or as another entry's name.แฟล็กaggrega registry remove
| แฟล็ก | ค่า | คำ |
|---|---|---|
--global | false | ลบ |
--workspace | false | ลบ |
คำaggrega registry update
Walk each configured registry's repositories, read the latest published versionof each, and write a deterministic local searchable index to the artifact cache.
With no argument, every configured registry is indexed. With a single registryargument (a host or a friendly alias), only that registry is indexed.
This is the one registry command that reaches the network. The index it writeslands in this workspace's own artifact cache, so refreshing it changes nothinganother project on this machine resolves through. Credentials are read from asupplied or ambient source and never asked for: a registry that needs one you donot have fails with a message naming what it wanted.
For each repository the highest strict-SemVer version is selected (pre-releaseversions are skipped) and its catalog facets — kind, description, category,labels, and, for plugins, socket type and capabilities — are recorded from thepublished manifest. A repository with no conforming version is skipped; arepository that cannot be read is skipped with a note, so one unreadablerepository does not abandon the whole index.
A registry that asks the walk to slow down — a 429 answer, or a 503 that sayshow long to wait (Retry-After) — is left alone for as long as it asks, or tenseconds where it does not say, and the walk reads fewer of its repositories atonce until it answers again, then returns to its usual pace; on a terminal thewait is shown beside that registry's row. A registry that answers nothing but"slow down" for five minutes is not indexed: it keeps the index it had beforethe run, and the command names it, its last answer and how long it waited.
A read the registry fails or drops in passing — a 5xx answer, a connectionreset or timed out, an answer cut short — is asked again a few times, with agrowing wait between attempts. A repository with a read stillfailing after that is not recorded from this run: it keeps the record the indexalready holds for it, where that record was judged under the trust policy now inforce, and is otherwise left out of the index; either way it is named as arepository that could not be read, as the walk goes and again in the closingsummary under its registry's row, with the kind of the read's last failure — thestatus the registry answered, a timeout, a reset, an answer cut short — and theread that failed. So a version is never recorded unsigned,undated or without its deprecation marker because a read failed, with or without--upgrade. Each registry's row in the closing summary also says how many readswere asked again, whether or not they then succeeded — a read sent again afterthe registry asked the walk to slow down among them — and says zero when nonewas.
Every signature a registry's walk verifies against the public Sigstore trust rootis verified against the same copy of that root, fetched once for the walk ratherthan once per signature; a registry whose trust policy pins a trust root of itsown is verified against that file.
A registry whose repository listing repeats itself — naming a repository it hasalready named, or answering two pages in a row with no repository while stillpointing to a next page — is not followed round again. That registry is reportedas not indexed, with a message naming it and saying its repository listingrepeated itself; the other registries are still indexed, and the command exitsnon-zero.
A registry that is not indexed keeps the index it had before the run, unchanged:nothing is written for a registry whose walk failed, whose listing repeateditself, or that was being walked when the command was interrupted. Registriesindexed earlier in the same run keep what this run wrote for them. A registry'snew index is written aside and put in place whole, so a command stopped whilewriting one leaves that registry with a complete index — the one it had beforethe run, or the new one — or with none, never with a partial one.
Every strict-SemVer version a recorded repository publishes is listed too, eachwith the manifest digest its tag resolves to — the address of the exact bytespublished under that version. Where the registry's trust policy pins a public keyor trusted identities, and verification is not switched off, each version's ownsignatures are verified against that policy and the signer is recorded when oneverifies; a version with no signature, or none that verifies, is recorded with nosigner. Where several verify, the signer recorded is the one the transparency logrecorded earliest, whatever order the registry lists them in, so signing a versionagain never changes its recorded signer.
Each version's publication date is recorded too, with its source. Where one of theversion's keyless signatures verified, the date is the time the transparency logrecorded that earliest signature, as the verified log entry attests it (source'transparency-log') — so signing a version again never moves its date. Otherwiseit is the date the publication itself stated beside what it published (source'publisher'), the earliest where several are stated: the publishing machine's ownclock, which nothing attests, read from any registry whatever its trust policy.A version with neither — published without stating a date, and not signedkeyless in a way this policy verifies — is recorded with no date.
Only manifests, signature attachments and publication-date attachments are read:no entity's content is fetched. 'aggrega search -o json' reports these under eachrecord's 'published' field.
The per-repository records are byte-identical across two runs against the sameregistry state; the freshness timestamp is written to a sibling file so it neverdisturbs the records.
A refresh reads again only what changed, and finds every change a full re-readwould. For each repository it revalidates the tag listing with a conditionalrequest, resolves every version's tag to its manifest digest, and revalidates everyversion's attachments — its signatures, publication-date statements and deprecationmarkers — with one conditional request, plus one for the signatures of adeprecation marker it judged before. A version whose digest or attachments changedis read again in full, and its signatures and markers are verified again exactly asa full re-read verifies them; everything else is kept as recorded. A change to thisregistry's trust policy reads every version again under the policy now in force, andso does a repository whose entry in the index records none of these checks. Anunchanged registry therefore costs one conditional request per repository and twosmall requests per version (three where a deprecation marker was judged), withnothing downloaded. A version is read again on the next refresh where it carries adeprecation marker that was not honored, or where this run got no way torevalidate its attachments — which, on a registry that offers none, is everyversion.
Several repositories are read at a time. Everything the command records and printscomes out in repository order, so the index and the output are the same as readingone repository at a time would produce.
While it walks, a terminal shows the walk's progress on standard error, the waybuild and pull show theirs: a row naming each registry, a spinner while thatregistry's repository listing is read, then how many of its repositories the walkhas finished out of how many it lists, counted in repository order, and a bar forthe whole walk below the rows. On a terminal that cannot redraw in place, or with--plain, each registry gets one plain line instead, written when its walk ends,with the count it ended on and the time it took. When standard error is not aterminal, no progress is shown. The progress changes nothing the command prints onstandard output.
Use --upgrade to read every repository in full, comparing nothing with the indexalready written — to rebuild an index from the registry alone. It finds no change arefresh without it would miss.
Each published version's deprecation markers are read as the walk goes, and the oneswhose own signature verifies are recorded into the index. Every marker read isreported, whether or not it was recorded — a version kept as recorded is not read, soits marker is not reported again — and each registry reports how many markers itsindex now records, including when that number is zero. Where signatureverification is disabled for a registry, the walk reports that its markers were notexamined rather than a count, so a registry that published nothing is never confusedwith one this run had no basis to judge.แฟล็กaggrega registry update
| แฟล็ก | ค่า | คำ |
|---|---|---|
--upgrade | false | อ่าน |
สิ่งที่ registry update รายงานเกี่ยวกับเครื่องหมายการเลิกใช้
ขณะaggrega registry update อ่าน
เครื่องหมายwarning, error หรือ retracted — พร้อม
จาก
วันที่เผยแพร่ที่แต่ละเวอร์ชันบันทึก
เวลาaggrega registry update บันทึก
transparency-log— เมื่อลาย เซ็น ของ เวอร์ชัน เป็น แบบ keyless และ ตรวจ สอบ ผ่าน กับ นโยบาย ความ เชื่อ ถือ ของ รีจิสทรี คือ เวลา ที่ บันทึก ความ โปร่งใส บันทึก ลาย เซ็น นั้น ซึ่ง คำ สัญญา ที่ ลง นาม ของ บันทึก รับรอง เมื่อ ลาย เซ็น ของ เวอร์ชัน หลาย ชุด ตรวจ สอบ ผ่าน จะ ใช้ เวลา ที่ เร็ว ที่สุด ใน บรรดา เวลา ของ ลาย เซ็น เหล่า นั้น และ ผู้ ลง นาม ที่ บันทึก สำหรับ เวอร์ชัน คือ ผู้ ลง นาม ของ ลาย เซ็น เดียวกัน นั้น — ไม่ ว่า รีจิสทรี จะ แสดง ลาย เซ็น ตาม ลำดับ ใด — เวอร์ชัน ที่ ลง นาม ซ้ำ จึง คง วัน ที่ และ ผู้ ลง นาม เดิม สำหรับ เวอร์ชัน ที่ ลง นาม ขณะ เผย แพร่ นั่น คือ การ เผย แพร่ สำหรับ เวอร์ชัน ที่ ลง นาม ครั้ง แรก ภาย หลัง ด้วย aggrega signคือเวลา ที่ ลง นาม แหล่ง นี้ ชนะ เสมอ ทุก ที่ ที่ มี publisher— มิฉะนั้น คือ เวลา ที่ การ เผย แพร่ แถลง ไว้ ข้าง สิ่ง ที่ เผย แพร่: สิ่ง ที่ แนบ published-at ขนาด เล็ก ที่ aggrega pushและaggrega push-artifactเขียน โดยมี นาฬิกา ของ เครื่อง ที่ เผย แพร่ เอง ซึ่ง ไม่มี สิ่ง ใด รับรอง อ่าน จาก รีจิสทรี ใด ก็ได้ ไม่ ว่า นโยบาย ความ เชื่อ ถือ เป็น อย่างไร เพราะ เป็น คำแถลง ของ ผู้ เผย แพร่ ไม่ใช่ การ ตัดสิน ความ เชื่อ ถือ เมื่อ แนบ หลาย รายการ จะ ใช้ รายการ ที่ เร็ว ที่สุด
เวอร์ชันaggrega search -o json รายงานpublished
สิ่งที่การรีเฟรชอ่านซ้ำ
การ
- ตรวจ
สอบ รายการ แท็ก ซ้ำ เพื่อ รับ เวอร์ชัน ที่ เผย แพร่ หรือ ลบ ไป แล้ว - หา
ค่า แท็ก ของ ทุก เวอร์ชัน เป็น แมนิเฟสต์ ที่ แท็ก นั้น ระบุ เวอร์ชัน เก่า ที่ เผย แพร่ ซ้ำ ภาย ใต้ แท็ก เดิม จึง ถูก อ่าน ซ้ำ - ตรวจ
สอบ สิ่ง ที่ แนบ ของ ทุก เวอร์ชัน ซ้ำ — ลาย เซ็น คำแถลง วัน ที่ เผย แพร่ และ เครื่องหมาย การ เลิก ใช้ — ลาย เซ็น วัน ที่ หรือ เครื่องหมาย ที่ แนบ กับ เวอร์ชัน ตั้งแต่ นั้น จึง ถูก อ่าน และ ตรวจ สอบ และ ทำ เช่น เดียวกัน กับ ลาย เซ็น ของ เครื่องหมาย การ เลิก ใช้ ที่ เคย ตัดสิน ไว้ - เทียบ
นโยบาย ความ เชื่อ ถือ ของ รีจิสทรี กับ นโยบาย ที่ ดัชนี ถูก สร้าง ขึ้น ภาย ใต้ การ เปลี่ยน นโยบาย จึง อ่าน ทุก เวอร์ชัน ซ้ำ ภาย ใต้ นโยบาย ใหม่
เครื่องหมายaggrega inspect ต่าง
การ
--upgrade อ่าน
รีจิสทรีที่ขอให้ช้าลง
hub อย่างhub.aggrega.ai จำกัด429 Too Many Requests หรือ 503 Service Unavailable พร้อมRetry-After ที่hub.aggrega.ai asked to slow down; waiting 11 s: aggrega build, aggrega pull และ aggrega registry update แสดงaggrega sign --jobs ที่--progress ของE0378 โดยaggrega registry update จะNot indexed: ใน
การอ่านที่ล้มเหลว
การ
การ
Indexed 1 registry. registry.example.com: 41 entities, 1 repository could not be read, 4 reads retried component/core/web: the registry answered 503 Service Unavailable: …แถว0 reads retried เมื่อ
แต่ละaggrega/registryUpdate ของ aggrega serve ตอบskipped ของreason เดียวกัน และreadsRetried เช่น--upgrade และ
คีย์สาธารณะที่นโยบายแบบมีคีย์ปักหมุด
นโยบายpublic_key ของaggrega registry add --key <file> คัด-----BEGIN PUBLIC KEY----- หรือ -----BEGIN RSA PUBLIC KEY----- ถึง-----END ที่
ค่าที่-----BEGIN … PUBLIC KEY----- จะregistry add ตรวจ--key ที่
ออฟไลน์
aggrega registry update เป็นoffline ระดับAGGREGA_OFFLINE หรือ --offline — จะ
ไม่มีaggrega search และaggrega inspect ต่าง--offline=false
aggrega registry add ติดต่อ--fetch-trust=false, --identity หรือ --key บอกE0310 และ--offline=false อนุญาต--identity หรือ --key ซึ่ง--fetch-trust=false ลงaggrega serve หรือ aggrega mcp ทำงาน
list และ remove เปลี่ยน