इसे छोड़कर कंटेंट पर जाएं
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[]विश्वसनीय कीलेस आइडेंटिटी identity=issuer के रूप में, उदाहरण के लिए dev@example.com=https://accounts.google.com (दोहराने योग्य; OR-समुच्चय)। फ़ेच की गई ट्रस्ट पॉलिसी को ओवरराइड करता है।
--key—कुंजी-आधारित सत्यापन के लिए पिन की गई cosign-संगत पब्लिक-की PEM का पाथ। फ़ेच की गई ट्रस्ट पॉलिसी को ओवरराइड करता है।
--name—इस रजिस्ट्री के लिए वैकल्पिक अनुकूल एलियास। होस्ट ही पहचान रहता है; जहाँ भी किसी रजिस्ट्री का नाम लिया जाता है (उदा. —registry), एलियास उसी पर रिज़ॉल्व होता है। सभी रजिस्ट्रियों में अद्वितीय होना चाहिए।
--require-signaturesfalseइस रजिस्ट्री से पुल किए गए (और उस पर पुश किए गए) हर आर्टिफ़ैक्ट पर हस्ताक्षर आवश्यक करें
--trusted-root—एयर-गैप्ड कीलेस सत्यापन के लिए पिन किए गए Sigstore ट्रस्ट-रूट बंडल का पाथ
--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 — जहाँ संस्करण का हस्ताक्षर कीलेस है और रजिस्ट्री की ट्रस्ट पॉलिसी के विरुद्ध सत्यापित होता है, वहाँ वह समय जब ट्रांसपेरेंसी लॉग ने उस हस्ताक्षर को दर्ज किया, जिसे लॉग का हस्ताक्षरित वादा प्रमाणित करता है। जहाँ संस्करण के कई हस्ताक्षर सत्यापित होते हैं, वहाँ यह उनके समयों में सबसे पहला होता है, और संस्करण के लिए दर्ज हस्ताक्षरकर्ता उसी हस्ताक्षर का होता है — रजिस्ट्री हस्ताक्षरों को चाहे जिस क्रम में सूचीबद्ध करे — इसलिए फिर से हस्ताक्षरित संस्करण अपनी तिथि और अपना हस्ताक्षरकर्ता बनाए रखता है। प्रकाशित होते समय हस्ताक्षरित संस्करण के लिए, यह उसका प्रकाशन है; जिस पर पहली बार बाद में aggrega sign से हस्ताक्षर हुआ, उसके लिए यह वह समय है जब उस पर हस्ताक्षर हुआ। जहाँ भी यह स्रोत मौजूद है, वहाँ यही मान्य होता है।
  • publisher — अन्यथा, वह समय जो प्रकाशन ने अपनी प्रकाशित सामग्री के बगल में बताया: एक छोटा published-at अटैचमेंट जिसे aggrega push और aggrega push-artifact प्रकाशित करने वाली मशीन की अपनी घड़ी के साथ लिखते हैं, जिसे कुछ भी प्रमाणित नहीं करता। इसे किसी भी रजिस्ट्री से पढ़ा जाता है, उसकी ट्रस्ट पॉलिसी चाहे जो हो, क्योंकि यह ट्रस्ट निर्णय नहीं बल्कि प्रकाशक का कथन है। जहाँ कई अटैच हैं, वहाँ सबसे पहला लिया जाता है।

जिस संस्करण के पास इनमें से कोई नहीं है वह कोई तिथि दर्ज नहीं करता। ऐसा वह प्रकाशन होता है जिसने कोई तिथि नहीं बताई, जहाँ उसका हस्ताक्षर ऐसा कीलेस हस्ताक्षर नहीं है जिसे यह पॉलिसी सत्यापित करती है — उदाहरण के लिए, ऐसी पॉलिसी के अंतर्गत पढ़ा गया कीलेस प्रकाशन जो किसी कीलेस आइडेंटिटी पर भरोसा नहीं करती, क्योंकि कीलेस प्रकाशन अपनी कोई तिथि नहीं बताता। aggrega search -o json तिथि को हर संस्करण के अंतर्गत published में रिपोर्ट करता है।

रीफ़्रेश दोबारा क्या पढ़ता है

