Skip to content

Global Access Control

Starlight sites are static by default. For private notes, add a gate in front of the site.

  • Put site behind Cloudflare Zero Trust.
  • Allow only selected emails, domains, or identity providers.
  • Keep static hosting simple while blocking anonymous users.
  • Netlify Identity, Vercel middleware + provider, or basic auth at reverse proxy.
  • Good for small private audiences.
  • Use Astro middleware with Auth.js or custom OAuth checks.
  • Useful when mixing public pages and private pages in same site.
  1. Start public while content is non-sensitive.
  2. Move to Cloudflare Access when publishing private/internal notes.
  3. Add app-level auth only if you need per-page or per-role rules.