Commit Graph

1641 Commits

Author SHA1 Message Date
dd047ebb1c docs(19.5): create phase plan v0.3.0 2026-10-20 01:08:01 +02:00
2eecfb8197 docs(quick-261020-13e): admin image preview fallback 2026-10-20 01:07:07 +02:00
1ab7db428a chore(quick-261020-13e): rebuild embedded admin dist
Rebuilt modules/boardwalk/dist with the public image preview fallback.
2026-10-20 01:05:42 +02:00
1806e5a36d fix(admin): preview public images through the admin thumb route when their URL fails
When a public image's thumb_url or url fails to load, the fileupload
field fetches its preview once through the authenticated thumb route
(session key in the header) and shows it from an object URL, revoked
when the item is forgotten and on unmount. The preview is reported as
unavailable only when that fetch or the object-URL image fails too.
Protected fields behave as before.
2026-10-20 01:05:42 +02:00
e4302bf60b fix(cabana): serve public image thumbnails on the admin thumb routes
The record and relation-child thumb routes now also serve the thumbnail
of a public JPEG, PNG, GIF or WebP file, under the same record or
pending-session scope and D-10 headers as a protected one, so the admin
can preview a public image whose public URL does not load. The download
routes still answer 404 for every public file, and a public non-image
thumb stays 404.

TestPublicImageThumb covers owner, foreign and hidden records, image
types, a public row under a protected field, another admin's pending
upload and the relation-child route.
2026-10-20 01:05:42 +02:00
5978998ea6 docs(19.4): complete phase, OIDC provider on wristband 2026-10-20 00:53:34 +02:00
76c4343299 test(19.4): record the user's push approval in UAT 2026-10-20 00:51:46 +02:00
362923cf5b docs(19.4): re-verify phase after the additivity check fix 2026-10-20 00:51:46 +02:00
ba5f7a6d1f docs(phase-19.4): add security threat verification 2026-10-20 00:38:40 +02:00
8c202a25fe docs(phase-19.4): update validation strategy 2026-10-20 00:37:51 +02:00
d9f7bfa6d1 test(19.4): gate additivity stage accepts both pre-phase user plugin commits
The userplugin stage compared against c077029 only; the merge of
origin/master brought in 24b16b1's pre-phase console signature change.
A declaration now counts as removed only when removed against every base.
2026-10-20 00:33:15 +02:00
ee22bcd139 docs(19.5): pattern map and post-research decisions 2026-10-20 00:24:57 +02:00
ae113d2cff test(19.4): complete UAT - 3 passed, 0 issues 2026-10-20 00:23:50 +02:00
e9c98b0564 docs(19.5): research and validation strategy 2026-10-19 22:39:08 +02:00
a04fe6bf32 docs(19.4): coverage matrix passes the api-coverage lint 2026-10-19 22:17:12 +02:00
4d32d96395 test(19.4): persist human verification items as UAT 2026-10-19 22:14:39 +02:00
c86bcbf3be docs(19.4): phase verification report 2026-10-19 22:14:34 +02:00
9066feb609 docs(19.4): record code review disposition 2026-10-19 22:05:27 +02:00
1453631f60 docs(19.4): add code review report 2026-10-19 22:05:21 +02:00
0cb5be3bbe docs(19.4-04): record plan state and roadmap progress 2026-10-19 21:51:49 +02:00
0f74b3b343 docs(19.4-04): complete unit tests, PHP method map and phase gate plan 2026-10-19 21:51:05 +02:00
86bd5c4d08 test(19.4-04): one sm-user-plugin test name per line in the gate 2026-10-19 21:46:45 +02:00
31cca1a491 docs(19.4): validation map filled, Nyquist compliant
Every task of plans 01-04 with its command and status; Wave 0 done; the
parity row stays deferred to the WavePath cutover (D-14 amended).
2026-10-19 21:45:29 +02:00
533d1a9ae1 test(19.4-04): gate requires the sm-user-plugin additions' tests
TestEndRequestSession joins the userplugin stage; TestRequestUser,
TestAvatarURL and TestDeactivatingEvent the docker stage. --all is green
on a Docker host (parity NOT RUN, deferred).
2026-10-19 21:45:21 +02:00
29b3a3a0ea test(19.4-04): gate requires the PHP method map and the plugin internals
TestPHPMethodMap, the zero-edit port and the Docker-free internals join
the plugin stage, the Postgres internals the docker stage; the plugin
stage points SUMMERCMS_ROOT and USER_PLUGIN at this run's checkouts.
2026-10-19 21:34:43 +02:00
e1696beb80 test(19.4-04): gate requires the plugin's PHP feature and security ports
The docker stage now requires the Postgres ports of the PHP feature and
security suites and TestConsentRedirectMode by name.
2026-10-19 21:18:32 +02:00
dd167466d2 test(19.4-04): unit tests for wristband's OIDC flavour
- PHP protocol cases, one subtest per PHP method: TestPKCEVerifier,
  TestRedirectURIMatch, TestTokenIssuer, TestAuthCodeLifecycle,
  TestPKCEAndReplay, TestConsentCSRF (cases 1-5)
