dgtlss/clearance
Clearance is a lightweight Laravel package for simple, expressive access control. Define permissions and check authorization with clean, readable code, integrating smoothly with Laravel’s gates and policies while keeping authorization logic organized and easy to maintain.
Clearance v1.0.1 is a security release for a Laravel/PHP CI policy package. It addresses a v1.0.0 bypass where a PR could widen access, update its own clearance.lock.json, and still pass clearance:check. The new --baseline=<git ref> option compares the PR’s verification against a lock from a trusted Git commit and prevents PR-local approvals from overriding that baseline.
fetch-depth: 0) and run php artisan clearance:check --baseline=origin/main. CODEOWNERS and required code-owner review are needed to protect the lock, workflow, and verification configuration. Upgrading without --baseline does not close the bypass.3 for missing refs or invalid baseline locks can break pipelines if unhandled. Baseline ref selection, monorepo paths, and symlink handling need validation per repository.--baseline. Do not treat the package upgrade alone as remediation. Pilot on one representative repository, verify baseline failures and warnings, then roll out via shared CI templates.3 distinctly from ordinary verification failures.fetch-depth: 0; add the baseline command to PR CI; protect lock/workflow/config files with CODEOWNERS and required review; run alongside Warden/Advisor checks; enforce as a required status only after pilot validation; document remediation for exit code 3 and lock-change warnings.3, baseline ref changes, lock-change warnings, and CODEOWNERS review expectations.3. Checkout lock changes produce warnings but are not blocked unless the baseline command is enforced. Warden/Advisor integrations retain checkout-lock behavior if run alone. Monorepo path and symlink redirection issues require regression testing.How can I help you explore Laravel packages today?