@@ -11,6 +11,87 @@ target.
1111
1212## [ Unreleased]
1313
14+ ## [ 1.0.2] — 2026-09-13
15+
16+ The shared gateway layer moves out into its own repository, and OIDC
17+ learns to accept an ID token whose ` aud ` carries more than the client
18+ ID. Mostly a fix release otherwise — the deploy and auth items below are
19+ the ones worth reading before you upgrade.
20+
21+ ### Added
22+
23+ - ** ` OIDC_ADDITIONAL_TRUSTED_AUDIENCES ` ** — a comma-separated allowlist
24+ of extra ID-token audiences to trust. Some IdPs put something besides
25+ the client ID in ` aud ` ; Zitadel includes the parent project ID, and
26+ ` openidconnect ` 's stock verifier rejects every non-client-ID audience,
27+ so login failed outright. Leave it unset and verification is
28+ byte-for-byte what it was. Set, it widens exactly one check: the extra
29+ audiences on a multi-audience token are matched against this list as
30+ exact strings — no wildcards, no prefixes. The client ID must still
31+ appear in ` aud ` regardless. Documented in ` .env.example ` . Thanks to
32+ @DaniW42 for the report and the patch (#12 ).
33+ - ** Automatic upstream protocol detection** — the gateway learns an
34+ upstream's dialect and relearns it when the upstream changes, instead
35+ of relying on a static guess. Protocol is now a property of the route.
36+ - ** Reverse-proxy identification** — the server recognizes its own
37+ reverse proxy, which is what makes the dashboard WebSocket and the API
38+ docs work behind nginx.
39+
40+ ### Changed
41+
42+ - ** ` azp ` is validated whenever it is present** , per OIDC Core 3.1.3.7
43+ step 5, which has no audience-count precondition. Previously it was
44+ only checked when a multi-audience token made it mandatory, so a
45+ single-audience token naming this client with ` azp ` pointing at a
46+ * different* client was accepted — the IdP stating plainly that the
47+ token was authorized for somebody else. ** This can reject a token that
48+ 1.0.1 accepted.** If your IdP sets ` azp ` to something other than your
49+ client ID, logins will start failing and the message will say so;
50+ that is the IdP to fix, not this setting.
51+ - ** The shared gateway layer now comes from
52+ [ ThinkWatch-Core] ( https://github.com/ThinkWatchProject/ThinkWatch-Core ) **
53+ as a git dependency rather than living in this tree. Six crates —
54+ types, protocol, provider, resilience, crypto, and the JSON secret
55+ envelope — are one implementation shared with the desktop edition
56+ instead of two copies drifting apart. No runtime or API change; it
57+ affects you only if you build from source, where the build now needs
58+ network access to resolve that dependency. The published images are
59+ unaffected.
60+ - ** Stored secrets are redacted on read and decrypted on use.** Provider
61+ credentials no longer travel in plaintext through code paths that
62+ merely display or list them.
63+
64+ ### Fixed
65+
66+ - ** Deploy** — nginx broke the API docs three separate ways; the
67+ dashboard WebSocket wasn't proxied; the prod stack's healthchecks were
68+ wrong; and the dev stack could overwrite production's ClickHouse
69+ credentials. The last one is the reason to read this list.
70+ - ** Auth** — the console logged itself out after every token refresh.
71+ Rate-limit counters could be created without an expiry and sit in
72+ Redis forever.
73+ - ** Models** — the gateway no longer offers models the upstream refuses,
74+ no longer imports models it won't serve, and reports every dialect
75+ that was refused rather than only the last. Provider ` base_url `
76+ trailing slashes are normalized.
77+ - ** Analytics** — spend is attributed to a person, not a UUID.
78+ - ** Audit** — a syslog forwarder formatting fix that had CI red on
79+ clippy 1.98 (#11 , thanks @DaniW42 ). Two more instances of the same
80+ lint, plus a ` result_large_err ` false positive in the MCP lifecycle
81+ stages, measured rather than boxed: the ` Ok ` variant is 296 bytes
82+ against the ` Err ` 's 152, so boxing saves nothing and adds an
83+ allocation.
84+ - ** UI** — the brand mark stays inside the collapsed sidebar rail.
85+
86+ ### Contributing
87+
88+ ` CONTRIBUTING.md ` and a PR template now state the branch contract that
89+ had only lived in ` docs/operations/release.md ` : routine work targets
90+ ` dev ` , and ` main ` is the release line. A workflow comments on PRs opened
91+ against ` main ` from anything other than ` dev ` or a ` hotfix/* ` branch,
92+ because GitHub pre-fills the base with the default branch and walks
93+ contributors into it.
94+
1495### Added
1596- _ (nothing yet)_
1697
@@ -139,7 +220,8 @@ unreleased builds should: stop the gateway, run `db/schema.sql`
139220against PostgreSQL, restart against this tag. The schema is
140221idempotent end-to-end, so the apply is safe to repeat.
141222
142- [ Unreleased ] : https://github.com/ThinkWatchProject/ThinkWatch/compare/v1.0.1...HEAD
223+ [ Unreleased ] : https://github.com/ThinkWatchProject/ThinkWatch/compare/v1.0.2...HEAD
224+ [ 1.0.2 ] : https://github.com/ThinkWatchProject/ThinkWatch/releases/tag/v1.0.2
143225[ 1.0.1 ] : https://github.com/ThinkWatchProject/ThinkWatch/releases/tag/v1.0.1
144226[ 1.0.0 ] : https://github.com/ThinkWatchProject/ThinkWatch/releases/tag/v1.0.0
145227[ 0.5.0 ] : https://github.com/ThinkWatchProject/ThinkWatch/releases/tag/v0.5.0
0 commit comments