Access Gate
Package docs status
Section titled “Package docs status”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.
| Field | Value |
|---|---|
| Composer package | capell-app/access-gate |
| Package slug | access-gate |
| Product group | Capell Security & Compliance |
| Tier | paid |
| Bundle | security-compliance |
| Runtime contexts | admin, frontend, console |
| Capell version | ^1.0 |
| Catalogue role | extension |
| Release channel | Beta |
| Docs source | packages/access-gate/docs |
| Manifest | capell.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.
Quick Start
Section titled “Quick Start”- Install the package:
composer require capell-app/access-gate. - Run the package setup:
php artisan capell:access-gate-install. - Open the package admin surface at
/admin/access-gate/access-areasand confirm Access Gate is available.
For Developers
Section titled “For Developers”AccessGateMiddleware delegates access decisions to package Actions, while registries handle request methods and fields without adding that logic to core.
Configure
Section titled “Configure”- 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.
Limits And Pitfalls
Section titled “Limits And Pitfalls”- 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.phpbefore 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.
Screens And Workflow
Section titled “Screens And Workflow”



- 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).
Install Impact
Section titled “Install Impact”- 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; registersAccessGateRoutesContribution. - 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.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Likely cause | Check | Fix |
|---|---|---|---|
| Package health check reports a problem | Package configuration or runtime dependencies are not ready | Run php artisan capell:access-gate-doctor | Follow the reported checks, then rerun the doctor command |
| Package surface is missing after install | Provider or manifest is not loaded | Confirm capell.json, package composer.json, and provider registration | Reinstall the package, refresh Composer autoload, and clear host caches |
| Admin screen or command fails on missing table | Package migrations have not run | Check the tables listed in Data Model | Run host migrations and rerun the focused package test |
| Route returns unexpected output | Route cache, middleware, or signed URL setup does not match the package route file | Check the route files listed in Technical Shape | Clear route cache and verify middleware before exposing public routes |
| Background work does not run | Queue worker or declared schedule is not active | Check the jobs and scheduled commands listed in Technical Shape | Start the queue worker or host scheduler, then run the focused command or package test |
| Public output leaks unexpected state | Render data, cache variation, or authoring boundary has regressed | Check public Blade, cache tags, and public-output safety tests | Move data loading out of Blade and rerun the package public-output tests |
Upgrading
Section titled “Upgrading”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,Refererheaders 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, setACCESS_GATE_SITE_LOCKDOWN_QUERY_PASSWORD_ENABLED=true(config keyaccess-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-pruneis 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 withaccess-gate.pruning.retention_days.events,.claim_tokens,.browser_tokensand.registrations. To schedule it yourself, setACCESS_GATE_PRUNE_SCHEDULE=false(config keyaccess-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
503response, preventing protected content exposure during incomplete migrations. -
Prepared package metadata and documentation for ongoing Capell 0.0.x package work.
Next Steps
Section titled “Next Steps”- Package docs
- Overview
- Worked extension examples
- Admin guide
- Configuration files:
config/access-gate.php. - Troubleshooting
- Developer reference
- Marketplace assets
- Capell content language plan
- Capell documentation design system
- Capell and package ERD notes
- Related packages: Customer Portal, Diagnostics, HTML Cache, Payments, Public Actions.