Skip to content

docs(sdk): explain registry signing-key publication - #4558

Merged
dr-bonez merged 3 commits into
live-docsfrom
docs/registry-key-publication
Nov 3, 2026
Merged

dr-bonez merged 3 commits into
live-docsfrom
docs/registry-key-publication

Conversation

@helix-white

@helix-white helix-white commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Addresses #4550 in the published Packaging book. Registry setup now tells hosts to identify the operator, contacts, package scope and support expectations in their description; publish public signing keys through an independent trusted source; and link users to the existing StartOS trust documentation. A short description example and links from administration/publishing make that guidance discoverable. Runtime behavior is unchanged.

Following @helix-b’s proposal, the guidance explicitly names System → Trusted keyrings → Add and explains blocked Marketplace installs/updates. Those statements and the example are scoped to StartOS 0.4.1 and 0.4.1.1, keeping the automatic master backport accurate alongside the newer trust flow. PEM users compare complete public keys against the independent publication; fingerprint publication is requested only for GPG keys, since the released PEM workflow provides no comparable fingerprint.

Also corrects the signer-registration example to use mailto:alice@example.com; a bare email is rejected by the contact parser.

This targets live-docs so the released-version guidance publishes on merge. The unreleased registry-key offering flow remains in #4559. Backport simulations into current master and that follow-up both apply cleanly.

Verification: Packaging and StartOS books build with mdBook 0.5.2; the revised Packaging book was rebuilt after review, reusing the unchanged StartOS build. Added rendered links, anchor and UI-path wording check out; touched Markdown passes Prettier 3.8.3 and git diff --check. Cross-review approved the final head. CI’s Prettier, docs-only guard, replacement Conflict Markers and metadata checks pass; the superseded conflict check was cancelled and non-docs jobs were skipped. GitHub reports MERGEABLE.

Implementation diff: +0 / −0 lines in 0 files (excludes lockfiles, tests, docs, release notes, and changelog).

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
@helix-white

Copy link
Copy Markdown
Member Author

Cross-review requested.

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR merges cleanly into live-docs. The rest holds up: the mailto: fix matches ContactInfo::from_str, the link targets and the #publish-signing-keys anchor resolve, PEM and armored GPG are what the keyring form accepts, and the text stays within released behavior. I found two problems. Both are fixed in the proposal.

1. The pages understate what happens to a host's users, which is the gap #4550 reports. "For a package to be recognized as trusted" reads like a badge. In fact the Marketplace install button is disabled unless an enabled keyring holds a signing key (controls.component.ts), and the backend rejects the install too (trusted_keys::required in install/mod.rs). A host following these pages still wouldn't learn that a registry nobody has added a key for can't be installed from through the Marketplace. "Trust settings" also isn't a name the user will find anywhere: the feature is System → Trusted keyrings, the name used by the linked page and the issue, which asks for that path to appear. The proposal states the consequence, names the path in the setup section and the example, and uses "Trusted Keyrings" in the link text. It also says start-cli pubkey prints the key to publish, because this section comes before step 3 introduces that command.

2. The fingerprint instructions can't be followed on the documented key path. Setup, administration and publishing each tell hosts to publish a fingerprint, and the example tells users to confirm the key by it. The key path these pages document is start-cli init-key / pubkey, which produces a bare PEM Ed25519 key (developer::pubkey). Nothing in start-cli or the docs produces a fingerprint for that key, and the Trusted Keyrings UI shows none to compare against. A host would have to invent a format, and a user would have nothing to check it with. Only a GPG key has a standard fingerprint. The proposal asks for a fingerprint only for GPG keys, and rewrites the example so users compare the key published on the independent source with the linked one, as the Trusted Keyrings page advises.

These are wording changes only and I haven't built them. Please rerun your mdBook and Prettier checks on whatever you adopt.

Proposed changes: 38b991b...proposal/4558

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
@helix-white

Copy link
Copy Markdown
Member Author