- Go-only behaviour: discovery bytes, JWKS shapes, PEM parsing, ES256 and
  mixed rings, validation order, repeated parameters, PHP encoding,
  resume, switch account, JSON consent, client authentication, uniform
  userinfo 401, pairwise subjects, opt-in refresh, kind isolation,
  flavour dispatch, SetOIDCBackend checks, MCP refuses openid
- every name required by the gate's go stage
2026-10-19 21:05:21 +02:00
028e8da7e8 test(19.4-04): fail-closed phase gate across the four repositories
- scripts/check-phase19.4.sh: go, plugin, userplugin, fonoteka, docker,
  parity and docs stages; go test -json detectors refuse a fail, a skip,
  zero tests or a missing name
- additive check on the user plugin since c077029; NOT RUN rules for
  docker and parity proven on a faked host by --self-test
- required names: the smoke tests of plans 01-03
2026-10-19 20:54:10 +02:00
6d7193c9a5 docs(19.4-03): record plan state and roadmap progress 2026-10-19 20:41:49 +02:00
2ace6a2b9d docs(19.4-03): complete cutover, operations, parity harness and security review plan 2026-10-19 20:40:57 +02:00
7f56382106 docs(19.4): security review
ASVS L1 walk over the wristband OIDC flavour, sm-oauthserver-plugin and the
sm-user-plugin additions. T-19.4-01..34 and T-19.4-SC verified or fixed (test
pins in summercms.go eaa545c and sm-oauthserver-plugin b4223be, f8eaf70);
new findings T-19.4-36..39 accepted with reasons; nothing left unresolved.
2026-10-19 20:38:36 +02:00
eaa545c6f3 test(19.4-03): pin OIDC code binding, credential-free logs and random subjects
- a code is refused for another client or redirect URI and burned
- authorize refuses plain and malformed challenges; verifier rules; 60 s code TTL
- rejected token exchanges log client id, IP and reason only; key parse errors quote no key
- a public sub is a random UUIDv4
2026-10-19 20:32:19 +02:00
3386cbef83 docs(19.4): defer PHP OIDC parity recording to the WavePath cutover
The user skipped the parity recording at 19.4-03 Task 5 and decided the
phase passes without it. D-14 in this phase is the fail-closed harness;
recording WavePath and a green replay move to the WavePath cutover phase
(todo 2026-10-19-record-php-oidc-parity-against-wavepath).
2026-10-19 20:26:05 +02:00
8a1d413b7d docs: capture todo - Record PHP OIDC parity against WavePath before the OIDC cutover 2026-10-19 20:25:27 +02:00
bb4b8d448d feat(19.4-03): tide captures a named input of an HTML response
- capture rule from: response.form reads the value of the <input> with
  the rule's name (a server-rendered form's one-shot token), so a parity
  flow can post a consent form back
- README and parity docs list the capture sources
2026-10-19 19:59:24 +02:00
1e37926ee9 docs(19.4-02): record plan state and roadmap progress 2026-10-19 19:28:09 +02:00
8171eb25ef docs(19.4-02): complete sm-oauthserver-plugin plan 2026-10-19 19:27:30 +02:00
1c0d22a216 docs(19.4-01): record plan state and self-check 2026-10-19 18:36:18 +02:00
49e772afb8 docs(19.4-01): complete OIDC provider on wristband plan 2026-10-19 18:35:37 +02:00
811124259c docs(19.4): close neutral wristband resource todo 2026-10-19 18:32:10 +02:00
ddda59a12b feat(19.4-01): neutral wristband resource default and OIDC provider docs
- DefaultOptions().Resource is empty; comments name the host application,
  no consuming application (folded todo)
