Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Clearance Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

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.

  • Architecture fit: Good fit for Laravel/PHP repositories already using Artisan commands in CI. It adds a Git-aware verification layer over lockfile-based access checks and complements existing Warden/Advisor integrations. It is not a full policy engine replacement; it is a CI gate hardening mechanism.
  • Integration feasibility: Technically straightforward but process-heavy. CI must fetch full history (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.
  • Technical risk: The primary risk is false assurance: teams may upgrade and assume the bypass is closed while still running checkout-lock behavior. New exit code 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.
  • Key questions: Which trusted ref should each repo use? Can all CI providers fetch full history? Who owns CODEOWNERS and lockfile review? Are Warden and Advisor jobs updated to run the Git-baseline command alongside their existing checks? Does the org’s PHP/Laravel matrix match the six tested combinations? How are existing lockfiles migrated or regenerated?

Integration Approach

  • Stack fit: Strong for Laravel/PHP teams using Artisan and Git-based CI. Requires CI runners with Git history and the ability to resolve the trusted baseline ref. Less suitable for shallow-clone or non-Git workflows without adjustment.
  • Migration path: Upgrade to v1.0.1, then immediately update PR CI to use --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.
  • Compatibility: The release reports 12 passing CI jobs across six supported PHP/Laravel combinations. Validate against the organization’s actual PHP/Laravel versions, CI provider, monorepo layout, and symlink usage. Scripts must handle exit code 3 distinctly from ordinary verification failures.
  • Sequencing: Inventory repositories and trusted branches; upgrade the package; update checkout steps to 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.

Operational Impact

  • Maintenance: Low code footprint but high security sensitivity. The lockfile, CI workflow, baseline ref, and CODEOWNERS rules become operationally important. Keep the package current and review future security notes carefully.
  • Support: Teams need CI and Git expertise to diagnose baseline failures, missing refs, and lockfile drift. A short runbook should cover exit code 3, baseline ref changes, lock-change warnings, and CODEOWNERS review expectations.
  • Scaling: Scales through centralized CI templates and per-repo baseline configuration. Full-history checkout can increase CI time, especially in large monorepos, so cache and fetch strategy should be reviewed. Per-PR baseline checks are otherwise predictable.
  • Failure modes: Missing baseline ref, missing or invalid baseline lock, and misconfigured fetch depth can fail CI with exit code 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.
  • Ramp-up: Moderate. Developers must understand that lockfile changes require CODEOWNERS review and that PR-local approvals cannot override the trusted baseline. TPM should coordinate security review, pilot validation, CI template updates, and developer communication before broad enforcement.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
cgv/localized-resource