ข้ามไปยังเนื้อหา
AggregaAggregaAggregaAggrega
เลือกภาษา: ไทย
หน้านี้ถูกแปลด้วยเครื่อง อ่านต้นฉบับภาษาอังกฤษ

aggrega registry

จัดการรีจิสทรีและนโยบายความเชื่อถือลายเซ็นของรีจิสทรีเหล่านั้น

รูปแบบคำสั่ง

aggrega registry

คำอธิบาย

Manage the OCI registries Aggrega publishes to and resolves from, together with
the signature trust policy for each.
A registry entry records where to reach the registry and what to require of the
signatures on artifacts it serves — which identities are trusted, and whether a
signature is required at all. That policy is what "aggrega pull" enforces when
it verifies an artifact and what "aggrega push" honours when it decides whether
to sign.
"aggrega registry add" can fetch a registry's own advertised trust policy rather
than having you write it out. "aggrega registry update" builds the local
searchable index that "aggrega search" and "aggrega plugin add" read.
A registry entry is written to the global config shared across every workspace
on this machine, because a registry and the identities you trust on it are
usually the same wherever you work. That makes adding or removing one a
machine-wide change: every project on this machine resolves through the entry
you just wrote or dropped. Pass --workspace to write it to this project's config
file instead. Building the searchable index is the exception — that lands in
this 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 is
made in one spelling: a lowercase host name containing a dot, localhost, a single
name followed by a port (registry:5000), an IPv4 address, or an IPv6 address in
brackets, each with an optional :port. A reference may be given instead — its
scheme, path and credentials are dropped and the entry is keyed under the host it
names — but a host written in capitals, with the default HTTPS port, or as a
single name with no port is refused, naming the spelling to write where there is
one.
The entry is written to the global config shared across every workspace, since a
registry and the identities you trust on it are usually the same wherever you
work. Pass --workspace to write it to this project's config file instead; the two
flags are mutually exclusive.
By default the registry's advertised trust policy is fetched once from the
registry's own origin (https://<host>/.well-known/aggrega-trust) and pinned
locally — trust-on-first-use. Verification at pull time always runs against the
pinned local policy, never a live re-fetch. Pass --fetch-trust=false to skip the
fetch 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-key
PEM). Manual --identity / --key flags OVERRIDE the fetched set — when either is
supplied, 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 keyless
verification. Adding the official hub host with no policy flags pins the built-in
official 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 official
hub writes its built-in baseline instead, and the notice says the baseline was
pinned.
When the workspace is offline the advertised policy cannot be fetched, so the
registry is never asked. Adding a registry other than the official hub is then
refused unless --identity or --key supplies the policy, rather than writing an
entry 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 saying
so, and a manual policy registers offline exactly as it does online.
Existing settings in the target config file are preserved.

แฟล็กของ aggrega registry add

แฟล็กค่าเริ่มต้นคำอธิบาย
--advisoryfalseลดระดับความล้มเหลวของการตรวจสอบของรีจิสทรีนี้ให้เป็นคำเตือนแทนการหยุด
--fetch-trusttrueดึงและปักหมุดนโยบายความเชื่อถือที่รีจิสทรีโฆษณาเมื่อใช้ครั้งแรก ใช้ —fetch-trust=false เพื่อข้าม การระบุ —identity/—key ด้วยตนเองก็ข้ามการดึงเช่นกัน
--globalfalseเขียนรายการลงการกำหนดค่าส่วนกลางที่ใช้ร่วมกันทุกพื้นที่ทำงาน รีจิสทรีใช้ค่านี้เป็นค่าเริ่มต้น
--identity[]ตัวตนแบบ keyless ที่เชื่อถือ ในรูป identity=issuer เช่น dev@example.com=https://accounts.google.com (ระบุซ้ำได้ ชุดแบบ OR) แทนที่นโยบายความเชื่อถือที่ดึงมา
--key—เส้นทางไปยัง PEM คีย์สาธารณะที่เข้ากันได้กับ cosign ที่ปักหมุดไว้ สำหรับการตรวจสอบแบบ keyed แทนที่นโยบายความเชื่อถือที่ดึงมา
--name—นามแฝงที่เรียกง่ายซึ่งไม่บังคับสำหรับรีจิสทรีนี้ โฮสต์ยังเป็นตัวตน นามแฝงจะหาค่าเป็นโฮสต์ทุกที่ที่ระบุรีจิสทรี (เช่น —registry) ต้องไม่ซ้ำกันทุกรีจิสทรี
--require-signaturesfalseต้องมีลายเซ็นกับทุกอาร์ติแฟกต์ที่ pull จาก (และ push ไปยัง) รีจิสทรีนี้
--trusted-root—เส้นทางไปยังบันเดิล trust-root ของ Sigstore ที่ปักหมุดไว้ สำหรับการตรวจสอบแบบ keyless ในเครื่องที่แยกจากเครือข่าย
--workspacefalseเขียนรายการลงในการกำหนดค่าพื้นที่ทำงานของโปรเจกต์นี้แทนการกำหนดค่าส่วนกลาง

