Share a machine
On this page
You can let another Raven account use one of your machines. The machine keeps the rules: which directories the account can read, and whether it can run commands. Raven only carries the requests. You need minion 0.12.0 or later on the machine.
Choose what to share
A token has one of two roles:
| Role | What the holder can do |
|---|---|
| Read only | Read, list and search files in the directories of the lists that the token uses. Nothing else. |
| Run commands | Run any command and read and write any file as the account that runs minion. Directory lists do not limit it. |
Give the role Run commands only to a person you trust with the machine. The holder can also change the access settings of minion. When minion runs as root, the holder controls the whole machine.
A directory list is a named set of directories. Every machine starts with an empty list named default. A read-only token reads the directories of all its lists together.
Read-only tokens cannot read these files, even inside a shared directory:
- Files that look like secrets, such as
.env,.ssh/, private keys (id_rsa,*.pem,*.key) and.git-credentials. - The configuration of minion itself.
The access page lists the secret-looking files it finds in each list. To share one of them, select Allow. Raven finds such files by their names only. A secret in a file with an ordinary name stays readable, so share only the directories that you mean to share.
Share from Raven
The machine must be online.
- Open Settings, then Devices.
- Select the row of the machine, then select Manage access.
- Under Directory lists, add the directories to a list, or create a new list. To pick a directory on the machine, select Browse.
- Under Access tokens, select New token. Enter a name, select the role, and select the lists.
- Copy the share that Raven shows. Raven shows it only once.
- Give the share to the other person.
To change a role or the lists of a token, use its controls on the same page. To stop the access, select the trash icon of the token and confirm. The work that the token started stops.
Share from the terminal
On the machine, minion access changes the same settings. It works without a connection to Raven.
| Command | Effect |
|---|---|
minion access | Show the lists, the tokens and the allowed files. |
minion access list create NAME | Create a list. |
minion access list add LIST DIR | Add a directory to a list. |
minion access list remove LIST DIR | Remove a directory from a list. |
minion access token create NAME --list LIST | Create a read-only token and print its share once. Add --role exec for the role Run commands, and --days N to make it expire. |
minion access token set TOKEN --role read | Change the role, the lists (--list, --no-lists) or the name of a token. |
minion access token revoke TOKEN | Revoke a token. Its running work stops within seconds. |
minion access allow FILE | Let read-only tokens read a file that looks like a secret. minion access disallow FILE takes it back. |
The token named Raven is the one that Raven uses for your own conversations. minion logout revokes it.
Use a shared machine
- Open Settings, then Devices.
- Select Add a shared machine.
- Paste the share and select Add.
The machine must be online when you add it. A share works for one account only. Your Build conversations can then use the machine, and it shows Shared with you. On a read-only machine, the agent can only read the shared directories.
To see the calls that your conversations sent to the machine, select its row. On that page, select Show your access to see what your token can reach.
To give the machine back, select its trash icon. Raven forgets the token, and the machine revokes it when it is online.
What the owner sees
The owner sees which account holds each token. In the activity log of the machine, the owner sees the tool, the input, the outcome and the account of each call. The owner does not see the result or the conversation of your calls. The owner can still read anything on the machine.