Skip to content

docs: post-v1.2.0 polish — fix stale version claims and clarify feature contracts#34

Merged
Jaro-c merged 1 commit intodevelopfrom
docs/post-v1.2.0-polish
Apr 19, 2026
Merged

docs: post-v1.2.0 polish — fix stale version claims and clarify feature contracts#34
Jaro-c merged 1 commit intodevelopfrom
docs/post-v1.2.0-polish

Conversation

@Jaro-c
Copy link
Copy Markdown
Owner

@Jaro-c Jaro-c commented Apr 19, 2026

Summary

Seven targeted docs fixes from the post-v1.2.0 review. No production code changes; only user-facing text and godoc.

Stale version claims (critical)

  • README.md ## API Stability — said "v0.x (current)" and "v1.0.0 (future)". Replaced with accurate v1.x policy + reference to v1.2.0 hardenings.
  • SECURITY.md ## Supported Versions — "stable v1.0.0" framed as future event. Replaced with v1.x support table + non-breaking upgrade guarantee.

Wrong reporting channel

  • CODE_OF_CONDUCT.md ## Enforcement — CoC reports were routed to GitHub's security advisory page. Now: preferred channel is the maintainer's GitHub profile; private advisory only as a clearly-flagged fallback.

v1.2.0 feature contracts in godoc

  • auth/jwt/config.go Audience — explains the primaryAudience snapshot: only the first value is enforced on verify, and it is captured at New() to defend against post-init mutation.
  • auth/password/password.go Verify — adds explicit ranges for the PHC bounds check (Memory 8 MiB – 4 GiB, Iterations 1 – 20, Parallelism ≥ 1).
  • internal/keymanager/keymanager.go package doc — documents the 4 KiB key-file size cap (was only visible in generate.go).

Out of scope

Not touching README hero tagline or features bullets in this PR — both were flagged as "could be punchier" but the fixes are subjective.

Test plan

  • go build ./...
  • go vet ./...
  • go test ./... -count=1 — all pass (no test changes, no behaviour changes)
  • gofmt -l . clean

… contracts

README.md
  API Stability section still said "v0.x (current)" and "v1.0.0 (future)".
  v1.2.0 ships as a stable v1.x release, so the versioning policy now
  describes the actual v1.x guarantees and references v1.2.0's
  defence-in-depth additions. Links to CHANGELOG.md for the full history.

SECURITY.md
  Supported-versions policy referenced a "stable v1.0.0" as something yet
  to come. Replaced with a v1.x table, the upgrade-within-v1.x
  non-breaking guarantee, and a note that minor releases may tighten
  validation (citing v1.2.0 as the current example).

CODE_OF_CONDUCT.md
  Enforcement section routed Code-of-Conduct reports to GitHub's
  security-advisory page, which is semantically wrong (CoC != vulnerability)
  and exposes reporters to the security triage workflow. Preferred
  channel is now a direct message to the maintainer via their GitHub
  profile, with the private advisory retained only as a fallback (and
  with a note that its "security" framing is reused here out of
  necessity, not because CoC reports are security issues).

auth/jwt/config.go
  Audience field godoc now states explicitly that only the first value
  is enforced at verification, and that this first value is snapshotted
  into a private field at New() time so callers who later mutate the
  slice cannot panic or weaken the verifier. Matches the implementation
  contract introduced in v1.2.0.

auth/password/password.go
  Verify godoc listed "parameters outside the supported range" but did
  not say what the ranges were. Added a bullet list mirroring
  Config validation: Memory 8 MiB – 4 GiB, Iterations 1 – 20,
  Parallelism ≥ 1.

internal/keymanager/keymanager.go
  Package docs now mention the 4 KiB key-file size cap introduced in
  v1.2.0 so consumers reading the package godoc understand the DoS
  protection without having to read generate.go.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Jaro-c Jaro-c merged commit cac384d into develop Apr 19, 2026
10 checks passed
@Jaro-c Jaro-c deleted the docs/post-v1.2.0-polish branch April 19, 2026 18:11
Jaro-c added a commit that referenced this pull request Apr 19, 2026
Aggregates the docs polish work from PR #34 under a v1.2.1 header so
consumers reading the CHANGELOG (or pkg.go.dev release notes) can see
what changed between v1.2.0 and v1.2.1 without having to diff the
source. No code changes land with this release.
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