ACL¶
Here is the acl interface definition in order to implement a new acl backend. It is composed by three classes.
- class burpui.misc.acl.interface.BUIaclLoader(app=None)[source]¶
The
burpui.misc.acl.interface.BUIaclLoader
class is used to load the actual ACL backend- abstract property acl¶
Property to retrieve the backend
- abstract property grants¶
Property to retrieve the list of grants
- abstract property groups¶
Property to retrieve the list of groups with their members
- class burpui.misc.acl.interface.BUIacl(app=None)[source]¶
The
burpui.misc.acl.interface.BUIacl
class represents the ACL engine.- abstract is_admin(username=None)[source]¶
burpui.misc.acl.interface.BUIacl.is_admin()
is used to know if a user has administrator rights.- Parameters:
username (str) – Username to check
- Returns:
True if the user has admin rights, otherwise False
- Return type:
bool
- abstract is_client_allowed(username=None, client=None, server=None)[source]¶
burpui.misc.acl.interface.BUIacl.is_client_allowed()
tells us if a given user has access to a given client on a given server.- Parameters:
username (str) – Username to check
client (str) – Client to check
server (str) – Server to check
- Returns:
True if username is granted, otherwise False
- Return type:
bool
- abstract is_client_rw(username=None, client=None, server=None)[source]¶
burpui.misc.acl.interface.BUIacl.is_client_rw()
tells us if a given user has access to a given client on a given server in RW mode.- Parameters:
username (str) – Username to check
client (str) – Client to check
server (str) – Server to check
- Returns:
True if username is granted, otherwise False
- Return type:
bool
- abstract is_moderator(username=None)[source]¶
burpui.misc.acl.interface.BUIacl.is_moderator()
is used to know if a user has moderator rights.- Parameters:
username (str) – Username to check
- Returns:
True if the user has moderator rights, otherwise False
- Return type:
bool
- abstract is_server_allowed(username=None, server=None)[source]¶
burpui.misc.acl.interface.BUIacl.is_server_allowed()
tells us if a given user has access to a given server.- Parameters:
username (str) – Username to check
server (str) – Server to check
- Returns:
True if username is granted, otherwise False
- Return type:
bool
- abstract is_server_rw(username=None, server=None)[source]¶
burpui.misc.acl.interface.BUIacl.is_server_rw()
tells us if a given user has access to a given server in RW mode.- Parameters:
username (str) – Username to check
server (str) – Server to check
- Returns:
True if username is granted, otherwise False
- Return type:
bool
- class burpui.misc.acl.meta.BUIgrantHandler(app=None)[source]¶
This class is here to handle grants in a generic way. It will automatically merge grants from various backends that register to it
- property grants¶
grants managed by our handler
- property groups¶
groups managed by our handler
- property id¶
current handler id, used to detect configuration changes
- init_app(app)¶
Register the given app
- property options¶
options of our ACL engine
- register_backend(name, backend)[source]¶
register a new ACL backend
- Parameters:
name (str) – Backend name
backend (
burpui.misc.acl.interface.BUIaclLoader
) – ACL Backend