रीफ़्रेश इसकी तुलना करता है कि रजिस्ट्री अभी क्या परोसती है और इंडेक्स ने क्या दर्ज किया था, और जो कुछ बदला उसे दोबारा पढ़ता है — वही उत्तर जो पूरा पुनः-पठन देता है। हर रिपॉज़िटरी के लिए यह:

  • टैग सूची को पुनः-सत्यापित करता है, ताकि तब से प्रकाशित या हटाया गया संस्करण पकड़ में आ जाए;
  • हर संस्करण के टैग को उस मैनिफ़ेस्ट पर रिज़ॉल्व करता है जिसका वह नाम लेता है, ताकि अपने मौजूदा टैग के अंतर्गत फिर से प्रकाशित पुराना संस्करण दोबारा पढ़ा जाए;
  • हर संस्करण के अटैचमेंट — उसके हस्ताक्षर, उसके प्रकाशन-तिथि कथन और उसके डिप्रिकेशन चिह्न — पुनः-सत्यापित करता है, ताकि तब से किसी संस्करण पर अटैच किया गया हस्ताक्षर, तिथि या चिह्न पढ़ा और सत्यापित हो, और किसी ऐसे डिप्रिकेशन चिह्न के हस्ताक्षरों के लिए भी यही करता है जिसे उसने पहले परखा था;
  • रजिस्ट्री की ट्रस्ट पॉलिसी की तुलना उस पॉलिसी से करता है जिसके अंतर्गत इंडेक्स बनाया गया था, ताकि पॉलिसी में बदलाव होने पर हर संस्करण नई पॉलिसी के अंतर्गत दोबारा पढ़ा जाए।

डिप्रिकेशन चिह्न, हस्ताक्षर और प्रकाशन तिथि, हर एक किसी प्रकाशित संस्करण पर उसकी ओर वापस इंगित करने वाले एक अलग ऑब्जेक्ट के रूप में अटैच होता है — यही प्रकाशक को किसी संस्करण को फिर से प्रकाशित किए बिना उसे डिप्रिकेट करने या उस पर हस्ताक्षर करने देता है — इसलिए इनमें से कोई भी न टैग जोड़ता है न संस्करण का अपना मैनिफ़ेस्ट बदलता है। वे संस्करण के अटैचमेंट बदलते हैं, और तीसरी जाँच इसी को पुनः-सत्यापित करती है। संस्करण बहिष्करण और aggrega inspect दोनों यही इंडेक्स पढ़ते हैं, इसलिए पिछले रीफ़्रेश के बाद वापस लिया गया संस्करण अगला रीफ़्रेश चल जाने पर चयन से बाहर कर दिया जाता है, और दिखाया जाता है।

हर जाँच एक छोटा अनुरोध है — मैनिफ़ेस्ट डाइजेस्ट का रिज़ॉल्व, या एक सशर्त अनुरोध जिसका उत्तर रजिस्ट्री कुछ भेजे बिना अपरिवर्तित के रूप में देती है — इसलिए अपरिवर्तित रजिस्ट्री का रीफ़्रेश कुछ भी डाउनलोड नहीं करता। जो संस्करण ऐसा डिप्रिकेशन चिह्न रखता है जिसे मान्यता नहीं मिली, या जिसके अटैचमेंट को पुनः-सत्यापित करने का इस रन को कोई तरीका नहीं मिला, वह अगले रीफ़्रेश पर दोबारा पढ़ा जाता है। जो रजिस्ट्री यह नहीं बता सकती कि किसी संस्करण के अटैचमेंट बदले या नहीं, उसका हर संस्करण हर रीफ़्रेश पर दोबारा पढ़ा जाता है: उत्तर वही होता है, और पूरे पुनः-पठन की लागत भी वही।

--upgrade हर रिपॉज़िटरी को पूरा पढ़ता है, पहले से लिखे गए इंडेक्स से किसी चीज़ की तुलना किए बिना। केवल रजिस्ट्री से इंडेक्स फिर से बनाने के लिए इसका उपयोग करें; यह ऐसा कुछ नहीं पकड़ता जो रीफ़्रेश से छूट जाए।

धीमा होने के लिए कहने वाली रजिस्ट्री