คำอธิบายของ 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 on
the default registry.
This reads the resolved configuration and never contacts a registry. Registries
are 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 discrete
fields rather than the table's rendered sentence, and whether a credential for
that host is present in the shared credential store. The credential state reports
presence 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 a
network round trip. Reading it consults the local credential store, which honors
a configured credential helper. The order is the same ascending host order the
table uses.

แฟล็กของ aggrega registry list

แฟล็กค่าเริ่มต้นคำอธิบาย
--output, -otableรูปแบบเอาต์พุต: table|json

คำอธิบายของ aggrega registry remove

Remove a registry's trust-policy entry from a config file, addressed by its host
or its friendly alias.
By default the entry is removed from the global config shared across every
workspace; pass --workspace to remove it from this project's workspace config
instead. Setting both --global and --workspace is a usage error.
The default_registry pointer is left untouched — removing a registry's trust
policy reverts that host to default trust; it does not change which registry is
the default. Where default_registry names the removed entry by its alias, that
alias names nothing afterwards, and the configuration is refused until
default_registry is written as a host or as another entry's name.

แฟล็กของ aggrega registry remove

แฟล็กค่าเริ่มต้นคำอธิบาย
--globalfalseลบรายการออกจากการกำหนดค่าส่วนกลางที่ใช้ร่วมกันทุกพื้นที่ทำงาน
--workspacefalseลบรายการออกจากการกำหนดค่าพื้นที่ทำงานของโปรเจกต์นี้แทนการกำหนดค่าส่วนกลาง

คำอธิบายของ aggrega registry update

