Skip to content

test(server): add HttpApi auth exercise mode#26386

Merged
kitlangton merged 3 commits into
devfrom
kit/httpapi-auth-hardening
May 8, 2026
Merged

test(server): add HttpApi auth exercise mode#26386
kitlangton merged 3 commits into
devfrom
kit/httpapi-auth-hardening

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • add --mode auth to the HttpApi exerciser
  • add scenario auth policy metadata with protected/public/bypass DSL methods
  • probe both Effect HttpApi and legacy Hono with OPENCODE_SERVER_PASSWORD=secret and assert protected routes reject missing credentials

Verification

  • bun run script/httpapi-exercise.ts --mode auth --include global
  • bun run script/httpapi-exercise.ts --mode auth
  • bun run script/httpapi-exercise.ts --mode coverage --include global
  • bun run script/httpapi-exercise.ts --mode parity --include global
  • bunx prettier --write test/server/httpapi-exercise/*.ts
  • bunx oxlint packages/opencode/script/httpapi-exercise.ts packages/opencode/test/server/httpapi-exercise/*.ts

Notes

Base automatically changed from kit/httpapi-hardening to dev May 8, 2026 17:58
@kitlangton kitlangton merged commit 75308ea into dev May 8, 2026
8 checks passed
@kitlangton kitlangton deleted the kit/httpapi-auth-hardening branch May 8, 2026 18:05
katosun2 pushed a commit to katosun2/opencode that referenced this pull request May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant