aggrega registry
إدارة registries وسياسة الثقة في التوقيعات الخاصة بها
الصيغة العامة
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 | سجِّل registry وسياسة ثقة التوقيع الخاصة به |
aggrega registry list | اسرد registries المكوَّنة وموقف الثقة فيها |
aggrega registry remove | أزل registry وسياسة ثقته من ملف تكوين |
aggrega registry update | ابنِ الفهرس المحلي القابل للبحث عن registries المكوَّنة |
وصف 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 | اخفض إخفاقات التحقق لهذا registry إلى تحذيرات بدلًا من التوقف |
--fetch-trust | true | اجلب سياسة الثقة التي يعلنها registry وثبّتها عند أول استخدام. استخدم —fetch-trust=false لتخطي ذلك؛ كما يتخطى الجلب تحديد —identity/—key يدويًا. |
--global | false | اكتب الإدخال في التكوين العام المشترك بين كل مساحات العمل. يُكتب registry هنا افتراضيًا. |
--identity | [] | هوية موثوقة للتوقيع بلا مفتاح بصيغة identity=issuer، مثل dev@example.com=https://accounts.google.com (قابلة للتكرار؛ مجموعة OR). تتجاوز سياسة الثقة المجلوبة. |
--key | — | مسار PEM مفتاح عام مثبَّت متوافق مع cosign للتحقق بمفتاح. يتجاوز سياسة الثقة المجلوبة. |
--name | — | اسم مستعار ودّي اختياري لهذا registry. يظل المضيف هو الهوية؛ ويحل الاسم المستعار إليه حيث يُسمّى registry (مثل —registry). يجب أن يكون فريدًا بين registries. |
--require-signatures | false | اشترط توقيعًا على كل مُخرَج يجري عليه pull من هذا registry (و push إليه) |
--trusted-root | — | مسار حزمة جذر ثقة Sigstore مثبَّتة للتحقق بلا مفتاح في بيئة معزولة عن الشبكة |
--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 | صيغة الإخراج: table|json. |
وصف 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 registry، يقرأ وسوم الإهمال الخاصة بكل إصدار مطروح ويسجل في الفهرس المحلي ما يستطيع التحقق من صحته. ويبلغ عن نتيجة ذلك الفحص في كل مسار، فيتميّز registry لم يطرح أي وسم عن تشغيل لم يبحث عن واحد.
يُصدر كل وسم يقرؤه الاجتياز سطرًا واحدًا يسمّي المستودع والإصدار ومستوى الخطورة الذي سجّله الطارح — warning أو error أو retracted — مع بيان ما إذا سُجّل الوسم. يُحتفظ بالإصدار الذي لم تتغير إرفاقاته منذ آخر تحديث كما هو مسجَّل بدلًا من قراءته، فلا يُبلغ عن وسمه مرة أخرى؛ ويظل العدد أدناه يشمله. لا يُسجَّل الوسم إلا حين يتحقق توقيعه نفسه من الموقِّعين الذين تقبلهم سياسة ثقة registry. أما وسم موجود لكن لا يُفك ترميزه، أو موجود لكنه غير مقبول، فيُبلغ عنه على هذا النحو ويُترك خارج الفهرس بدلًا من تسجيله على دليل لم يمكن التحقق منه — وكذلك الوسم الذي يجيب registry بأنه لا يحتفظ به. أما الوسم الذي فشلت قراءته فحالة مختلفة: انظر قراءة تفشل.
ثم يبلغ كل registry بعدد الوسوم التي يسجلها فهرسه الآن، بما في ذلك حين يكون العدد صفرًا. وحيث يكون التحقق من التوقيع معطّلًا — عامًّا أو لذلك registry وحده — يبلغ الاجتياز بدلًا من ذلك بأن الوسوم لم تُفحص له. الحقيقتان مختلفتان: الأولى تقول إن registry لم يطرح شيئًا تستطيع مساحة العمل هذه التصرف بناءً عليه، والثانية تقول إن هذا التشغيل لم يكن لديه أساس ثقة يحكم به على وسم أصلًا. لا يسهم registry لم تُفحص وسومه بأي سحب في اختيار الإصدار، فالمؤلف الذي أرفق وسمًا ويرى ذلك السطر يعرف لماذا لا أثر له.
تاريخ الطرح الذي يسجله كل إصدار
وقت إنشاء بيان مطروح مثبَّت، فيعتمد ملخّصه على ما يُطرح وحده ولا يعتمد أبدًا على وقت طرحه. لذلك يُقرأ تاريخ طرح الإصدار من بجوار البيان، ويسجله aggrega registry update لكل إصدار مع المصدر الذي جاء منه:
transparency-log— حيث يكون توقيع الإصدار بلا مفتاح ويتحقق مقابل سياسة ثقة registry، يكون الوقت الذي سجّله سجل الشفافية لذلك التوقيع، وهو ما يشهد به وعد السجل الموقَّع. وحيث يتحقق عدة توقيعات للإصدار، يكون أبكر أوقاتها، ويكون الموقِّع المسجَّل للإصدار هو موقِّع ذلك التوقيع نفسه — أيًّا كان الترتيب الذي يسرد به registry التوقيعات — فيحتفظ الإصدار الموقَّع مرة أخرى بتاريخه وبموقِّعه. وبالنسبة إلى إصدار وُقِّع أثناء طرحه، هذا هو طرحه؛ وبالنسبة إلى إصدار وُقِّع أول مرة بعد ذلك بواسطةaggrega sign، هو وقت توقيعه. هذا المصدر هو الغالب أينما وُجد.publisher— وإلا، فهو الوقت الذي ذكره الطرح بجوار ما طرحه: إرفاق published-at صغير يكتبهaggrega pushوaggrega push-artifactيحمل ساعة الجهاز الذي يطرح، ولا يشهد به أي شيء. يُقرأ من أي registry أيًّا كانت سياسة ثقته، لأنه إفادة الطارح لا قرار ثقة. وحيث يُرفق عدة منها، يؤخذ أبكرها.
الإصدار الذي لا يملك أيًّا منهما لا يسجل تاريخًا. وهذا طرح لم يذكر أي تاريخ، حيث لا يكون توقيعه بلا مفتاح تتحقق منه هذه السياسة — مثل طرح بلا مفتاح يُقرأ تحت سياسة لا تثق بأي هوية بلا مفتاح، إذ لا يذكر الطرح بلا مفتاح تاريخًا خاصًا به. يبلغ aggrega search -o json عن التاريخ تحت كل إصدار في published.
ما يعيد التحديث قراءته
يقارن التحديث ما يقدّمه registry الآن بما سجّله الفهرس، ويعيد قراءة كل ما تغيّر — وهي الإجابة نفسها التي تعطيها إعادة قراءة كاملة. وفي كل مستودع، يقوم بما يلي:
- يعيد التحقق من قائمة tags، فيُلتقط إصدار طُرح أو حُذف منذ ذلك الحين؛
- يحل tag كل إصدار إلى البيان الذي يسمّيه، فيُقرأ مرة أخرى إصدار أقدم طُرح من جديد تحت tag الموجود له؛
- يعيد التحقق من إرفاقات كل إصدار — توقيعاته وإفادات تاريخ طرحه ووسوم إهماله — فيُقرأ ويُتحقق من توقيع أو تاريخ أو وسم أُرفق بإصدار منذ ذلك الحين، ويفعل الشيء نفسه لتوقيعات وسم إهمال حكم عليه من قبل؛
- يقارن سياسة ثقة registry بالسياسة التي بُني الفهرس تحتها، فيؤدي تغيير في السياسة إلى قراءة كل إصدار مرة أخرى تحت السياسة الجديدة.
يُرفق كلٌّ من وسم الإهمال والتوقيع وتاريخ الطرح بإصدار مطروح ككائن منفصل يشير إليه — وهذا ما يتيح للطارح إهمال إصدار أو توقيعه من دون طرحه مرة أخرى — فلا يضيف أي منها tag ولا يغيّر بيان الإصدار نفسه. هي تغيّر إرفاقات الإصدار، وهذا ما يعيد الفحص الثالث التحقق منه. يقرأ استبعاد الإصدارات و aggrega inspect كلاهما هذا الفهرس، فيُستبعد من الاختيار إصدار سُحب منذ آخر تحديث، ويُعرض، بعد تشغيل التحديث التالي.
كل فحص طلب صغير — حل ملخّص بيان، أو طلب مشروط يجيب عنه registry بأنه لم يتغير دون إرسال أي شيء — فلا ينزّل تحديث registry لم يتغير شيئًا. يُقرأ مرة أخرى في التحديث التالي الإصدار الذي يحمل وسم إهمال لم يُقبل، أو الذي لم يتوافر لهذا التشغيل سبيل لإعادة التحقق من إرفاقاته. أما registry لا يستطيع القول إن كانت إرفاقات إصدار قد تغيرت فيُقرأ كل إصدار فيه مرة أخرى في كل تحديث: الإجابة هي نفسها، وكذلك كلفة إعادة قراءة كاملة.
يقرأ --upgrade كل مستودع كاملًا، من دون مقارنة أي شيء بالفهرس المكتوب بالفعل. استخدمه لإعادة بناء فهرس من registry وحده؛ ولا يلتقط شيئًا يفوت التحديث.
registry يطلب التباطؤ
يحدّ hub الرسمي، hub.aggrega.ai، عدد الطلبات التي يمكن أن تأتي من عنوان واحد في مدة قصيرة، فتتشارك الأجهزة التي تتقاسم عنوانًا ذلك الحد، وقد يحدّ أي registry عملاءه بالطريقة نفسها. يجيب registry تجاوز حدّه بالحالة 429 Too Many Requests، أو 503 Service Unavailable مع ترويسة Retry-After تبيّن مدة الانتظار. يقابل كل طلب يجريه سطر الأوامر إلى registry، أيًّا كان الأمر، تلك الإجابة بالطريقة نفسها: ينتظر بقدر ما طلبه registry، أو عشر ثوانٍ حيث لا تذكر الإجابة، مضافًا إليها ما يصل إلى ثانية أخرى عشوائيًا، ثم يسأل مرة أخرى، بلا عدد ثابت من المحاولات. وينتظر معه كل طلب إلى ذلك registry، لا الطلب المرفوض وحده، ويُرسل إليه عدد أقل منها دفعة واحدة — نصفها في كل مرة يطلب فيها ذلك، حتى واحد — ثم يرتفع مرة أخرى بواحد بعد كل سلسلة طلبات يخدمها دون إخفاق، عودةً إلى العدد المعتاد للأمر. ويُعرض الانتظار بالشروط نفسها التي يُعرض بها باقي تقدّم الأمر، كسطر مثل hub.aggrega.ai asked to slow down; waiting 11 s: يعرضه aggrega build و aggrega pull و aggrega registry update بجوار الخطوة الجارية، وتعرضه الأوامر الأخرى التي تعرض ما تنتظره كخطوة مستقلة — عدا aggrega sign --jobs الذي يوقّع عدة مراجع دفعة واحدة، فيعرضها كخطوة واحدة — ولا يُعرض شيء حيث لا يكون الخطأ القياسي طرفية ما لم يطلب --progress الخاص بالأمر ذلك. ويُرفض registry لا يجيب بغير «تباطأ» خمس دقائق تحت E0378، مسمّيًا registry وآخر إجابة له ومدة إجابته بغير ذلك؛ والدقائق الخمس ثابتة، ولا يغيّرها أي إعداد. ثم يسمّي aggrega registry update ذلك registry تحت Not indexed: في ملخصه الختامي، ويحتفظ registry بالفهرس الذي كان لديه قبل التشغيل.
قراءة تفشل
يقرأ الاجتياز كثيرًا من الكائنات الصغيرة من registry، وبعض القراءات يفشل عرضًا: يجيب registry بأنه فشل أو غير متاح (حالة 5xx، عدا 503 يذكر مدة الانتظار) أو بأن الطلب انتهت مهلته (408)، أو يُعاد ضبط الاتصال أو تنتهي مهلته، أو تتوقف إجابة قبل اكتمالها. تُطلب كل قراءة كهذه مرة أخرى بضع مرات، بانتظار متزايد بين المحاولات. لا يفشل registry يطلب من الاجتياز التباطؤ في قراءة: تنتظر القراءة وتُطلب مرة أخرى كما يصفه registry يطلب التباطؤ، و registry الذي يظل يطلب خمس دقائق ينهي اجتياز ذلك registry لا اجتياز مستودع واحد.
القراءة التي لا تزال تفشل لا تُؤخذ إجابة أبدًا. التوقيع الذي تعذّرت قراءته ليس إصدارًا بلا توقيع، ووسم الإهمال الذي تعذّرت قراءته ليس إصدارًا لم يُسحب قط، فلا يسجل الاجتياز شيئًا عن ذلك المستودع من هذا التشغيل. يحتفظ المستودع بالإدخال الذي يحتفظ به الفهرس له، حيث حُكم على ذلك الإدخال تحت سياسة ثقة registry السارية الآن، وإلا يُترك خارج الفهرس. وفي الحالتين يسمّي الاجتياز المستودع في تعليقه الجاري، قائلًا أيًّا من الأمرين حدث وأي قراءة فشلت، ويسمّيه مرة أخرى في ملخصه الختامي، في سطر خاص به تحت صف registry الخاص به، بين المستودعات التي تعذّرت قراءتها:
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: …يذكر صف registry أيضًا عدد القراءات التي طُلبت مرة أخرى، وتُحسب كل قراءة مرة واحدة مهما بلغ عدد محاولاتها وسواء نجحت بعد ذلك أم لا، ويقول 0 reads retried حين لا توجد أي منها. الاجتياز الذي نجحت كل قراءاته في النهاية لا يُظهر أي مستودع في صفه، فهذا العدد هو ما يقول إلى أي مدى اقترب من إسقاط واحد.
يبدأ كل سطر كهذا بنوع آخر إخفاق للقراءة — الحالة التي أجاب بها registry، أو قراءة انتهت مهلتها، أو اتصال أُعيد ضبطه، أو إجابة قُطعت — يليه الإخفاق نفسه، الذي يقول أي قراءة كانت. أما إخفاق من غير هذه الأنواع، مثل جذر ثقة تعذّر الحصول عليه للتحقق من توقيع مقابله، فيُعطى الإخفاق وحده. تجيب الطريقة aggrega/registryUpdate في aggrega serve بالمستودعات نفسها تحت skipped الخاص بكل مضيف، ولكل منها reason نفسه، وبعدد القراءات التي طُلبت مرة أخرى باسم readsRetried. وينطبق الشيء نفسه على التحديث وعلى --upgrade، ويبدأ الاجتياز التالي مما يحتفظ به الفهرس حينها، كما يفعل لأي مستودع.
المفتاح العام الذي تثبّته سياسة مفتاحية
تثبّت سياسة ثقة مفتاحية المفتاح العام الذي يخص registry مضمّنًا، بوصفه public_key في الإدخال: يَنسخ aggrega registry add --key <file> محتويات الملف إلى هناك، وكذلك يفعل تثبيت سياسة يعلنها registry بمفتاح فيها. القيمة كتلة مفتاح عام PEM — النص من سطر -----BEGIN PUBLIC KEY-----، أو -----BEGIN RSA PUBLIC KEY-----، إلى سطر -----END المطابق له — ويُتجاهل أي نص فوق الكتلة.
القيمة التي لا تحمل أي سطر -----BEGIN … PUBLIC KEY----- تُرفض عند تحميل ملف التكوين، مسمّيةً الملف والإدخال. ويجري registry add الفحص نفسه قبل أن يكتب، فيُرفض ملف --key يحمل أي شيء آخر — مفتاحًا خاصًا أو شهادة أو مفتاحًا بترميز آخر — ويُترك ملف التكوين كما كان. يُفحص ذلك السطر وحده: وما إذا كانت الكتلة تُفك ترميزها إلى مفتاح صالح للاستخدام يُعرف عند التحقق من توقيع من registry مقابلها.
وضع عدم الاتصال
aggrega registry update هو الأمر الوحيد في هذه المجموعة الذي يتمثل عمله كله في اجتياز registries، وفي وضع عدم الاتصال — المفتاح offline ذو المستوى الأعلى في ملف تكوين، أو AGGREGA_OFFLINE، أو --offline — يرفض قبل أن يجتاز أي شيء. يسمّي الرفض أيًّا من الثلاثة ضبط الوضع.
لا يوجد شكل جزئي يُرجَع إليه، لأن الفهرس يسجل ما يقدّمه كل registry حاليًا وهذا لا يُعرف دون سؤال أحدها. ما تستطيع مساحة عمل غير متصلة فعله هو قراءة الفهرس الذي لديها بالفعل: يقرأ aggrega search وإشعار الإهمال في aggrega inspect اللقطة المحلية معًا ولا يحتاجان إلى أي شبكة، فالتحديث هو الشيء الوحيد الذي يسلبه الوضع. لتحديث تشغيل واحد من مساحة عمل غير متصلة، مرِّر --offline=false.
يصل aggrega registry add إلى الشبكة مرة واحدة، من أجل سياسة الثقة التي يعلنها registry، ما لم يقل --fetch-trust=false أو --identity أو --key عدم الجلب. في وضع عدم الاتصال يُرفض ذلك الجلب قبل أن يُجرى أي اتصال، فلا يُسأل registry أبدًا. وعندئذ تُرفض إضافة registry غير hub الرسمي — فإضافة registry هي اللحظة الوحيدة التي تُثبَّت فيها ثقته، وإدخال يُكتب من دون السياسة لن يثق بشيء بينما يحمّل كل pull لاحق registry عليها. يحمل الرفض الرمز القصير 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 (إضافة registry دون اتصال وبلا سياسة ثقة لتثبيتها) نص الرفض.
list و remove يغيّران التكوين المحلي أو يقرآنه ولا يتأثران.