Walk each configured registry's repositories, read the latest published version
of each, and write a deterministic local searchable index to the artifact cache.
With no argument, every configured registry is indexed. With a single registry
argument (a host or a friendly alias), only that registry is indexed.
This is the one registry command that reaches the network. The index it writes
lands in this workspace's own artifact cache, so refreshing it changes nothing
another project on this machine resolves through. Credentials are read from a
supplied or ambient source and never asked for: a registry that needs one you do
not have fails with a message naming what it wanted.
For each repository the highest strict-SemVer version is selected (pre-release
versions are skipped) and its catalog facets — kind, description, category,
labels, and, for plugins, socket type and capabilities — are recorded from the
published manifest. A repository with no conforming version is skipped; a
repository that cannot be read is skipped with a note, so one unreadable
repository does not abandon the whole index.
A registry that asks the walk to slow down — a 429 answer, or a 503 that says
how long to wait (Retry-After) — is left alone for as long as it asks, or ten
seconds where it does not say, and the walk reads fewer of its repositories at
once until it answers again, then returns to its usual pace; on a terminal the
wait 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 before
the 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 connection
reset or timed out, an answer cut short — is asked again a few times, with a
growing wait between attempts. A repository with a read still
failing after that is not recorded from this run: it keeps the record the index
already holds for it, where that record was judged under the trust policy now in
force, and is otherwise left out of the index; either way it is named as a
repository that could not be read, as the walk goes and again in the closing
summary under its registry's row, with the kind of the read's last failure — the
status the registry answered, a timeout, a reset, an answer cut short — and the
read 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 reads
were asked again, whether or not they then succeeded — a read sent again after
the registry asked the walk to slow down among them — and says zero when none
was.
Every signature a registry's walk verifies against the public Sigstore trust root
is verified against the same copy of that root, fetched once for the walk rather
than once per signature; a registry whose trust policy pins a trust root of its
own is verified against that file.
A registry whose repository listing repeats itself — naming a repository it has
already named, or answering two pages in a row with no repository while still
pointing to a next page — is not followed round again. That registry is reported
as not indexed, with a message naming it and saying its repository listing
repeated itself; the other registries are still indexed, and the command exits
non-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 repeated
itself, or that was being walked when the command was interrupted. Registries
indexed earlier in the same run keep what this run wrote for them. A registry's
new index is written aside and put in place whole, so a command stopped while
writing one leaves that registry with a complete index — the one it had before
the run, or the new one — or with none, never with a partial one.
Every strict-SemVer version a recorded repository publishes is listed too, each
with the manifest digest its tag resolves to — the address of the exact bytes
published under that version. Where the registry's trust policy pins a public key
or trusted identities, and verification is not switched off, each version's own
signatures are verified against that policy and the signer is recorded when one
verifies; a version with no signature, or none that verifies, is recorded with no
signer. Where several verify, the signer recorded is the one the transparency log
recorded earliest, whatever order the registry lists them in, so signing a version
again never changes its recorded signer.
Each version's publication date is recorded too, with its source. Where one of the
version's keyless signatures verified, the date is the time the transparency log
recorded that earliest signature, as the verified log entry attests it (source
'transparency-log') — so signing a version again never moves its date. Otherwise
it is the date the publication itself stated beside what it published (source
'publisher'), the earliest where several are stated: the publishing machine's own
clock, which nothing attests, read from any registry whatever its trust policy.
A version with neither — published without stating a date, and not signed
keyless 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 each
record's 'published' field.
The per-repository records are byte-identical across two runs against the same
registry state; the freshness timestamp is written to a sibling file so it never
disturbs the records.
A refresh reads again only what changed, and finds every change a full re-read
would. For each repository it revalidates the tag listing with a conditional
request, resolves every version's tag to its manifest digest, and revalidates every
version's attachments — its signatures, publication-date statements and deprecation
markers — with one conditional request, plus one for the signatures of a
deprecation marker it judged before. A version whose digest or attachments changed
is read again in full, and its signatures and markers are verified again exactly as
a full re-read verifies them; everything else is kept as recorded. A change to this
registry's trust policy reads every version again under the policy now in force, and
so does a repository whose entry in the index records none of these checks. An
unchanged registry therefore costs one conditional request per repository and two
small requests per version (three where a deprecation marker was judged), with
nothing downloaded. A version is read again on the next refresh where it carries a
deprecation marker that was not honored, or where this run got no way to
revalidate its attachments — which, on a registry that offers none, is every
version.
Several repositories are read at a time. Everything the command records and prints
comes out in repository order, so the index and the output are the same as reading
one repository at a time would produce.
While it walks, a terminal shows the walk's progress on standard error, the way
build and pull show theirs: a row naming each registry, a spinner while that
registry's repository listing is read, then how many of its repositories the walk
has finished out of how many it lists, counted in repository order, and a bar for
the 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 a
terminal, no progress is shown. The progress changes nothing the command prints on
standard output.
Use --upgrade to read every repository in full, comparing nothing with the index
already written — to rebuild an index from the registry alone. It finds no change a
refresh without it would miss.
Each published version's deprecation markers are read as the walk goes, and the ones
whose own signature verifies are recorded into the index. Every marker read is
reported, whether or not it was recorded — a version kept as recorded is not read, so
its marker is not reported again — and each registry reports how many markers its
index now records, including when that number is zero. Where signature
verification is disabled for a registry, the walk reports that its markers were not
examined rather than a count, so a registry that published nothing is never confused
with one this run had no basis to judge.

