atlasent-policy CLI
atlasent-policy treats your authorization policies like code. Keep them
as YAML or JSON files in a repo, review them in pull requests, see exactly
what will change with plan, and publish on merge with apply.
validate, test, convert, and verify-bundle run without network
access, using the same rule engine the runtime uses. plan, pull, and
apply talk to AtlaSent, and only apply writes.
Install
The CLI is not published to npm.
npm install -g @atlasent/cli
returns a 404; don’t use it. The CLI ships as one bundled file in the
public Atlasent/atlasent-policies
repository.atlasent-policy for short; substitute
npx github:Atlasent/atlasent-policies#v1.
Configuration
Commands
dir defaults to policies/.
A policy file
One file per action type.rules is the same rule object the runtime
evaluates:
plan tells you
if it doesn’t.
Tests
Put test cases next to the policy as<action_type>.tests.yaml. now fixes
the clock, so tests are deterministic whenever they run:
rules. They don’t exercise action-class
requirements such as MFA, verified actor identity, or human approval, which
the runtime enforces separately, so a passing test isn’t a guarantee of a
live allow.
CI integration
The public repository also ships a GitHub Action that runsplan on pull
requests and apply on merge:
policy:read key for pull-request plans and a
policy:write key only on the apply job.
What this CLI doesn’t do
- Decide for the runtime. The runtime is always the source of truth for authorization decisions. The CLI lets you check that the rules you wrote say what you meant before you publish them.
- Bypass governed publishing.
applypublishes through the governed path in the runtime. If an action class has an approval chain, the publish is refused and the job exits1with the reason.