Skip to content

Spec the box-id as the name the owner chose, with no suffix - #585

Merged
onel merged 4 commits into
devfrom
feat/bare-box-ids
Oct 6, 2026
Merged

onel merged 4 commits into
devfrom
feat/bare-box-ids

Conversation

@onel

@onel onel commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

What

The box-id is now the name the owner chose, used as typed: andrei gives a dashboard at andrei.onmoose.io and apps at <slug>.andrei.onmoose.io. This replaces the <base>-<suffix> shape (cindy-fox). See docs/specs/MOOSE_NETWORK.md # Locked: the box-id is the name the owner chose, and docs/specs/DECISIONS.md 2026-10-06.

  • Rules for a new id: 4–30 characters, ^[a-z0-9]+(-[a-z0-9]+)*$, not reserved, not taken. Nothing is appended or rerolled.
  • Reserved list: it must cover every name that has its own record under the fleet domain, because a bare id sits next to those records.
  • Hold: a destroyed box's name is held for its former owner for one year.
  • Unchanged: older dashed ids stay valid, and a box is still never renamed after enrollment.

Box behavior

No change. The box still treats box_id as an opaque seed field and does not check its shape. This PR is spec, comments and tests only.

Changes

  • Specs: MOOSE_NETWORK.md, FIRST_RUN.md, NEXT.md (allocation scheme resolved) and DECISIONS.md. The example hosts in AUTH.md and SPEC.md are updated too.
  • Comments in internal/profile/seed.go and internal/profile/appurl.go.
  • Bare-id tests: dashboard host, app host and URL, and cert subjects (appurl_test.go), seed parse and round trip (seed_test.go), and cert subject split (caddy_test.go). The dashed-id fixtures are kept as coverage for the older shape.
  • Progress entry docs/progress/bare-box-ids.md.

Checks

make fmt-check, make vet, make openapi-check and make test-nopam pass. make check could not run locally because the PAM cgo build fails on this machine, and it fails the same way on clean dev.

onel added 3 commits October 6, 2026 18:40
The box-id is now the name the owner chose, used as given (andrei), not
a base plus a system-assigned suffix (cindy-fox). The box already used
the id only as an opaque DNS label, so nothing changes in behavior: the
seed still needs a non-empty box_id and the box does not check its shape.

Update the comments in internal/profile that stated the old shape, and
add bare-id cases for the hosted hosts and URLs, the cert subjects, a
seed round trip, the cert-subject split and the forward-auth cookie
domain. The cindy-fox fixtures stay and now cover the older shape.
MOOSE_NETWORK.md replaces the base-plus-curated-suffix section with the
new locked shape: 4 to 30 lowercase letters, digits and single inside
dashes, a reserved list that covers every name with its own record
under the fleet domain, a taken name refused with no reroll, and a
destroyed box's name held for its former owner for one year. Older
dashed ids stay valid, and the box-id is still fixed for the life of
the box.

Bring FIRST_RUN.md Step 5 and the enrollment flow in line, resolve the
box-id allocation item in NEXT.md, record the flip in DECISIONS.md, and
add the progress entry.
@greptile-apps

greptile-apps Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Updates box naming rules and examples throughout docs and tests.

The PR appears safe to merge; no outstanding finding was established.

Reviews (2) · Last reviewed commit: "Scope the name hold's owner exception to..."

Comment thread docs/specs/MOOSE_NETWORK.md Resolved
@onel
onel merged commit 2f581cb into dev Oct 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant