Skip to content

Access Gate

This page is generated from package source documentation in the Capell packages repository and the checked-in manifest. Source documentation is not distribution status. Before running a Composer command, verify that the exact package and compatible 1.x release are available through public Packagist or the authenticated marketplace account.

FieldValue
Composer packagecapell-app/access-gate
Package slugaccess-gate
Product groupCapell Security & Compliance
Tierpaid
Bundlesecurity-compliance
Runtime contextsadmin, frontend, console
Capell version^1.0
Catalogue roleextension
Release channelBeta
Docs sourcepackages/access-gate/docs
Manifestcapell.json

This keeps part of your site for invited or approved people only, such as a product preview or a members’ area. Anyone else who lands there sees a short form asking for their email. By default they can ask without an account, though you can keep an area to signed-in members. Once you say yes, a one-time link arrives in their inbox and lets them in.

You choose how strict to be for each private area. Approve every request by hand, let in a set number of people automatically, invite only the people you name, or let in everyone who asks. Requests wait on a screen called Registrations, and a panel on your dashboard counts the ones still waiting.

The emailed link works for a week. After someone clicks it and sees “You’re in”, that browser stays let in for about six months. An area’s Grant duration days setting swaps that for a number of days you choose, counted from approval. Which pages sit behind an area is set in the site’s code, which is a job for whoever built your site.

A separate setting covers a whole site that isn’t ready for the public yet. Visitors see “This site is private” and type the password you’ve shared with them.

  • Price and availability: Check current availability and price on the Capell Marketplace listing.
  • Licence: Check the licence terms on the Capell Marketplace listing.
  • Requires: PHP ^8.4, capell-app/admin ^1.0.78, capell-app/core ^1.0.79, filament/filament ^5.7.6, filament/support ^5.7.6, laravel/framework ^12.61.1|^13.12.0, lorisleiva/laravel-actions ^2.8.
  • Install: composer require capell-app/access-gate.
  1. Install the package: composer require capell-app/access-gate.
  2. Run the package setup: php artisan capell:access-gate-install.
  3. Open the package admin surface at /admin/access-gate/access-areas and confirm Access Gate is available.

AccessGateMiddleware delegates access decisions to package Actions, while registries handle request methods and fields without adding that logic to core.

  • Configuration files: config/access-gate.php.
  • Commands: php artisan capell-access-gate:link-legacy-record, php artisan capell:access-gate-audit-export, php artisan capell:access-gate-doctor, php artisan capell:access-gate-install, php artisan capell:access-gate-prune, php artisan capell:access-gate-screenshot-fixture, php artisan capell:access-gate-setup, php artisan capell:access-gate-sync-lockdown-markers.
  • Install the required Capell packages at the versions in composer.json: capell-app/admin ^1.0.78, capell-app/core ^1.0.79.
  • Run migrations before opening package resources or public routes.
  • Review middleware, throttling, signatures, and public-output safety in routes/web.php before exposing routes.
  • Keep the host Laravel scheduler running so package-registered schedules can execute: Capell\AccessGate\Manifest\AccessGateScheduleContribution (everyMinute; manifest declared), capell:access-gate-prune (daily; package registered).
  • Keep public Blade and cached HTML free of authoring markers, model IDs, permissions, signed editor URLs, and lazy database queries.

Access areas admin indexAccess areas admin index

Access area edit formAccess area edit form

  • Access areas admin index (admin).
  • Access area edit form (admin).
  • Access registrations admin index (admin).
  • Access grants admin index (admin).
  • Claim tokens admin index (admin).
  • Browser tokens admin index (admin).
  • Access events admin index (admin).
  • Native site lockdown password and account challenge (frontend).
  • Public access request form (frontend).
  • Claim link confirmation (frontend).
  • Public request CTA component (frontend).
  • Required packages: capell-app/admin, capell-app/core.
  • Admin navigation: declares admin-resource: AccessAreaResourceContribution, admin-resource: AccessGateEventResourceContribution, admin-resource: BrowserTokenResourceContribution, admin-resource: ClaimTokenResourceContribution, admin-resource: GrantResourceContribution, admin-resource: RegistrationResourceContribution; each Filament page or resource controls its own navigation visibility.
  • Admin/editor extensions: dashboard-widget: PendingAccessRequestsWidgetContribution.
  • Permissions: ViewAny:AccessArea, View:AccessArea, Create:AccessArea, Update:AccessArea, Delete:AccessArea, DeleteAny:AccessArea, Restore:AccessArea, RestoreAny:AccessArea, ForceDelete:AccessArea, ForceDeleteAny:AccessArea, Reorder:AccessArea, ViewAny:Registration, View:Registration, Create:Registration, Update:Registration, Delete:Registration, DeleteAny:Registration, Restore:Registration, RestoreAny:Registration, ForceDelete:Registration, ForceDeleteAny:Registration, Reorder:Registration, ViewAny:Grant, View:Grant, Create:Grant, Update:Grant, Delete:Grant, DeleteAny:Grant, Restore:Grant, RestoreAny:Grant, ForceDelete:Grant, ForceDeleteAny:Grant, Reorder:Grant, ViewAny:BrowserToken, View:BrowserToken, Create:BrowserToken, Update:BrowserToken, Delete:BrowserToken, DeleteAny:BrowserToken, Restore:BrowserToken, RestoreAny:BrowserToken, ForceDelete:BrowserToken, ForceDeleteAny:BrowserToken, Reorder:BrowserToken, ViewAny:ClaimToken, View:ClaimToken, Create:ClaimToken, Update:ClaimToken, Delete:ClaimToken, DeleteAny:ClaimToken, Restore:ClaimToken, RestoreAny:ClaimToken, ForceDelete:ClaimToken, ForceDeleteAny:ClaimToken, Reorder:ClaimToken, ViewAny:AccessGateEvent, View:AccessGateEvent, Create:AccessGateEvent, Update:AccessGateEvent, Delete:AccessGateEvent, DeleteAny:AccessGateEvent, Restore:AccessGateEvent, RestoreAny:AccessGateEvent, ForceDelete:AccessGateEvent, ForceDeleteAny:AccessGateEvent, Reorder:AccessGateEvent, ManageSiteAccess:Site; access also governed by package policies: AbstractAccessGateResourcePolicy, AccessAreaPolicy, AccessGateEventPolicy, BrowserTokenPolicy, ClaimTokenPolicy, GrantPolicy, RegistrationPolicy.
  • Public routes: loads routes/web.php; registers AccessGateRoutesContribution.
  • Database changes: package migrations are declared.
  • Config: config/access-gate.php.
  • Settings: no package settings declared.
  • Queues or schedules: scheduled commands Capell\AccessGate\Manifest\AccessGateScheduleContribution (everyMinute; manifest declared), capell:access-gate-prune (daily; package registered).
  • Cache tags: none declared.
  • Commands: capell-access-gate:link-legacy-record, capell:access-gate-audit-export, capell:access-gate-doctor, capell:access-gate-install, capell:access-gate-prune, capell:access-gate-screenshot-fixture, capell:access-gate-setup, capell:access-gate-sync-lockdown-markers.
SymptomLikely causeCheckFix
Package health check reports a problemPackage configuration or runtime dependencies are not readyRun php artisan capell:access-gate-doctorFollow the reported checks, then rerun the doctor command
Package surface is missing after installProvider or manifest is not loadedConfirm capell.json, package composer.json, and provider registrationReinstall the package, refresh Composer autoload, and clear host caches
Admin screen or command fails on missing tablePackage migrations have not runCheck the tables listed in Data ModelRun host migrations and rerun the focused package test
Route returns unexpected outputRoute cache, middleware, or signed URL setup does not match the package route fileCheck the route files listed in Technical ShapeClear route cache and verify middleware before exposing public routes
Background work does not runQueue worker or declared schedule is not activeCheck the jobs and scheduled commands listed in Technical ShapeStart the queue worker or host scheduler, then run the focused command or package test
Public output leaks unexpected stateRender data, cache variation, or authoring boundary has regressedCheck public Blade, cache tags, and public-output safety testsMove data loading out of Blade and rerun the package public-output tests

Read CHANGELOG.md before upgrading.

Unreleased: Breaking changes and upgrade notes

Section titled “Unreleased: Breaking changes and upgrade notes”
  • ?pass= links are off by default. A password in the query string is recorded in access logs, browser history, Referer headers and shared links, so the site lockdown no longer reads it. A request carrying ?pass= is redirected to the same URL without it, the value is never tried, and the visitor sees a notice on the password form explaining why. To keep the one-time exchange, set ACCESS_GATE_SITE_LOCKDOWN_QUERY_PASSWORD_ENABLED=true (config key access-gate.site_lockdown.query_password_enabled). Prefer the password form or HTTP Basic for automation.

  • Entering the password issues a new session ID, so a session ID planted before a visitor entered the password cannot be used to enter the site.

  • Retention pruning now runs automatically. capell:access-gate-prune is scheduled daily (one server, no overlap). It removes audit events older than 365 days and claim tokens, browser tokens and registrations older than 90 days; change the windows with access-gate.pruning.retention_days.events, .claim_tokens, .browser_tokens and .registrations. To schedule it yourself, set ACCESS_GATE_PRUNE_SCHEDULE=false (config key access-gate.pruning.schedule).

  • Applied a path-mounted site’s lockdown to host-level Livewire component updates by following the originating page, failing closed when the origin is missing or foreign.

  • Added a security weakness check with package-owned posture evidence.

  • Verify token digests in constant time after selecting candidates by a digest prefix; previously issued tokens remain valid.

  • Added optional whole-site lockdown with site/domain policy inheritance, environment-forced host protection, shared-password, assigned-account and trusted-proxy authentication, session revision invalidation, private crawler headers, lockdown robots handling, cache/static purging, admin extension fields and diagnostics.

  • Added HTTP Basic support and an optional one-time query-password exchange, which is off by default (see the upgrade note below). When enabled, query credentials are removed by an immediate clean redirect, but upstream request logs can still observe the initial URL.

  • Added redacted lockdown-attempt auditing, password-confirmed recoverable-secret reveal, explicit protected-site static-generation refusal, and credential-free policy portability for site duplication and SiteSpec import/export.

  • Rejected host-only public allowlist entries so an exception must name an exact URL or a path pattern.

  • Changed missing Access Gate storage from fail-open to a no-store 503 response, preventing protected content exposure during incomplete migrations.

  • Prepared package metadata and documentation for ongoing Capell 0.0.x package work.