Skip to content
MisterShell
15 / 27 Exit tour

Session policy

A firewall for sessions and commands

  • Two checkpoints. When the session opens, and on every command, checked at the worker.

  • Default deny. With no matching Accept rule, the connection or command is refused.

Chained commands are split

rule: accept, ACL “ls *”

$ ls; rm -rf /

ls → accepted

rm -rf / → no rule, denied

The whole line is blocked; the session stays open.

mistershell.com

Notes

Session Policy is evaluated at connection time and again for every shell command, at the worker. Rules select on resource and session types, locations, tags, roles and command ACLs; they are checked top to bottom and the first match decides. If nothing matches, the answer is deny — the seeded Default allow rule keeps a fresh installation usable. Command lines are split on chaining operators and every piece must be accepted, so a rule that allows “ls *” does not let “ls; rm -rf /” through.