Skip to content
Isonapse
Install

Recipes

Starter policies for your kind of work, and rules to add to your own policy. Each page shows the whole file, how to try it without changing anything, and what it does not do. For what you can set up, start from Use cases; to write your own, see Write your own rules.

Starter policies

A whole policy, applied with one command. It replaces your current policy, which is backed up first.

Rules to add to your policy

One kind of rule each, with an example to copy into your own policy and try first.

  • Keep agents out of folders

    One rule per folder keeps agents from reading or writing it, however the agent spells the path. A file merely named like the folder is outside it.

  • Block, ask about or allow specific commands

    Decide what happens to one command, such as rm in the shell: refuse it with a message that says what to use instead, ask first, or allow it.

  • Block whole kinds of action

    Refuse every action of a kind, such as any sudo or dd command, for every agent. Only an action rule that names that exact action can allow it again.

  • Choose the sites an agent may fetch

    Block sites outright, or allow only the sites you list. Blocked beats allowed, and a list of allowed sites refuses every other site.

  • Limit how fast an agent can act

    Cap how many actions of a kind an agent may take per minute, hour or day. A limit on the shell counts every shell command together.

  • Protect files by pattern

    Refuse reads or writes of files that match a pattern, such as .env.* or *.pem, in any folder.

Stuck? Help finds the message you see.