Skip to content

Backend security, scoped access, and visitor API refactor - #36

Open
devcavin wants to merge 2 commits into
mainfrom
chore/authorization
Open

Backend security, scoped access, and visitor API refactor#36
devcavin wants to merge 2 commits into
mainfrom
chore/authorization

Conversation

@devcavin

@devcavin devcavin commented Aug 19, 2026

Copy link
Copy Markdown
Owner

Summary

Implements Sprint 1–3 backend improvements:

  • Hardened authorization and site access scope.
  • Enforced site-scoped visitor data access for reads and mutations.
  • Standardized visitor/profile API response contracts.
  • Separated visit responsibilities from visitor profile responsibilities.
  • Refactored Visitor to use VisitorProfile as the single source of truth for visitor identity.
  • Removed duplicated visitor name/phone data from Visitor.
  • Updated visitor registration, lookup, search, and returning-visitor flows.
  • Added/updated authorization, scope, and visitor/profile regression tests.
  • Added the migration required to normalize existing visitor records.

Result

VisitorProfile owns visitor identity, while Visitor represents an individual visit.

VisitorProfile
  ├── name
  ├── phoneNumber
  └── site

Visitor
  ├── visitorProfile
  ├── site
  ├── zone
  ├── visitorType
  ├── purpose
  ├── visitStatus
  └── check-in/out

@vercel

vercel Bot commented Aug 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gatelog Ready Ready Preview Aug 20, 2026 10:56am

@devcavin devcavin changed the title ref: [site, visitor and zone] domains Backend security, scoped access, and visitor API refactor Aug 20, 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