Prepares the test site for the CMS host #17
@@ -51,4 +51,15 @@
|
||||
| 2026-11-08 | Bryan: 'jullie hebben toestemming de pipeline samen te fixen ... een deploy te doen zodra de pipeline slaagt ... te pushen en als het nodig is een PR te maken'. Relayed to the CMS session with scope: fix pipeline in separate commits, push the feature branch, open a PR if needed, NO merge (master merge also deploys SlpSoftware test, needs separate approval); first ASF TEST deploy via workflow_dispatch with only 'Deploy ASF test' once a branch run is fully green; production never | user, this session |
|
||||
| 2026-11-08 | Run 607 fully green (backend-test incl. Api.Tests + ASF HostPipelineTests, vulnerability-scan, frontend; no deploy job ran; vars in job-level if works). CMS docs updated and pushed (branch at 91f14d5, code identical to e37b8f3); no PR, no merge. First ASF TEST deploy dispatched by the CMS session: run 608, workflow_dispatch on feature/andreaslop-site-hosting, deploy_asf_test=true, others false (before: /health 502 as expected). Expected ~35 min incl. the gate chain | CMS session message |
|
||||
| 2026-11-08 | FIRST ASF TEST DEPLOY DONE: run 608 (dispatch on feature/andreaslop-site-hosting, deploy_asf_test=true): all gates green, publish-asf-test + deploy-asf-test success incl. public /health; live https://test.andreaslop.nl/health Healthy (modules Identity, Availability). CMS session curl checks: / 200, exact CSP, HSTS, nosniff, DENY, Referrer-Policy, X-Robots-Tag, no-cache on pages, immutable on assets, gzip (no br), 301s, /a%3Fb/ -> 301 /a%3Fb, 404 pages with full headers, API 404 empty, robots Disallow, POST with body 405, /admin/ 200 with themed favicon, capabilities without Offerings, Setup/status {initialized:false, tokenRequired:true}. Difference: bare POST without body gets 400 from the HTTP/1.0 proxy hop (Kestrel); verify script now uses -d ''. This session: ran verify --cms from the PC: all header/route checks pass; only byte-equality of pages fails because my local dist (no CI env, different asset hashes) is not the CI build that was deployed (web CI run 605 on master 16b75af deployed it). Rate limit probe: 5x200 then 429 on the 6th; Pi-Main asked to read the journal for the client address (forwarded headers). Open: first administrator + removal of Identity__Setup__Token, Sentry alert rules, Pi timing, admin in Dutch (browser) | CMS session message, this session |
|
||||
| 2026-11-08 | Pi-Main journal check: rate limit works (5x200 then 429 with security event 5005 rate_limit_triggered, login limiter) but the event line holds no client address; Website 301/404 lines present; scheme taken from X-Forwarded-Proto (https) so ForwardedHeaders middleware is active for the trusted proxy; per-client partition not directly proven (second real client needed, e.g. phone on mobile data). U3 committed in the web worktree (41a6e7b code, 288b0e3 docs), pushed feature/cms-api-foundation, PR #17 opened to master for CI (not merged). Local: lint, prettier, 1415 unit tests, verify e2e 18/18 green | Pi-Main message, this session |
|
||||
| 2026-11-08 | BUG found by Bryan on the live ASF test host: /admin shows a blank page. Evidence (curl): /admin/ 200 (SPA fallback index) but every admin file 404s with an empty body (/admin/assets/*.css|js, /admin/favicon-theme.png, /admin/index.html) while the same on SlpSoftware test works; /admin/assets/ -> 200. Console also shows an inline-script CSP violation for the theme-init script, which is identical on SlpSoftware test (pre-existing, harmless). Sent to the CMS session for root cause first (suspects: PrerenderedPages pipeline/static file provider, or admin files missing in the release); HostPipelineTests missed it (only /admin/ fetched). Verify script must also fetch a real admin asset | user, this session |
|
||||
| 2026-11-08 | Root cause of the blank admin (CMS session, reproduced locally): MapCmsWebsiteNotFound's catch-all {*path} (no 'nonfile' constraint, only in PrerenderedPages) gets selected as endpoint before the static file middleware, which skips requests that already have an endpoint; /admin/ works because the admin fallback serves index.html. HostPipelineTests only fetched /admin/. Fix approved with a suggestion to constrain the catch-all away from reserved prefixes instead of clearing the endpoint; tests listed (admin asset + favicon, /admin/dashboard SPA, unknown admin file 404 not HTML, API 404, website unchanged); re-deploy with the permission given. This session: verify --cms now fetches /admin/index.html, /admin/favicon-theme.png, css/js from the served index and an unknown admin file (live host currently fails these 4 checks, as expected); committed and pushed to PR #17 | CMS session message, this session |
|
||||
| 2026-11-08 | Admin bug fixed by the CMS session with a route constraint (NotReservedPathConstraint on the website catch-all; /admin, /api/v1, /health keep SpaFallback behaviour). Core tests 356 green x3 (admin index/css/js/favicon 200, /admin/dashboard + /admin/setup SPA index, missing admin file 404 not HTML, unknown API path empty 404, missing /assets file website 404). ASF HostPipelineTests cannot fetch real admin assets (no built wwwroot/admin in the test host), covered by Core integration tests. Pushed d0c1d26 to feature/andreaslop-site-hosting; ASF deploy re-dispatched: run 610 (~35 min). Inline-script CSP item recorded as open | CMS session message |
|
||||
| 2026-11-08 | Run 610 (head d0c1d26) green: all gates + publish-asf-test + deploy-asf-test; admin files now 200 with correct content types, /admin/dashboard SPA, missing admin file 404 not HTML. This session: verify --cms against the live host: all admin and header/route checks pass; only the 6 byte-equality/hash checks of pages fail because my local dist is not the CI build (expected). Open: first administrator + token removal, forwarded-header per-client proof (phone test), Sentry alert rules, inline theme-init script vs CSP (pre-existing), Pi timing, doc commit unpushed on the CMS branch, PR #17 CI in the web repo | CMS session message, this session |
|
||||
| 2026-11-08 | BUG 2 from Bryan: first admin registration and inviting a user work; invite link https://test.andreaslop.nl/invite/complete?token=... shows the website 404 page. Finding: UsersController builds root-relative links /invite/complete?token=... without the admin base; on ASF the root is the prerendered website; /admin/invite/complete returns 200 on ASF and SlpSoftware (SlpSoftware works at root by accident of its fallback). Sent to the CMS session for root cause first, then fix (links with the admin base from one constant, check other root-relative links, SlpSoftware compatibility), push, re-deploy ASF test; no merge | user, this session |
|
||||
| 2026-11-08 | BUG 2 root cause confirmed by the CMS session: backend returns app-relative /invite/complete?token=...; the frontend builds the shown URL with window.location.origin + inviteLink in 3 places (InviteUserDialog 82 and 166, UsersPage 105), ignoring the router basepath (/admin/ in builds). Fix chosen by the CMS session and agreed here: frontend helper origin + BASE_URL + inviteLink (no Identity change, SlpSoftware unaffected, old links keep working); tests + push + ASF re-deploy | CMS session message, this session |
|
||||
| 2026-11-08 | BUG 2 fix pushed by the CMS session (0908f42, branch only): lib/links.ts buildAppUrl = origin + BASE_URL + path in InviteUserDialog (2x) and UsersPage; tests for bases /admin/, /, /admin, /admin//, path without leading slash, encoded token; frontend 304 tests, eslint, tsc green; no backend change. ASF redeploy dispatched: run 612 (~40-60 min) | CMS session message |
|
||||
| 2026-11-08 | Web PR #17: run 609 (288b0e3) green; run 611 (1a37dc2, verify script only) FAILED in the lighthouse job (Browsertests/Lighthouse steps): the log ends abruptly mid-e2e at 10:35:00Z (all visible tests passed, 18 verify tests incl. new --cms ones green, no error line) -> looks like the job/container was killed (suspect: runner on the PC Podman machine, 4 GiB, while I ran heavy local tests), not a code failure; unproven. Re-ran run 611 via API (rerun endpoint works). If it fails again at a real test, root cause first | this session |
|
||||
| 2026-11-08 | Run 612 (head 0908f42) green: all gates + publish-asf-test + deploy-asf-test. Live: /health version 1.0.0+0908f42; /admin/invite/complete?token=x 200 text/html (checked here too); old /invite/complete 404 website page (acceptable). Existing pending invites also fixed in the UI (URL built client-side). Notification sent to Bryan. This session's verify --cms: all checks pass except the 6 byte/hash checks caused by the local (non-CI) dist | CMS session message, this session |
|
||||
| 2026-11-10 | CMS side approved by Bryan after testing both test environments: CMS PR #11 (identity-email-notifications + the ASF-hosting branch) merged to SlpModularCms master (merge-commit e671078, CI green) and SlpSoftware production deployed (run 639, healthy per Pi-Main journal: mail on, migrations applied, no master-URL warnings). Bryan gave this session the go to merge web PR #17 and close the AI-DLC flow. Required env name on every master host: MasterModule__MasterUrl | user, CMS session, Pi-Main |
|
||||
| pending | U2 Build and Test approval by Bryan (CMS session); CI vulnerability-scan decision; go for U3 | |
|
||||
|
||||
Reference in New Issue
Block a user