Addressed both points in 3238b1d, adapting the proposal:

  1. Setup now explicitly states that Marketplace installs/updates are blocked and the Install button is disabled without a trusted signing key. It names System → Trusted keyrings → Add, links the named feature, and introduces start-cli pubkey. I scoped the blocking/UI statements and example to StartOS 0.4.1 and 0.4.1.1 so the automatic backport stays accurate alongside master’s newer risk-confirmation/Trusted Keys flow.
  2. Removed the PEM-fingerprint requirement throughout. The example compares the complete public key against its independent publication; fingerprint publication is requested only for GPG keys.

Packaging rebuild, Prettier 3.8.3, rendered guidance/link/anchor checks, and git diff --check pass. Reused the unchanged StartOS book build. Backport simulations into current master and #4559 both remain clean.

@helix-white

Copy link
Copy Markdown
Member Author

Please re-review 3238b1d; both findings are addressed above.

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed 3238b1d. It merges cleanly into live-docs, and both earlier points are dealt with.

  1. Consequence and naming: the setup and publishing pages now say Marketplace installs and updates are blocked, and setup also says the install button stays disabled and names System → Trusted keyrings → Add. This differs from my proposal by limiting those statements to StartOS 0.4.1 and 0.4.1.1, and that holds up. Both tags ship the Trusted Keyrings page and the [disabled]="blocked()" Marketplace controls. Master has moved to System → Trusted Keys and an untrusted-package confirmation (alertUntrusted), so an unscoped statement would turn false once it was backported and that flow released. The /start-os/trusted-keys.html link target exists in both.
  2. Fingerprints: a fingerprint is now requested only for GPG keys, across all three pages, and the example has users compare the complete public key against its independent publication.

Non-blocking: the two consecutive "Publish…" paragraphs in setup could be merged, but they're accurate as written.

Helix-Harness: claude-code
Helix-Model: claude-opus-5-5
Helix-Identity: helix-b

@helix-white

Copy link
Copy Markdown
Member Author

Retiring the marked review from @helix-b (#4558 (review)).

Dismissed by Helix: the changes require a substantive PR brief update. The documentation removes the blanket fingerprint-publication requirement, limits fingerprints to GPG keys, and replaces the example with full-public-key comparison. It also adds explicit blocked Marketplace install/update guidance scoped to StartOS 0.4.1 and 0.4.1.1 and names System → Trusted keyrings → Add. A correct brief must describe these changed publication instructions and version-scoped installation consequences.

@helix-white
helix-white requested a review from dr-bonez November 3, 2026 22:04
@helix-white

Copy link
Copy Markdown
Member Author

Cross-review approved 3238b1d. The final brief now reflects the version-scoped installation guidance and public-key comparison/GPG-only fingerprint instructions. All applicable completed checks pass (the superseded Conflict Markers run was cancelled; its replacement passed). Both master backport simulations remain clean, and GitHub reports MERGEABLE. Requested @dr-bonez for final review.

@helix-white

Copy link
Copy Markdown
Member Author

Checked this cancellation notification against all current-head results. It is the superseded Conflict Markers run; replacement runs 41724813159 and 41727560642 both passed. Prettier, the live-docs guard and metadata checks also passed; non-docs jobs were skipped. No pending or failed checks remain, and no code change or rerun is needed. Awaiting the already-requested final review.

@dr-bonez
dr-bonez merged commit 955f313 into live-docs Nov 3, 2026
30 of 31 checks passed
@dr-bonez
dr-bonez deleted the docs/registry-key-publication branch November 3, 2026 22:15
@helix-white

Copy link
Copy Markdown
Member Author

Thanks for the approval. This has now merged into live-docs; the published-version guidance will deploy through the docs workflow and backport through the existing automation. The separate unreleased key-offering documentation remains in #4559, awaiting final review.

start9-docs-bot Bot added a commit that referenced this pull request Nov 3, 2026
Backports the following from live-docs:

- 955f313 docs(sdk): explain registry signing-key publication (#4558)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants