Home

Access Control List

An access control list defines who can access a resource and what operations they are permitted to perform on it.

An access control list (ACL) is a data structure attached to a resource that specifies which users, groups, or systems are permitted to access it and what actions they are allowed to take. A file might have an ACL that allows one user to read and edit it, another user to read it only, and blocks everyone else entirely. A database table might have an ACL that allows certain applications to query it but not modify it. Network equipment uses ACLs to filter traffic based on IP addresses, ports, and protocols.

ACLs operate at the resource level rather than the user level. This means access rules are defined on the resource itself, not centrally in a user's profile. A user's effective permissions are determined by consulting the ACL of each resource they attempt to access. This resource-centric approach allows for fine-grained control: different rules for different files, API endpoints, database records, or network segments without requiring separate accounts or complex role hierarchies.

How ACLs Work

An ACL is typically implemented as a list of entries. Each entry specifies a principal (a user, group, or system identifier) and a set of permissions (read, write, execute, delete, or domain-specific operations). When a user attempts to access a resource, the system checks the ACL to determine whether the user's identifier appears in the list and whether the requested operation is permitted.

ACL entries can be positive (granting access) or negative (explicitly denying access). Deny entries typically take precedence over allow entries, ensuring that explicit denials cannot be overridden by broader permissions. Some systems support inheritance, where resources automatically adopt the ACL of a parent container unless overridden.

ACLs are evaluated at access time. Every request to open a file, execute a query, or connect to a network resource triggers an ACL check. The performance impact of this check depends on the size of the ACL and the efficiency of the lookup mechanism.

ACLs in Different Contexts

File systems have used ACLs since the 1970s. UNIX-based systems traditionally used a simple owner/group/other permission model, but modern systems support extended ACLs that allow permissions to be assigned to multiple users and groups per file. Windows NTFS has supported ACLs natively since its introduction, with detailed permission types including read, write, execute, delete, change permissions, and take ownership.

Databases use ACLs to control access to tables, views, stored procedures, and schemas. A database ACL might allow a reporting application to execute SELECT queries on a sales table but deny INSERT or UPDATE operations. Row-level ACLs further refine access, allowing different users to see different subsets of data within the same table.

Network devices use ACLs to filter traffic. A router ACL might block all incoming traffic from a specific IP range or allow only HTTPS traffic to reach a web server. Firewall ACLs define which packets are permitted to traverse network boundaries based on source address, destination address, port, and protocol.

Cloud storage services implement ACLs to control access to buckets, objects, and API operations. An S3 bucket might have an ACL that allows public read access to static assets but restricts write access to a specific application role. Cloud ACLs often integrate with identity providers to map external user identities to access rules.

ACLs vs Role-Based Access Control

ACLs and role-based access control (RBAC) are complementary approaches to managing permissions. RBAC assigns users to roles, and roles are granted permissions. A user's effective permissions are determined by the roles they hold. ACLs, by contrast, define permissions directly on resources.

RBAC scales better when many users need the same permissions. Defining a "billing_admin" role once and assigning users to it is simpler than maintaining individual ACL entries for every user on every invoice-related resource. ACLs scale better when permissions vary significantly by resource. Granting read-only access to a specific document or allowing one client to see only their own records is more naturally expressed as an ACL than as a role.

Many systems use both. A user's role might grant them general access to a category of resources, while ACLs refine permissions for specific items. A project manager role might grant access to the project management module, but an ACL on a specific project restricts visibility to team members assigned to that project.

ACL Maintenance and Complexity

ACLs require maintenance. As users join, leave, or change roles, ACL entries must be updated or removed. When resources are created, ACLs must be configured correctly to avoid accidental exposure. When organizational structures change, ACLs that reference old groups or departments must be revised.

Large ACLs can become difficult to audit. A file with fifty entries, half of which reference users who no longer work at the company, is a security liability. Regular ACL audits identify stale entries, overly permissive rules, and inconsistencies.

ACL inheritance reduces maintenance burden but introduces complexity. A resource that inherits permissions from a parent container may have effective permissions that are not immediately visible when inspecting the resource itself. Debugging access denials in systems with deep inheritance hierarchies requires tracing the ACL chain up to the root.

Some organizations limit ACL use to high-value resources where fine-grained control justifies the maintenance cost. For most resources, coarse-grained RBAC provides sufficient control with less overhead.

ACLs in Multi-Tenant Systems

Multi-tenant SaaS platforms use ACLs to enforce tenant isolation. Each tenant's data is tagged with a tenant identifier, and ACLs ensure that queries and API requests only return data belonging to the requesting tenant. A misconfigured ACL in a multi-tenant system can leak data across tenant boundaries, a critical security failure.

ACL checks in multi-tenant systems happen at multiple layers. The application enforces ACLs at the API level, ensuring that incoming requests include valid credentials and tenant context. The database enforces ACLs at the query level, filtering results to include only rows that match the tenant identifier. Infrastructure ACLs ensure that database credentials used by the application cannot access tables belonging to other tenants.

Tenant-aware ACLs often include a "superuser" or "support" role that can access data across tenants for troubleshooting or compliance purposes. These roles require strict auditing. Every access by a superuser should be logged with justification, and access should be time-limited or require multi-person approval.

ACLs and Compliance

Regulatory frameworks often require organizations to demonstrate that they control access to sensitive data. ACLs provide the technical mechanism for this control. Audit logs that record ACL checks, access attempts, and permission changes are a standard requirement for compliance with GDPR, HIPAA, SOC 2, and similar standards.

ACLs must align with data classification policies. Data classified as confidential should have ACLs that restrict access to a small set of authorized users. Public data should have ACLs that permit broad access while still preventing unauthorized modification.

Some regulations require periodic access reviews. ACL entries are compared against a list of authorized personnel, and any mismatches trigger remediation. Automated tooling can flag ACL entries that reference inactive accounts or grant permissions inconsistent with documented policies.

Common ACL Mistakes

Default-allow ACLs are a frequent source of security incidents. A resource created without an explicit ACL may inherit overly permissive defaults, granting access to users who should not have it. Secure systems default to deny and require explicit allow entries.

Ignoring deny entries is another mistake. A system that only checks for allow entries and assumes absence means denial will fail to enforce explicit denials, allowing access that should be blocked.

ACLs that reference individual users rather than groups become unmanageable as the organization grows. When a user leaves, every ACL entry referencing that user must be found and removed. Group-based ACLs reduce this burden: remove the user from the group, and all associated permissions are revoked automatically.

Not logging ACL checks makes it impossible to detect unauthorized access attempts or debug permission issues. Audit logs should record who accessed what, when, and whether the ACL check succeeded or failed.

Stackord uses ACLs to control access to projects, invoices, and client records. Team members see only the resources relevant to their role and project assignments. Try Stackord for free.