แฟล็กของ aggrega registry update

แฟล็กค่าเริ่มต้นคำอธิบาย
--upgradefalseอ่านทุกที่เก็บทั้งหมด โดยไม่เทียบอะไรกับดัชนีที่เขียนไว้แล้ว (การรีเฟรชที่ไม่มีแฟล็กนี้ก็อ่านสิ่งที่เปลี่ยนซ้ำอยู่แล้ว)

สิ่งที่ registry update รายงานเกี่ยวกับเครื่องหมายการเลิกใช้

ขณะเดินผ่านรีจิสทรี aggrega registry update อ่านเครื่องหมายการเลิกใช้ของแต่ละเวอร์ชันที่เผยแพร่ และบันทึกเครื่องหมายที่พิสูจน์ตัวตนได้ลงดัชนีภายในเครื่อง โดยรายงานผลของการสแกนนั้นในทุกเส้นทาง รีจิสทรีที่ไม่ได้เผยแพร่เครื่องหมายใดจึงแยกจากการรันที่ไม่ได้มองหาเครื่องหมายได้

เครื่องหมายแต่ละรายการที่การเดินอ่านพบทำให้เกิดหนึ่งบรรทัดที่ระบุที่เก็บ เวอร์ชัน และระดับความรุนแรงที่ผู้เผยแพร่บันทึก — warning, error หรือ retracted — พร้อมระบุว่าเครื่องหมายถูกบันทึกหรือไม่ เวอร์ชันที่สิ่งที่แนบไม่เปลี่ยนตั้งแต่การรีเฟรชครั้งก่อนจะถูกเก็บตามที่บันทึกไว้แทนการอ่าน เครื่องหมายของเวอร์ชันนั้นจึงไม่ถูกรายงานอีก แต่จำนวนด้านล่างยังรวมอยู่ เครื่องหมายจะถูกบันทึกก็ต่อเมื่อลายเซ็นของตัวเครื่องหมายตรวจสอบผ่านกับผู้ลงนามที่นโยบายความเชื่อถือของรีจิสทรียอมรับ เครื่องหมายที่มีอยู่แต่ถอดรหัสไม่ได้ หรือมีอยู่แต่ไม่ได้รับการยอมรับ จะถูกรายงานตามนั้นและเว้นไว้นอกดัชนี แทนการบันทึกบนหลักฐานที่พิสูจน์ตัวตนไม่ได้ — เช่นเดียวกับเครื่องหมายที่รีจิสทรีตอบว่าไม่มี กรณีที่การอ่านเครื่องหมายล้มเหลวต่างออกไป: ดู การอ่านที่ล้มเหลว

จากนั้นแต่ละรีจิสทรีรายงานว่าดัชนีของตนบันทึกเครื่องหมายกี่รายการ รวมถึงเมื่อจำนวนนั้นเป็นศูนย์ เมื่อการตรวจสอบลายเซ็นถูกปิด — ทั้งระบบหรือเฉพาะรีจิสทรีนั้น — การเดินอ่านจะรายงานแทนว่าไม่ได้ตรวจเครื่องหมายสำหรับรีจิสทรีนั้น สองอย่างนี้เป็นข้อเท็จจริงต่างกัน: อย่างแรกบอกว่ารีจิสทรีไม่ได้เผยแพร่สิ่งที่พื้นที่ทำงานนี้ดำเนินการได้ อย่างที่สองบอกว่าการรันนี้ไม่มีฐานความเชื่อถือที่จะตัดสินเครื่องหมายเลย รีจิสทรีที่ไม่ได้ตรวจเครื่องหมายจะไม่ส่งการถอนใดเข้าสู่การเลือกเวอร์ชัน ผู้เขียนที่แนบเครื่องหมายแล้วเห็นบรรทัดนั้นจึงรู้ว่าทำไมเครื่องหมายไม่มีผล

