rebuild: ADR-0019..0025 + PQC ESM migration + P0 CORS/auth security fixes#216
Open
HeadyMe wants to merge 2 commits into
Open
rebuild: ADR-0019..0025 + PQC ESM migration + P0 CORS/auth security fixes#216HeadyMe wants to merge 2 commits into
HeadyMe wants to merge 2 commits into
Conversation
ADR-0019: Nine-domain brand architecture (IRS nonprofit/commercial split) ADR-0020: Drupal 11 as headless CMS (JSON:API + Firebase Auth SSO) ADR-0022: GCP region canonical lock (us-east1, block heady-prod-609590223909) ADR-0023: heady-manager.js decomposition mandate (P0 security timeline) ADR-0024: domain-registry.js canonical domain file ADR-0025: content-gateway Cloudflare Worker contract (Drupal JSON:API) P0 SECURITY FIXES (ADR-0023 Phase 1): - src/middleware/auth.js: crypto.timingSafeEqual replaces string === comparison - src/middleware/cors.js: DOMAIN_REGISTRY allowlist replaces wildcard '*' - src/config/domain-registry.js: canonical ESM registry (9 domains) PQC ESM MIGRATION (ADR-0011): - src/security/pqc.js: CJS → ESM, private class fields, v2.0.0 - src/routes/pqc.js: CJS → ESM, export default router
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
Consolidates architectural decision records (ADR-0019 through ADR-0025), PQC ESM migration, and Phase 1 P0 security fixes from the
rebuildbranch.New ADRs
heady-prod-609590223909heady-manager.jsdecomposition mandatesrc/config/domain-registry.jscanonical domain fileP0 Security Fixes (ADR-0023 Phase 1)
src/middleware/auth.jsheady-manager.js:399 — timing attack
heady-manager.js:458/465 — tier derivation timing leak
src/middleware/cors.jsheady-manager.js:197 — CORS wildcard
New Source Files
src/config/domain-registry.jssrc/middleware/auth.jssrc/middleware/cors.jssrc/security/pqc.jssrc/routes/pqc.jsBreaking Change
ALLOWED_ORIGINSenv var is deprecated. Remove from all environments after merge —src/middleware/cors.jsusesDOMAIN_REGISTRYexclusively.Checklist
require()in any new file (ADR-0011)headyconnection.orgcommercial: falsein registry (ADR-0019 IRS)