Keyturn docsHow-to guides

Find risky ACLs and fix them safely

  1. Audit. Every database's ACL on every server, with the findings an auditor asks about.
    keyturn acl audit apps --context-group domain
    keyturn acl audit --all-servers -o csv > acl-findings.csv
  2. Write the fix as a plan, one line per change, each naming its server.
    keyturn plan -f fix-acls.txt
  3. Apply with one code per server. Keyturn reads every ACL back.
    keyturn apply keyturn-plan-*.json --otp-cmd 'otp $SERVER'
acl audit output
The audit. Each finding has a RESULT column, so you can sort and filter in Excel with -o csv.
plan from fix-acls.txt
The plan. Each step's server, tier, and how undo would reverse it; a count per server; and the plan's hash.
plan applied
Applied, with one code per server and each ACL read back.

Changed your mind? Undo the run

keyturn batch status
keyturn undo 20261110-051721-76d0 --dry-run
keyturn undo 20261110-051721-76d0 --otp-cmd 'otp $SERVER'
undo dry run
Preview the undo: the reverse steps, last change first.
undo done
Undone, every ACL read back.

More ACL tools: acl show, acl set, acl role-add, acl copy, acl export, acl consistent, acl manage --folder apps --add "Auditors" --level reader for many databases, and acl purge-name "Raj Patel/Sales/Acme" --yes to remove a name from every ACL through AdminP.