วันที่เผยแพร่ที่แต่ละเวอร์ชันบันทึก

เวลาสร้างของแมนิเฟสต์ที่เผยแพร่ถูกปักหมุดไว้ ไดเจสต์ของมันจึงขึ้นกับสิ่งที่เผยแพร่เท่านั้นและไม่เคยขึ้นกับเวลา วันที่ที่เวอร์ชันถูกเผยแพร่จึงอ่านจากข้างแมนิเฟสต์ และ aggrega registry update บันทึกวันที่นั้นสำหรับแต่ละเวอร์ชันพร้อมแหล่งที่มา:

  • transparency-log — เมื่อลายเซ็นของเวอร์ชันเป็นแบบ keyless และตรวจสอบผ่านกับนโยบายความเชื่อถือของรีจิสทรี คือเวลาที่บันทึกความโปร่งใสบันทึกลายเซ็นนั้น ซึ่งคำสัญญาที่ลงนามของบันทึกรับรอง เมื่อลายเซ็นของเวอร์ชันหลายชุดตรวจสอบผ่าน จะใช้เวลาที่เร็วที่สุดในบรรดาเวลาของลายเซ็นเหล่านั้น และผู้ลงนามที่บันทึกสำหรับเวอร์ชันคือผู้ลงนามของลายเซ็นเดียวกันนั้น — ไม่ว่ารีจิสทรีจะแสดงลายเซ็นตามลำดับใด — เวอร์ชันที่ลงนามซ้ำจึงคงวันที่และผู้ลงนามเดิม สำหรับเวอร์ชันที่ลงนามขณะเผยแพร่ นั่นคือการเผยแพร่ สำหรับเวอร์ชันที่ลงนามครั้งแรกภายหลังด้วย aggrega sign คือเวลาที่ลงนาม แหล่งนี้ชนะเสมอทุกที่ที่มี
  • publisher — มิฉะนั้น คือเวลาที่การเผยแพร่แถลงไว้ข้างสิ่งที่เผยแพร่: สิ่งที่แนบ published-at ขนาดเล็กที่ aggrega push และ aggrega push-artifact เขียน โดยมีนาฬิกาของเครื่องที่เผยแพร่เอง ซึ่งไม่มีสิ่งใดรับรอง อ่านจากรีจิสทรีใดก็ได้ไม่ว่านโยบายความเชื่อถือเป็นอย่างไร เพราะเป็นคำแถลงของผู้เผยแพร่ ไม่ใช่การตัดสินความเชื่อถือ เมื่อแนบหลายรายการ จะใช้รายการที่เร็วที่สุด

เวอร์ชันที่ไม่มีทั้งสองอย่างจะไม่บันทึกวันที่ นั่นคือการเผยแพร่ที่ไม่ได้แถลงวันที่ เมื่อลายเซ็นของมันไม่ใช่แบบ keyless ที่นโยบายนี้ตรวจสอบ — ตัวอย่างเช่น การเผยแพร่แบบ keyless ที่อ่านภายใต้นโยบายที่ไม่เชื่อถือตัวตน keyless ใด เพราะการเผยแพร่แบบ keyless ไม่แถลงวันที่ของตนเอง aggrega search -o json รายงานวันที่ใต้แต่ละเวอร์ชันใน published

สิ่งที่การรีเฟรชอ่านซ้ำ

