Skip to content

Permissions & Security

Packages protects commercial source archives, customer license keys, and CI publishing tokens across every layer of the stack.

Permission Scope
packages-view Read-only access to Overview, Packages, Releases, Tiers, Bundles, Licenses, Activations, Billing Ledger, and Download Logs.
packages-manage Manage packages, releases, tiers, bundles, issue/renew/upgrade/suspend/revoke licenses, and deactivate domain activations.
packages-admin Full administrative access including Registry Settings, rotating CI publish tokens (pkg_ci_...), and configuring GitHub webhook secrets.
  • KeyCodec Secret Sealing: License keys, GitHub access tokens, and webhook secrets are cryptographically sealed before database storage. Only masked key hints (PKG-...-XXXX) appear in admin tables and API lists.
  • Revision Masking (maskEntryItemForRevisions()): Strips sealed secrets before Entries writes revision history snapshots so historical revisions never leak credentials.
  • Private Archive Storage (Nginx 403): Release ZIPs live under site/assets/packages/, which must return HTTP 403 to direct web requests (location ^~ /site/assets/packages/ { return 403; }).
  • Portal Cache & History Hardening: Authenticated /portal/* pages enforce encryptHistory(true) and Cache-Control: private, no-store, max-age=0, and POST /portal/logout calls Inertia::clearHistory(true).
  • Sliding-Window Rate Limits: entries_tbl_packages_rate_limits throttles brute-force attempts against /packages/api/verify, /composer/*, and /packages/download/*.
Manage domain enforcement mode, CI publish tokens, and webhook secrets from Setup -> Packages -> Registry Settings.

Next steps