تخطَّ إلى المحتوى
AggregaAggregaAggregaAggrega
اختر لغة: العربية
تُرجمت هذه الصفحة آليًا. اقرأ الأصل الإنجليزي.

aggrega registry

إدارة registries وسياسة الثقة في التوقيعات الخاصة بها

الصيغة العامة

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سجِّل 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 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اخفض إخفاقات التحقق لهذا registry إلى تحذيرات بدلًا من التوقف
--fetch-trusttrueاجلب سياسة الثقة التي يعلنها registry وثبّتها عند أول استخدام. استخدم —fetch-trust=false لتخطي ذلك؛ كما يتخطى الجلب تحديد —identity/—key يدويًا.
--globalfalseاكتب الإدخال في التكوين العام المشترك بين كل مساحات العمل. يُكتب registry هنا افتراضيًا.
--identity[]هوية موثوقة للتوقيع بلا مفتاح بصيغة identity=issuer، مثل dev@example.com=https://accounts.google.com (قابلة للتكرار؛ مجموعة OR). تتجاوز سياسة الثقة المجلوبة.
--key—مسار PEM مفتاح عام مثبَّت متوافق مع cosign للتحقق بمفتاح. يتجاوز سياسة الثقة المجلوبة.
--name—اسم مستعار ودّي اختياري لهذا registry. يظل المضيف هو الهوية؛ ويحل الاسم المستعار إليه حيث يُسمّى registry (مثل —registry). يجب أن يكون فريدًا بين registries.
--require-signaturesfalseاشترط توقيعًا على كل مُخرَج يجري عليه pull من هذا registry (و push إليه)
--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 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 يغيّران التكوين المحلي أو يقرآنه ولا يتأثران.