Casvisor
Access control

Connect rules

Permissions decide which assets a user may reach and what they may do there. Connect rules decide how they may reach them. For example: contractors only in the browser, where sessions are recorded and the clipboard follows the permission; no port forwarding to production, since forwarded bytes go through as they are; no SFTP to the database servers. The page is for administrators: Connect rules (/connect-rules).

Ways to connect

MethodWhat it covers
BrowserThe web terminal, VNC and RDP in the browser, the database console, websites and the file panel
SSH clientA terminal or a command through the SSH gateway: ssh, Xshell, VS Code Remote
SFTP client, scp and rsyncFile transfer through the SSH gateway: sftp, WinSCP, FileZilla, scp and rsync
Port forwardingssh -L through the SSH gateway, and one-time forwarding commands from the local clients menu
Remote Desktop Connectionmstsc through the Remote Desktop Gateway

Fields

FieldMeaning
PriorityRules are tried from the smallest priority up, and the first one that matches decides.
ActionReject or Allow.
MethodsThe ways to connect the rule covers; every method when empty.
AccountsThe system accounts of the assets it covers, such as root; every account when empty.
Users, GroupsWho it covers; everyone when both are empty.
Assets, Asset tagsWhich assets it covers; every asset when both are empty.
EnabledOff means the rule is ignored.

* in users, groups, assets, tags or accounts covers all of them. When no rule matches, the connection goes on as far as the permissions allow, so rules can only take ways away, never grant access. To make an exception to a wide Reject rule, put an Allow rule with a smaller priority in front of it, for example Allow for the group ops at priority 10 and Reject for everyone at priority 50.

Where they apply

A rule is checked whenever a connection starts: opening an asset in the browser, signing in through the SSH gateway and starting a shell, a command, SFTP or a forwarded port, issuing a one-time link or command from the local clients menu, and mstsc reaching the Remote Desktop Gateway. A rejected connection says which rule stopped it, such as the connect rule: no-forward does not let you connect to the asset: db-01 with port forwarding. Rules apply to administrators too. Changing a rule affects new connections; open sessions go on.

Edit on GitHub

On this page