Repository navigation
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See CHANGELOG.md [1.0.2] for the full notes.
🤖 Generated with Claude Code