आधिकारिक हब, hub.aggrega.ai, सीमित करता है कि एक पते से थोड़े समय में कितने अनुरोध आ सकते हैं, इसलिए एक पता साझा करने वाली मशीनें वह भत्ता साझा करती हैं, और कोई भी रजिस्ट्री अपने क्लाइंट को इसी तरह सीमित कर सकती है। अपनी सीमा पार कर चुकी रजिस्ट्री 429 Too Many Requests से, या प्रतीक्षा कितनी देर करनी है यह बताने वाले Retry-After हेडर के साथ 503 Service Unavailable से उत्तर देती है। कमांड लाइन किसी रजिस्ट्री को जो भी अनुरोध भेजती है, कमांड चाहे जो हो, वह उस उत्तर का सामना एक ही तरह करता है: वह उतनी देर प्रतीक्षा करता है जितनी रजिस्ट्री ने कही, या जहाँ उत्तर यह नहीं बताता वहाँ दस सेकंड, साथ में यादृच्छिक रूप से अधिकतम एक सेकंड और, और फिर दोबारा पूछता है, बिना किसी निश्चित प्रयास-संख्या के। उस रजिस्ट्री को जाने वाला हर अनुरोध उसके साथ प्रतीक्षा करता है, केवल अस्वीकार किया गया अनुरोध नहीं, और उसे एक साथ कम अनुरोध भेजे जाते हैं — हर बार उसके कहने पर आधे, एक तक — और बिना विफलता के परोसे गए अनुरोधों की हर शृंखला के बाद एक-एक करके फिर बढ़ते हैं, कमांड की सामान्य संख्या तक। प्रतीक्षा कमांड की बाकी प्रगति की तरह ही दिखाई जाती है, 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: के अंतर्गत लेता है, और रजिस्ट्री वही इंडेक्स बनाए रखती है जो रन से पहले उसके पास था।

विफल होने वाला रीड

एक ट्रैवर्सल किसी रजिस्ट्री से कई छोटे ऑब्जेक्ट पढ़ता है, और कुछ रीड बीच में विफल हो जाते हैं: रजिस्ट्री उत्तर देती है कि वह विफल हुई या अनुपलब्ध है (एक 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 serve का aggrega/registryUpdate मेथड हर होस्ट के skipped के अंतर्गत वही रिपॉज़िटरियाँ, हर एक उसी reason के साथ, और दोबारा माँगे गए रीड की गिनती readsRetried के रूप में देकर उत्तर देता है। यही रीफ़्रेश और --upgrade के लिए भी लागू होता है, और अगला ट्रैवर्सल उसी से शुरू होता है जो इंडेक्स के पास तब होता है, जैसा किसी भी रिपॉज़िटरी के लिए होता है।

कुंजी-आधारित पॉलिसी द्वारा पिन की गई पब्लिक की

कुंजी-आधारित ट्रस्ट पॉलिसी रजिस्ट्री की पब्लिक की को इनलाइन, प्रविष्टि के 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 फ़ेच न करने को न कहें। ऑफ़लाइन मोड में वह फ़ेच कुछ भी डायल होने से पहले अस्वीकार कर दिया जाता है, इसलिए रजिस्ट्री से कभी पूछा नहीं जाता। तब आधिकारिक हब के अलावा किसी अन्य रजिस्ट्री को जोड़ना अस्वीकार कर दिया जाता है — रजिस्ट्री जोड़ना ही वह एकमात्र क्षण है जब उसका ट्रस्ट पिन होता है, और पॉलिसी के बिना लिखी गई प्रविष्टि किसी पर भरोसा नहीं करती जबकि हर बाद का पुल रजिस्ट्री को उसी पर परखता। अस्वीकृति शॉर्ट कोड E0310 रखती है और आगे बढ़ने के दोनों रास्तों का नाम लेती है: ऑनलाइन रहते हुए उसे एक बार पंजीकृत करें, जिसकी अनुमति --offline=false एक रन के लिए देता है, या --identity या --key से पॉलिसी को हाथ से पिन करें, जो ठीक वही पंजीकृत करता है जो आप देते हैं और कोई फ़ेच नहीं करता। आधिकारिक हब को उसकी अंतर्निहित आधार-रेखा पर जोड़ा जाता है, एक सूचना के साथ जो बताती है कि हब से उसकी ट्रस्ट पॉलिसी नहीं माँगी गई क्योंकि वर्कस्पेस ऑफ़लाइन है और इसके बजाय आधार-रेखा का उपयोग होता है, और --fetch-trust=false प्रविष्टि को उसके फ़्लैग से ठीक वैसे ही पंजीकृत करता है जैसे ऑनलाइन करता है। aggrega serve या aggrega mcp के ज़रिए किया गया वही पंजीकरण उसी तरह व्यवहार करता है: उन्हीं शब्दों में वही अस्वीकृति, और अन्यथा वही प्रविष्टि। A registry is added offline with no trust policy to pin (रजिस्ट्री ऑफ़लाइन जोड़ी गई है और पिन करने के लिए कोई ट्रस्ट पॉलिसी नहीं है) अस्वीकृति को उद्धृत करता है।

list और remove लोकल कॉन्फ़िगरेशन बदलते या पढ़ते हैं और अप्रभावित रहते हैं।