Granting Access Using Security Policy
Describes how to grant access to objects using ACEs in a security policy.
About this task
You can define access controls in a security policy using the Control System, CLI, and REST API.
Defining Access Controls in Security Policy Using the Control System
Procedure
Granting Access Using the CLI and REST API
About this task
Use the following command to set access controls when creating a
security policy:
/opt/mapr/bin/maprcli security policy create -<ACEparam> <ACEsyntax>
Use the following command to specify Access Control Expression (ACE)s when modifying a
security policy:
/opt/mapr/bin/maprcli security policy modify -<ACEparam> <ACEsyntax>Send a request of type POST. For example:
curl -k -X POST ''https://<hostname>:8443/rest/security/policy/create?name=<policyName>&<ACEparam>=<ACEsyntax>' --user <username>:<pwd>curl -k -X POST 'https://<hostname>:8443/rest/security/policy/modify?name=<policyName>&<ACEparam>=<ACEsyntax>' --user <username>:<pwd>- Directories
readdiraceto read the contents of a directory. See Read for Directories in the Defining Access Controls in Security Policy Using the Control System section for more information.lookupdiraceto lookup or list the contents in a directory. See Lookup for Directories in the Defining Access Controls in Security Policy Using the Control System section for more information.addchildaceto add a file or subdirectory. See Add for Directories in the Defining Access Controls in Security Policy Using the Control System section for more information.deletechildaceto delete a file or subdirectory. See Delete for Directories in the Defining Access Controls in Security Policy Using the Control System section for more information.
- Files
readfileaceto read a file. See Read for Files in the Defining Access Controls in Security Policy Using the Control System section for more information.writefileaceto write to a file. See Write for Files in the Defining Access Controls in Security Policy Using the Control System section for more information.executefileaceto execute a file. See Execute for Files in the Defining Access Controls in Security Policy Using the Control System section for more information.
- JSON Tables
readdbaceto read new column families that are created in the table.traversedbaceto descend a hierarchy of column families.writedbaceto write to new column families that are created in the table.unmaskedreaddbaceto read data masked.