Permissions & Security
Packages protects commercial source archives, customer license keys, and CI publishing tokens across every layer of the stack.
RBAC Permissions (3)
Section titled “RBAC Permissions (3)”| 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. |
Cryptographic & Storage Protections
Section titled “Cryptographic & Storage Protections”KeyCodecSecret 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 beforeEntrieswrites revision history snapshots so historical revisions never leak credentials. - Private Archive Storage (
Nginx 403): Release ZIPs live undersite/assets/packages/, which must return HTTP403to direct web requests (location ^~ /site/assets/packages/ { return 403; }). - Portal Cache & History Hardening: Authenticated
/portal/*pages enforceencryptHistory(true)andCache-Control: private, no-store, max-age=0, andPOST /portal/logoutcallsInertia::clearHistory(true). - Sliding-Window Rate Limits:
entries_tbl_packages_rate_limitsthrottles brute-force attempts against/packages/api/verify,/composer/*, and/packages/download/*.