การรีเฟรชเทียบสิ่งที่รีจิสทรีให้บริการตอนนี้กับสิ่งที่ดัชนีบันทึก และอ่านซ้ำทุกอย่างที่เปลี่ยน — ได้คำตอบเดียวกับการอ่านซ้ำทั้งหมด สำหรับแต่ละที่เก็บ การรีเฟรช:

  • ตรวจสอบรายการแท็กซ้ำ เพื่อรับเวอร์ชันที่เผยแพร่หรือลบไปแล้ว
  • หาค่าแท็กของทุกเวอร์ชันเป็นแมนิเฟสต์ที่แท็กนั้นระบุ เวอร์ชันเก่าที่เผยแพร่ซ้ำภายใต้แท็กเดิมจึงถูกอ่านซ้ำ
  • ตรวจสอบสิ่งที่แนบของทุกเวอร์ชันซ้ำ — ลายเซ็น คำแถลงวันที่เผยแพร่ และเครื่องหมายการเลิกใช้ — ลายเซ็น วันที่ หรือเครื่องหมายที่แนบกับเวอร์ชันตั้งแต่นั้นจึงถูกอ่านและตรวจสอบ และทำเช่นเดียวกันกับลายเซ็นของเครื่องหมายการเลิกใช้ที่เคยตัดสินไว้
  • เทียบนโยบายความเชื่อถือของรีจิสทรีกับนโยบายที่ดัชนีถูกสร้างขึ้นภายใต้ การเปลี่ยนนโยบายจึงอ่านทุกเวอร์ชันซ้ำภายใต้นโยบายใหม่

เครื่องหมายการเลิกใช้ ลายเซ็น และวันที่เผยแพร่ แต่ละอย่างแนบกับเวอร์ชันที่เผยแพร่เป็นออบเจ็กต์แยกที่ชี้กลับมายังเวอร์ชันนั้น — ซึ่งทำให้ผู้เผยแพร่เลิกใช้หรือลงลายเซ็นเวอร์ชันได้โดยไม่ต้องเผยแพร่ซ้ำ — จึงไม่มีอย่างใดเพิ่ม tag หรือเปลี่ยนแมนิเฟสต์ของเวอร์ชันเอง สิ่งเหล่านี้เปลี่ยนสิ่งที่แนบของเวอร์ชัน และนั่นคือสิ่งที่การตรวจข้อที่สามตรวจสอบซ้ำ การยกเว้นเวอร์ชันและ 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 ของคำสั่งขอไว้ รีจิสทรีที่ตอบเพียง “slow down” เป็นเวลาห้านาทีจะถูกปฏิเสธภายใต้ E0378 โดยระบุรีจิสทรี คำตอบสุดท้าย และระยะเวลาที่ตอบเพียงอย่างนั้น ห้านาทีนี้ตายตัวและไม่มีการตั้งค่าใดเปลี่ยนได้ จากนั้น aggrega registry update จะระบุรีจิสทรีนั้นภายใต้ Not indexed: ในสรุปปิดท้าย และรีจิสทรีคงดัชนีที่มีอยู่ก่อนการรัน

การอ่านที่ล้มเหลว

การเดินอ่านอ่านวัตถุเล็กๆ จำนวนมากจากรีจิสทรี และการอ่านบางครั้งล้มเหลวชั่วคราว: รีจิสทรีตอบว่าล้มเหลวหรือไม่พร้อมใช้งาน (สถานะ 5xx ยกเว้น 503 ที่บอกว่าต้องรอนานเท่าใด) หรือคำขอหมดเวลา (408) การเชื่อมต่อถูกรีเซ็ตหรือหมดเวลา หรือคำตอบหยุดก่อนครบ การอ่านเช่นนั้นแต่ละครั้งจะถูกขอซ้ำอีกสองสามครั้ง โดยรอนานขึ้นระหว่างความพยายาม รีจิสทรีที่ขอให้การเดินอ่านช้าลงไม่ได้ทำให้การอ่านล้มเหลว: การอ่านรอแล้วขอซ้ำตามที่ รีจิสทรีที่ขอให้ช้าลง อธิบายไว้ และรีจิสทรีที่ขอต่อเนื่องห้านาทีจะยุติการเดินอ่านของรีจิสทรีนั้น ไม่ใช่ของที่เก็บเดียว

