Skip to content

release: v1.0.2 - #14

Merged
fylorn merged 3 commits into
mainfrom
dev
Sep 12, 2026
Merged

fylorn merged 3 commits into
mainfrom
dev

Conversation

@fylorn

@fylorn fylorn commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

See CHANGELOG.md [1.0.2] for the full notes.

🤖 Generated with Claude Code

fylorn and others added 3 commits September 12, 2026 23:56
The three loose ends from reviewing #12, none of which blocked it.

- Document `OIDC_ADDITIONAL_TRUSTED_AUDIENCES` in `.env.example`, next
  to `JWT_LEEWAY_SECS` which set the precedent. An undocumented env var
  is one an operator cannot discover.

- Correct the doc comment on `validate_authorized_party`. It claimed
  `client_id_in_audiences == false` happens when the allowlist accepts a
  single-audience token whose sole audience is a trusted non-client-ID
  value. It doesn't: `IdTokenVerifier` enforces `client_id ∈ aud` in its
  `aud_match_required` block before `other_aud_verifier_fn` is ever
  consulted, so such a token never reaches us. The parameter stays as
  defense in depth if that guarantee ever changes, and the comment now
  says it isn't load-bearing so nobody later builds on it.

- Check `azp` unconditionally when present, per OIDC Core 3.1.3.7 step
  5, which has no audience-count precondition. The old shape only looked
  at `azp` when it was already required by step 4, so a single-audience
  token naming us with `azp` pointing at a different client was accepted
  — the IdP telling us plainly that the token was authorized for someone
  else. Matching stock `openidconnect` there was not a regression (its
  azp check is commented out entirely), but the check already existed
  here, so making it unconditional is free. New test covers the case.

75 tests in think-watch-auth, clippy clean.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Both inbound PRs this week targeted `main`. That isn't contributors
misreading anything — GitHub pre-fills the base with the default branch,
which here is the release-only line, so the UI walks them into it. The
contract was written down (docs/operations/release.md) in a file nobody
reads before their first PR.

Three places it now shows up instead:

- `CONTRIBUTING.md`, which GitHub links from the PR compose sidebar and
  the new-issue page. Also states English commit messages and what
  `make precommit` covers, plus a note that a newer stable toolchain
  than yours can surface lints you can't reproduce locally — that cost
  us a red `main` this week.
- `.github/PULL_REQUEST_TEMPLATE.md`, with the retarget instructions in
  an HTML comment at the top so they're visible while writing the PR and
  absent from the rendered body.
- A `PR base guard` workflow that comments once when a PR opens against
  `main` from something other than `dev`, `hotfix/*` or `release/*`,
  telling them Edit-next-to-the-title retargets without losing the
  commits or the thread.

The guard uses `pull_request_target` because `pull_request` hands a
fork's PR a read-only token, and a fork PR is the case it exists for.
That trigger runs with this repo's token, so the job checks out nothing
and runs no PR code — it has zero `uses:` and one `gh pr comment` over
metadata GitHub already provided. The header says so, because the next
person to edit this file will want to add a build step to it.

This does not change where the GitHub UI points by default; only
flipping the default branch to `dev` would, and the release runbook
currently assigns `main` that role deliberately.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@fylorn
fylorn merged commit a368546 into main Sep 12, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant