Skip to content

Harden configuration loading, private management and release evidence - #7

Merged
jimhoyd merged 4 commits into
mainfrom
hardening/resource-management-release
Sep 16, 2026
Merged

jimhoyd merged 4 commits into
mainfrom
hardening/resource-management-release

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Problem and behavior

Configuration parsing could block the serving process; management used shared credentials and best-effort logs; operational and release-security gates lacked repeatable evidence.

  • Load YAML in a bounded worker with a 64 MiB aggregate source cap, two-load admission and hard deadline. Add a cooperative host route-compilation deadline.
  • Keep management on literal loopback addresses. Add external per-credential collection/action scopes, expiry and hot revocation; preserve legacy local tokens.
  • Commit redacted mutation audit rows atomically with SQLite changes. Audit failures roll back the mutation and revision; document archival and rollback compatibility.
  • Add mixed-HTTP, backup/restore, configuration rollback and disposable disk-full/recovery drills to CI.
  • Define an independent sandbox review package and a manual main-only signed alpha-candidate/SBOM workflow using pinned build inputs. No license choice or registry publication.

Validation

  • npm run verify: 98 tests pass, lint/syntax/schema-reference checks pass.
  • npm run test:package: packed install and starter/cookbook/live-link checks pass.
  • Local mixed-load, backup/restore and rollback drill passes.
  • Pinned constrained Docker image: real 16 MiB tmpfs exhaustion, reserve-space recovery, integrity and matching link/audit counts pass (1,118 committed records including recovery).
  • Required cross-platform/container CI and CodeQL must pass before merge.

Limits and compatibility

Worker heap limits are not a total RSS cap; host route compilation is cooperative. Management binding to non-loopback now rejects. SQLite audit table is additive; older writers must not be used after adopting audit continuity. Legacy tokens remain shared credentials. An external independent reviewer and real deployment soak/restore/rollback proof remain necessary. Signed candidate execution is verified separately after the workflow reaches protected main; this is not production approval.

@jimhoyd
jimhoyd merged commit f2a6449 into main Sep 16, 2026
16 checks passed
@jimhoyd
jimhoyd deleted the hardening/resource-management-release branch September 16, 2026 23:44
jimhoyd added a commit that referenced this pull request Sep 19, 2026
The spike was drafted against an inventory that has since moved. Three
repositories were deleted outright -- urlcode-dynamic-link, urlcode-short
and urlcode-docs -- so half its out-of-scope list and one of its migration
targets no longer exist. Acting on the document literally would have meant
chasing a deleted repository.

Corrected, with the replaced text kept as blockquotes where a claim is
reversed rather than merely dated:

- Scope is five repositories, not six. urlcode-dynamic-link was created,
  released and deleted within days; recorded as evidence for consolidation
  rather than as a lost migration target.
- The out-of-scope list is three live repositories. The urlcode-docs entry
  records the deletion that settled it.
- Mechanics #7 is a no-op: zero open issues across the four joining
  repositories. Middleware's #1 and #3, the only issues the step was written
  around, are both closed.
- Mechanics #0 is satisfied today -- zero open pull requests across all five
  -- with an explicit warning that the survey goes stale on the next merge.
- The layout diagram, mechanics preamble, trusted-publishing list, blast-radius
  count and sequencing steps drop dynamic-link.

Two substantive additions rather than corrections:

The drift the spike opened with has recurred. It recorded the stale core pins
in auth and admin as found and fixed; that fix held about a day. All three of
auth, admin and ui still pin d5e8601 and are now 21 commits behind main, a
span that includes the trusted-by-default propagation. The manual pass the
document predicted would repeat indefinitely repeated within twenty-four hours.

And a new section, "What consolidation would newly enforce." Since the spike
was written, check-trust-model-prose.ts and check-guidance-claims.ts both fail
CI rather than report, and the former now reaches code comments and example
YAML, not just Markdown. Both stop at this checkout. The exact failure the
spike opens with -- urlcode-auth/SECURITY.md describing guest code as sandboxed
after core inverted the default -- sits in a file no check can see, and cannot
see while auth is a separate repository. That is a stronger argument than the
toil-reduction case the document was built on, and it was not available when
the document was written.

Open decision #2 is restated for eight repositories and given a sharpened
recommendation: the no branch now owes a design for how the checks reach
downstream, because the pin drift shows the manual pass does not hold.

Sequencing step 6 keeps "archive, don't delete" and now explains why that
diverges from the September retirements: those withdrew code, whereas a
migrated repository's code continues at a new path and the clone redirect is
the point.

Documentation only. npm run verify passes: lint, typecheck, check, build and
510 tests.

Co-Authored-By: Claude Opus 5 <[email protected]>
jimhoyd added a commit that referenced this pull request Sep 19, 2026
The spike was drafted against an inventory that has since moved. Three
repositories were deleted outright -- urlcode-dynamic-link, urlcode-short
and urlcode-docs -- so half its out-of-scope list and one of its migration
targets no longer exist. Acting on the document literally would have meant
chasing a deleted repository.

Corrected, with the replaced text kept as blockquotes where a claim is
reversed rather than merely dated:

- Scope is five repositories, not six. urlcode-dynamic-link was created,
  released and deleted within days; recorded as evidence for consolidation
  rather than as a lost migration target.
- The out-of-scope list is three live repositories. The urlcode-docs entry
  records the deletion that settled it.
- Mechanics #7 is a no-op: zero open issues across the four joining
  repositories. Middleware's #1 and #3, the only issues the step was written
  around, are both closed.
- Mechanics #0 is satisfied today -- zero open pull requests across all five
  -- with an explicit warning that the survey goes stale on the next merge.
- The layout diagram, mechanics preamble, trusted-publishing list, blast-radius
  count and sequencing steps drop dynamic-link.

Two substantive additions rather than corrections:

The drift the spike opened with has recurred. It recorded the stale core pins
in auth and admin as found and fixed; that fix held about a day. All three of
auth, admin and ui still pin d5e8601 and are now 21 commits behind main, a
span that includes the trusted-by-default propagation. The manual pass the
document predicted would repeat indefinitely repeated within twenty-four hours.

And a new section, "What consolidation would newly enforce." Since the spike
was written, check-trust-model-prose.ts and check-guidance-claims.ts both fail
CI rather than report, and the former now reaches code comments and example
YAML, not just Markdown. Both stop at this checkout. The exact failure the
spike opens with -- urlcode-auth/SECURITY.md describing guest code as sandboxed
after core inverted the default -- sits in a file no check can see, and cannot
see while auth is a separate repository. That is a stronger argument than the
toil-reduction case the document was built on, and it was not available when
the document was written.

Open decision #2 is restated for eight repositories and given a sharpened
recommendation: the no branch now owes a design for how the checks reach
downstream, because the pin drift shows the manual pass does not hold.

Sequencing step 6 keeps "archive, don't delete" and now explains why that
diverges from the September retirements: those withdrew code, whereas a
migrated repository's code continues at a new path and the clone redirect is
the point.

Documentation only. npm run verify passes: lint, typecheck, check, build and
510 tests.

Co-authored-by: Claude Opus 5 <[email protected]>
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