- Tests set an explicit neutral resource; TestDefaultOptionsResourceEmpty
- wristband README: new summary, two flavours, OIDC usage, API reference,
  OIDC defaults, dependencies, testing; root README row matches
- docs/services/oauth-server.md: OpenID Connect provider section;
  Resource described as required with an empty default
- ExampleNewOIDCServer and the newOIDCServer docs region
2026-10-19 18:32:03 +02:00
e25e73378c feat(19.4-01): OIDC token, keys, subjects and opt-in refresh
- ES256 keys, PKCS#1/SEC1 parsing fallbacks, EC JWKs, mixed RS256/ES256 rings
- Pairwise subjects per sector (SubjectSector, ErrSectorRequired)
- Opt-in refresh_token grant (OIDCOptions.RefreshEnabled): OfflineAccess clients
  only, rotation, lineage revocation on replay, fresh id_token without nonce
- IssueOIDCClientCredentials with the PHP oas_/oas_cs_ shapes
- Smoke tests: token errors, replay revocation, userinfo 401s, mixed key ring,
  pairwise subjects, refresh opt-in
2026-10-19 18:24:45 +02:00
dfa3c3e8b4 feat(19.4-01): OIDC authorize, consent and switch account match the PHP provider
- Full validation chain with PHP order and messages; repeated params last-wins
- is_dev loopback port matching (matchOIDCRedirectURI); PHP http_build_query redirects, no iss
- One-shot consent token burned under row lock; deny; SwitchAccount; JSON-mode
  ConsentRequest and DecideConsent
- ClientRecord.Kind with ClientKindMCP/ClientKindOIDC; each flavour refuses the
  other kind at authorize, token and userinfo (D-08)
- Smoke tests: start, resume/decide/switch, kind isolation, PHP encoding
2026-10-19 18:21:11 +02:00
659b42aaa8 feat(19.4-01): OIDC flavour of wristband with an end-to-end tracer
- NewOIDCServer/SetOIDCBackend build a second Server on the same engine;
  Authorize and Token dispatch by flavour, Metadata/Register 404 on OIDC
- OIDCBackend/OIDCTx, KeyStore and OIDCHost seams; MCP Backend untouched
- Discovery (PHP field order), JWKS (stdlib JWK encoding), authorize with
  resume and one-shot consent token, token with an RS256 id_token signed
  through golang-jwt map claims, userinfo
- TestOIDCTracerSmoke verifies the id_token against the served JWKS
2026-10-19 18:18:05 +02:00
756a97c181 docs(19.4): decide OIDC on wristband with golang-jwt
- Extend the hand-written wristband with an OIDC flavour; reject zitadel/oidc v3 (D-06, D-09, D-14)
- golang-jwt/jwt/v5 v5.3.1 signs id_tokens; JWKs encoded with the standard library
- go-oidc v3.21.0 and x/oauth2 v0.37.0 test-only in sm-oauthserver-plugin
- STACK.md zitadel/oidc row marked superseded
2026-10-19 18:06:54 +02:00
95051d26ce docs(state): sync state.json after phase 19.4 planning 2026-10-19 18:00:09 +02:00
cf8d48c092 docs(19.4): create phase plan 2026-10-19 17:59:57 +02:00
df0d8c1d55 docs(phase-19.4): add research and validation strategy 2026-10-19 17:06:42 +02:00
10992ea1a5 docs(quick-261019-hgw): Translate hook ValidationError phrase keys in the request locale v0.2.4 2026-10-19 12:54:34 +02:00
ce8d7efb67 fix(cabana): translate hook ValidationError phrase keys in the request locale
- One shared localizer for ValidationError and ForbiddenError, tested in
  writeCRUDError's order; replaces the ForbiddenError-only one.
- Applied on the CRUD and relation service transactions, the detached bulk
  branch, runAction, the record read (ShowRecord), and the reorder,
  singleton and relation-options routes, which localized neither type.
- Only strings containing "::" are looked up, so translated text passes
  through unchanged and logs no missing-key warning.
- Copy-on-write: the plugin's error value is never modified.
- README and backend docs describe the localized ValidationError.
2026-10-19 12:53:17 +02:00