What an agent's computer can reach
Agents' computers reach only the hosts they need, and never see your repository tokens.
Can an agent's computer reach the internet?
Only the hosts it is allowed to reach. Everything else is blocked. By default those are:
- GitHub, for cloning and fetching
- The npm registry
- Kliff itself
- The hosts of the repositories the agent works on
To allow more, add them under Allowed hosts in an environment, one host per line. Environments are on the Cloud page.
When an agent searches the web or fetches a page, Kliff does that for it, outside its computer.
Does the computer hold my repository token?
No. Kliff adds the token to the computer's git requests on the way out, and only for the repositories the agent works on. A token lasts about an hour and is replaced while the agent works. When the agent pushes, Kliff uses a separate token for that one push, then revokes it.
Deleting an agent revokes its tokens.
Where do secrets for the computer go?
Add them under Secrets in an environment. Setup and the agent get them as environment variables. Values are encrypted and never shown again.
In an environment shared with the organization, Your personal secrets are seen only by you and given only to your own runs and agents. They replace the environment's secrets of the same name.
Only an environment's creator, or an admin for an organization environment, can change it. Everyone can change their own personal secrets.
Can an agent push anywhere it likes?
No. It pushes only to its own branch, and only when pushing is allowed for the repository. It opens draft pull requests, and it cannot merge, approve, or close anything. On a repository Kliff hosts, Kliff pushes to the default branch instead.