Skip to content

Generated auth/admin host registration mode disagrees with route project #63

Closed

Description

@jimhoyd

Packed-install verification found that auth/admin initialization generates registration: off in route YAML but the operator service omitted registrationMode, whose default is open. Activation correctly rejects the mismatch, so a generated site could not start.

Fix: generate explicit registrationMode: 'off' in the operator service. Add a regression that imports the generated service and activates the matching auth extension, then verify the installed tarball starter end to end. Implementation is in urlcode-auth PR #1 and also fixes the admin initializer, which composes it.

Activity

  1. jimhoyd commented on Sep 18, 2026

    @jimhoyd
    CollaboratorAuthor

    Verified fixed on jimhoyd-com/urlcode-auth@1e4b6be (auth PR #1, merged).

    • src/scaffold.ts:38 generates registrationMode: 'off' explicitly in the operator service, so it no longer relies on the open default while the route YAML says registration: 'off'.
    • test/scaffold.test.ts:16 asserts the generated YAML carries registration: 'off', and line 40 imports the generated operator service and activates the matching auth extension against it — the end-to-end regression this issue asked for.
    • src/auth.ts:67-68 still rejects a mismatch, so the guard that caught this is intact rather than relaxed.

    The admin initializer composes the same service, and urlcode-admin's verification workflow now passes on Node 22/24/26 (run 35295649183).

    Closing as completed.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions