feat(dev-bootstrap): auto-materialize INTERLACE_ROOT_PUBKEY via signet authority pubkey#69
Merged
Conversation
…T_PUBKEY via signet authority pubkey
Extends scripts/dev-bootstrap.mjs to populate INTERLACE_ROOT_PUBKEY in
.env.local from `signet authority pubkey` — the new subcommand shipped
in signet-PR #131 that emits the master Ed25519 public key as base64.
Before this, populating INTERLACE_ROOT_PUBKEY required: start an
authority somehow, hand-fetch /.well-known/ca-bundle.pem, openssl
x509 -pubkey -noout, parse the PEM, base64-encode the raw 32 bytes,
paste into .env.local. Four shell-foo steps that weren't documented
anywhere; a developer described the wiring as "unclear how / where /
what's needed tbh."
Now it's one command:
task dev:bootstrap
The script:
1. Runs `signet authority pubkey` (local keystore mode), or
`signet authority pubkey --url $SIGNET_AUTHORITY_URL` when the
env var is set (for fetching from a running authority — local Go
binary or remote notme worker).
2. Writes the result to INTERLACE_ROOT_PUBKEY in .env.local.
3. Idempotent: existing values are kept on re-runs.
INTERLACE_PUBKEY_REFRESH=1 forces a re-fetch.
4. If signet isn't on PATH, skips gracefully with a hint pointing
at signet-repo `task install`. Lease gate stays off (dev mode);
this is supported.
## Knobs
SIGNET_BIN=signet # override binary name/path
SIGNET_AUTHORITY_URL=https://auth.notme.bot # fetch from running authority instead of local keystore
INTERLACE_PUBKEY_REFRESH=1 # force re-fetch even if already set
## Outcomes tested (manual dogfood)
TEST 1 (signet not on PATH): graceful skip, install hint, gate stays off
TEST 2 (fresh fetch): pubkey materialized; matches `signet authority pubkey` stdout byte-for-byte (incl. trailing base64 '=' padding)
TEST 3 (idempotent): second run reuses existing INTERLACE_ROOT_PUBKEY
TEST 4 (refresh flag): INTERLACE_PUBKEY_REFRESH=1 forces re-fetch
## Test plan
- [x] Manual dogfood of all 4 scenarios above
- [x] `task lint` clean (71 files, 1122 tests pass) — script-only change
Companion to signet-PR #131 (signet authority pubkey subcommand).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Extends `scripts/dev-bootstrap.mjs` to populate `INTERLACE_ROOT_PUBKEY` in `.env.local` from `signet authority pubkey` — the new subcommand shipped in signet#131.
Before this PR, populating `INTERLACE_ROOT_PUBKEY` required:
A developer described the wiring as "unclear how / where / what's needed tbh." This PR closes that —
task dev:bootstrapnow does it.What changes
`scripts/dev-bootstrap.mjs` (+88 / -1):
Knobs
Outcomes tested (manual dogfood)
Test plan
Companion
signet#131 — `signet authority pubkey` subcommand (merged 2026-05-19).
🤖 Generated with Claude Code