docs: capture todo - Record PHP OIDC parity against WavePath before the OIDC cutover

This commit is contained in:
2026-10-19 20:25:27 +02:00
parent bb4b8d448d
commit 8a1d413b7d
2 changed files with 53 additions and 5 deletions

View File

@@ -0,0 +1,41 @@
---
created: 2026-10-19T18:07:20.071Z
title: Record PHP OIDC parity against WavePath before the OIDC cutover
area: sm-oauthserver-plugin
severity: major
files:
- ../sm-oauthserver-plugin/testdata/parity/README.md
- ../sm-oauthserver-plugin/testdata/parity/flows/
- ../sm-oauthserver-plugin/testdata/parity/deviations.yaml
- ../sm-oauthserver-plugin/parity_test.go
- ../sm-oauthserver-plugin/scripts/winter-export.sql
g15office: govfaqir
---
## Problem
Phase 19.4 shipped the tide record/replay harness for the OIDC provider in sm-oauthserver-plugin, but the PHP side was never recorded: at the 19.4-03 Task 5 checkpoint the user chose `skip-parity` (2026-10-19). So D-14 ("relying parties notice no difference from the PHP Golem15.OAuthServer plugin") is proven only for the Go side. `TestPHPParityReplay` and `TestIDTokenShapeParity` skip with "no PHP recordings", and they fail when `PHASE194_REQUIRE_PARITY=1` is set.
The user decided that Phase 19.4 passes without the recording. Recording becomes a **preliminary task of the future WavePath cutover phase** (the WavePath work in the Phase 31+ series, not yet planned). WavePath's OIDC provider must not move to the Go plugin until this replay is green.
## Solution
Follow the runbook in `../sm-oauthserver-plugin/testdata/parity/README.md`:
1. Start WavePath locally (`/media/nvme/dev/jz/wavepath.org`, MariaDB, Golem15.OAuthServer enabled) so that `{base_url}/.well-known/openid-configuration` answers 200.
2. In its backend, create a dedicated parity user and an OIDC client "Parity RP":
- redirect URI `https://rp.example.test/callback`
- scopes openid, profile and email
- active, not a development client, not yet authorized by the parity user
3. Log in as the parity user in a browser and copy the `token` cookie.
4. Export with `scripts/winter-export.sql` to `~/.config/summercms/parity-oauthserver.jsonl`.
5. Write `~/.config/summercms/parity-oauthserver.vars` (mode 0600) with:
- base_url, issuer, client_id, client_secret, session_token
- the runbook's PKCE pair
6. Run `summer parity:record` for all ten spec flows. Do not pass `--rules`.
7. Delete PHP's Set-Cookie headers from the fixtures. `TestParityFixturesHoldNoSecrets` fails while any remain.
8. Write `seed.json`, `winter-export.jsonl` (hashes only) and `id_token_shape.json`.
9. Settle every replay difference with a fix, or with a `deviations.yaml` entry whose reason cites a D-number. Known open items:
- Cache-Control on OIDC redirects: Go sends `no-store, private`, PHP sends `no-cache, private`.
- id_token header member order is not compared.
10. The test is done when `PHASE194_REQUIRE_PARITY=1 go test -run '^(TestPHPParityReplay|TestIDTokenShapeParity)$' ./...` passes in sm-oauthserver-plugin.