Skip to content

Auditing reseller ACL templates — finding the ACLs you no longer need granted

cPanel adds ACLs on every major release. ACL templates drift toward overly broad over time. A short audit pattern that catches accumulated grants before they become incidents.

A reseller has been on the same ACL template since 2022. cPanel has shipped four major versions in that time, adding new ACLs that propagated to the template through the all-acl granted at creation. The reseller now has permissions you never intended to give — to fetch backups across the server, to push DNS to peers, to read other resellers’ bandwidth. An ACL audit catches the accumulation; cleanup is straightforward once you have the diff.

What’s happening

cPanel introduces new ACL keywords with most major releases. A template with all-acl granted (the default for the defaultacls template) auto-includes them; a template with explicit ACLs does not. Resellers created against defaultacls inherit all-acl; new ACLs cPanel ships are silently granted to them. The audit is to enumerate the current ACL universe, list what each template actually grants, and either explicit-list the templates or revoke specific ACLs you don’t want granted broadly.

How to verify

Read the full ACL universe and what each template grants:

whmapi1 listacls
ls /var/cpanel/acllists/
cat /var/cpanel/acllists/defaultacls
cat /var/cpanel/acllists/reseller-standard
diff /var/cpanel/acllists/defaultacls /var/cpanel/acllists/reseller-standard
whmapi1 get_reseller_acl_list user=acmevpn

The listacls output is the complete set of ACL keywords cPanel knows about on this version. Compare against each template; ACLs present in listacls but not in your template are not granted to resellers using that template.

The fix

  1. Build an “ACL universe” diff quarterly: whmapi1 listacls > /tmp/acl-universe.txt after each major cPanel upgrade. Compare against the prior version’s universe; any new ACL is a candidate for explicit policy decision.
  2. For each ACL added since the last audit, decide: grant to all resellers (most), grant to specific reseller classes (some), or never grant. Update each template accordingly.
  3. Convert all-acl templates to explicit lists. The transition is one-time work: get the current list with listacls, save it as the template, then remove the keywords you don’t want granted.
  4. Use ACL-class templates rather than one template per reseller. Three or four classes (standard, power, readonly, billing-only) cover most needs. Per-reseller templates become a maintenance nightmare.
  5. Audit which template each reseller uses: for r in $(whmapi1 list_resellers --output=json | jq -r '.data.resellers[]'); do echo "$r -> $(whmapi1 get_reseller_acl_list user=$r --output=json | jq -r '.data.acl_list_name')"; done. Resellers on defaultacls are your accumulated drift; migrate them to a defined class.

For multi-server environments where ACL drift compounds, Stack Harbor’s cPanel server management practice maintains ACL templates as code with an audit at every cPanel major-version release so new ACLs never auto-propagate to resellers.