Skip to content

feat(api): add members endpoint, tenant isolation tests and wire the auth routes - #24

Merged
pitercoding merged 2 commits into
mainfrom
feat/members-and-wiring
Nov 25, 2026
Merged

pitercoding merged 2 commits into
mainfrom
feat/members-and-wiring

Conversation

@pitercoding

Copy link
Copy Markdown
Owner

Completes the phase 1 backend:

  • GET /api/v1/members (admin and owner only), listing only the caller's own tenant; isolation tests prove that no query string or header can choose another tenant, and that a demoted admin loses access at once.

  • cmd/api now wires health, auth and member routes behind CSRF protection; the assembled API is tested end to end with httptest.

  • settings from environment variables (COOKIE_SECURE, TRUSTED_PROXY_HOPS, TRUSTED_ORIGINS) are validated at startup; unset values are the safe defaults.

@pitercoding
pitercoding merged commit bfbea09 into main Nov 25, 2026
4 checks passed
@pitercoding
pitercoding deleted the feat/members-and-wiring branch November 25, 2026 13:01
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