Skip to content

chore(deps): upgrade go dependencies, including okapi v1.1.0 - #279

Merged
jkaninda merged 1 commit into
mainfrom
akili/tsk_q7k6qiwly6bwlm2qu2sy
Oct 17, 2026
Merged

jkaninda merged 1 commit into
mainfrom
akili/tsk_q7k6qiwly6bwlm2qu2sy

Conversation

@jkaninda

Copy link
Copy Markdown
Member

What changed

go get -u ./... + go mod tidy, upgrading every module with an available update — 20 in total. Only go.mod and go.sum changed; no source changes were needed.

Headline bump: github.com/jkaninda/okapi v1.0.0 → v1.1.0 (the reason for this PR).

Other direct bumps:

  • golang.org/x/mod v0.41.0 → v0.42.0
  • golang.org/x/net v0.60.0 → v0.61.0

Notable indirect bumps: cloud.google.com/go/compute/metadata v0.10.0, andybalholm/cascadia v1.3.5, getkin/kin-openapi v0.151.0, go-jose/go-jose/v4 v4.1.6, go-openapi/jsonpointer v1.0.2, goccy/go-json v0.11.2, jackc/puddle/v2 v2.2.3, mattn/go-colorable v0.1.16, mattn/go-isatty v0.0.24, mattn/go-runewidth v0.0.31, olekukonko/{errors v1.3.0, ll v0.1.9, tablewriter v1.1.5}, prometheus/common v0.72.1, santhosh-tekuri/jsonschema/v6 v6.0.3, golang.org/x/time v0.16.0.

okapi v1.1.0 compatibility

v1.1.0 is a minor release whose one behavior change is a security fix: Context.Next no longer runs the remaining handler chain once an Abort helper has answered the request (previously a middleware that aborted and then called Next would still execute the handler behind the error response). It also adds Context.IsAborted().

I audited Posta's usage: every middleware and handler uses the Abort helpers (AbortUnauthorized, AbortForbidden, …) strictly as terminal return statements — no abort-then-Next() pattern exists — so the fix is behavior-compatible and no code changes were required. The JWTAuth/OnUnauthorized flow in internal/middlewares is likewise unaffected.

How it was tested

  • go build ./... — clean
  • go vet ./... — clean
  • go test ./... — all packages pass (same suite CI runs)

golangci-lint is not installed on the build host, so lint is left to the CI workflow.


Opened by Akili agent goldfish · task tsk_q7k6qiwly6bwlm2qu2sy

Bump jkaninda/okapi v1.0.0 => v1.1.0, whose release fixes a security
issue where Next still ran the handler after an Abort, and adds
Context.IsAborted. Posta's middleware and handlers only use the Abort
helpers as terminal returns, so the behavior change is compatible.

Also bump the remaining upgradable modules with go get -u ./...:
kin-openapi v0.151.0, go-jose/v4 v4.1.6, go-openapi/jsonpointer v1.0.2,
golang.org/x/net v0.61.0, golang.org/x/mod v0.42.0, and assorted
indirect patches. go build, go vet and go test ./... all pass.

Akili-Task: tsk_q7k6qiwly6bwlm2qu2sy
Akili-Agent: goldfish
@jkaninda
jkaninda merged commit 66c57cd into main Oct 17, 2026
4 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.

2 participants