การอ่านที่ยังล้มเหลวจะไม่ถูกถือเป็นคำตอบเลย ลายเซ็นที่อ่านไม่ได้ไม่ใช่เวอร์ชันที่ไม่มีลายเซ็น และเครื่องหมายการเลิกใช้ที่อ่านไม่ได้ไม่ใช่เวอร์ชันที่ไม่เคยถูกถอน การเดินอ่านจึงไม่บันทึกสิ่งใดเกี่ยวกับที่เก็บนั้นจากการรันนี้ ที่เก็บคงบันทึกที่ดัชนีมีอยู่แล้ว หากบันทึกนั้นถูกตัดสินภายใต้นโยบายความเชื่อถือของรีจิสทรีที่ใช้อยู่ตอนนี้ มิฉะนั้นจะถูกเว้นไว้นอกดัชนี ไม่ว่าทางใด การเดินอ่านระบุที่เก็บนั้นในคำบรรยายระหว่างทำงาน โดยบอกว่าเกิดอย่างใดในสองอย่างและการอ่านใดล้มเหลว และระบุอีกครั้งในสรุปปิดท้าย บนบรรทัดของตนเองใต้แถวของรีจิสทรี ในหมู่ที่เก็บที่อ่านไม่ได้:

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 และการเดินอ่านครั้งถัดไปเริ่มจากสิ่งที่ดัชนีมีอยู่ในตอนนั้น เหมือนกับที่เก็บอื่นๆ

คีย์สาธารณะที่นโยบายแบบมีคีย์ปักหมุด

นโยบายความเชื่อถือแบบ keyed ปักหมุดคีย์สาธารณะของรีจิสทรีไว้โดยตรงเป็น public_key ของรายการ: aggrega registry add --key <file> คัดลอกเนื้อหาของไฟล์ไปที่นั่น และการปักหมุดนโยบายที่รีจิสทรีโฆษณาซึ่งมีคีย์อยู่ก็เช่นกัน ค่าคือบล็อก PEM คีย์สาธารณะ — ข้อความตั้งแต่บรรทัด -----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 บอกไม่ให้ดึง ภายใต้สถานะออฟไลน์ การดึงนั้นถูกปฏิเสธก่อนมีการเชื่อมต่อใดๆ รีจิสทรีจึงไม่ถูกถามเลย การเพิ่มรีจิสทรีอื่นที่ไม่ใช่ hub อย่างเป็นทางการจึง ถูกปฏิเสธ — การเพิ่มรีจิสทรีเป็นช่วงเดียวที่ความเชื่อถือของรีจิสทรีนั้นถูกปักหมุด และรายการที่เขียนโดยไม่มีนโยบายจะไม่เชื่อถือสิ่งใดเลย ขณะที่ทุกการ pull ต่อมากำกับรีจิสทรีด้วยนโยบายนั้น การปฏิเสธมีรหัสย่อ E0310 และระบุทางไปต่อทั้งสองทาง: ลงทะเบียนครั้งเดียวขณะออนไลน์ ซึ่ง --offline=false อนุญาตสำหรับการรันหนึ่งรอบ หรือปักหมุดนโยบายด้วยมือด้วย --identity หรือ --key ซึ่งลงทะเบียนตรงสิ่งที่คุณจัดหาและไม่ดึงอะไรเลย hub อย่างเป็นทางการถูกเพิ่มด้วยค่าพื้นฐานในตัว พร้อมข้อความแจ้งว่าไม่ได้ถาม hub ถึงนโยบายความเชื่อถือเพราะพื้นที่ทำงานออฟไลน์และใช้ค่าพื้นฐานแทน และ --fetch-trust=false ลงทะเบียนรายการจากแฟล็กของคำสั่งเหมือนตอนออนไลน์ การลงทะเบียนแบบเดียวกันผ่าน aggrega serve หรือ aggrega mcp ทำงานแบบเดียวกัน: การปฏิเสธเดียวกันด้วยถ้อยคำเดียวกัน และรายการเดียวกันในส่วนอื่น A registry is added offline with no trust policy to pin (รีจิสทรีถูกเพิ่มขณะออฟไลน์โดยไม่มีนโยบายความเชื่อถือให้ปักหมุด) ยกการปฏิเสธนั้นมาแสดง

list และ remove เปลี่ยนหรืออ่านการกำหนดค่าภายในเครื่อง และไม่ได้รับผลกระทบ