# Limits of protection

> For the complete documentation index, see [llms.txt](https://docs-stg.ringleader.dev/llms.txt).


> A workstation does not prevent every risk, and each limit comes with what to do about it.


A workstation does not prevent every risk. A key you deliver to it is readable by every program there, an `egress` policy does not close DNS or keep a Google Cloud workstation from its own cloud credentials, and the settings do not protect against someone with administrator rights on your computer. Each limit below comes with what to do about it.

## Keys on the workstation

Ringleader delivers a key to the workstation in the places that
[Places that name a Secret](https://docs-stg.ringleader.dev/reference/resources/secret/#places-that-name-a-secret)
lists. [Secrets on the workstation](https://docs-stg.ringleader.dev/security/credentials/secret-handling/#secrets-on-the-workstation)
says what that exposes. If a key has to stay off the workstation, use a credential injection rule, or
`source: ringleader` for a model key.

A credential injection rule sets a header and nothing else. What the key may do is decided by the API
that issued it, not by the rule. A token that may push to `acme/web` can push anything to it. The same
goes for models. A policy's model list judges only the model written in the Integration. A program on
the workstation can still ask the model endpoint for another. Give a key only the access it needs
before you put it in a Secret.

On a local workstation, Ringleader holds an injected key from an ordinary Secret on the computer that
runs the workstation, so whoever uses that computer could read it. A key from a Ringleader-only Secret
reaches a computer only when the Secret's owner runs their own node-bound workstation on it. Ringleader
then holds the key only in memory there, outside the workstation.
[Keys on local workstations](https://docs-stg.ringleader.dev/security/credentials/injected-credentials/#keys-on-local-workstations)
lists every condition.

Credential injection reaches Docker containers and the pods of a kind cluster, but not other container
runtimes.
[Containers on the workstation](https://docs-stg.ringleader.dev/security/credentials/injection-effects/#containers-on-the-workstation)
says which.

## Connections a policy does not stop

With no `egress` block, the workstation reaches anything your network routes, your local network
included. If you do not want that, start with `audit` to see what the workstation needs, then move to
`strict`. [Workstation reach audit](https://docs-stg.ringleader.dev/security/outbound/reach-audit/)
shows how. To keep it off your local network alone, give it an `open` policy that denies
`privateNetworks`, as
[Keep a workstation off your local network](https://docs-stg.ringleader.dev/security/outbound/outbound-restrictions/#keep-a-workstation-off-your-local-network)
shows.

A deny list does not close every path to what it names, and the destinations Ringleader needs to
manage the workstation stay reachable.
[Limits of a deny list](https://docs-stg.ringleader.dev/security/outbound/filtering/#limits-of-a-deny-list) lists them.

A request to an allowed host is read only where a rule asks for it. For a host that no rule injects a
key into or inspects, Ringleader decides on the name the connection presents and decrypts nothing. To
have each request's `Host` header checked against that name, set `inspect: true` on the rule, as
[Host inspection and exclusion](https://docs-stg.ringleader.dev/security/credentials/host-inspection-exclusion/) shows.
`inspect` checks only that header. It does not filter what the request sends.

An `egress` policy does not restrict DNS. Any name resolves, so data encoded into names can leave
through your resolver, slowly. [Limits of filtering by name](https://docs-stg.ringleader.dev/security/outbound/filtering/#limits-of-filtering-by-name)
says how to restrict that on a cloud.

On Google Cloud, an `egress` policy does not keep a workstation away from its own cloud credentials.
[Cloud metadata endpoints](https://docs-stg.ringleader.dev/security/outbound/filtering/#cloud-metadata-endpoints) says
what to do about it.

## People and programs the settings protect against

Ringleader enforces an `egress` block and a credential injection rule outside the workstation.
They protect you from the agent and from anything it runs, including a program that runs as
root in the VM. The agent cannot change them.

They do not protect you from another program or person on your computer. The settings run as
your user, so they do not stop anything else that runs as you, and they do not stop you.

The table compares what each can read, reach and change, for a workstation set up as
[Lock down Claude Code for unattended runs](https://docs-stg.ringleader.dev/guides/lock-down-claude-code/):

| | The agent in the workstation | Another program or person on your computer |
| --- | --- | --- |
| Your files | Reads none of them. | Reads what your user can read. |
| The GitHub token | Never sees it. | The token for a local workstation is held on your computer, so it could read it. |
| The model key | Never sees it. It can use it through the endpoint. | Cannot read it: it stays with Ringleader. From a shell on the workstation, it can use it through the endpoint. |
| Where the workstation connects | With a `strict` `egress` block, only the destinations it allows. | Not limited by the workstation's settings. |
| The settings themselves | Cannot change them. | Can change them, as described next. |

The person who uses the computer can change the settings in three ways:

- They can edit a node-bound workstation like any member, within your organization's policies.
- They can sign out, then turn a node-bound workstation into one stored only on the computer
  with [`rl workstation orphan`](https://docs-stg.ringleader.dev/reference/cli/commands/workstation-access/#rl-workstation-orphan-name).
  From then on no Policy or OrgPolicy judges what it names. If your organization forbids its
  members' computers to store workstations, `rl` refuses the orphan.
- They can change any setting of a workstation stored only on the computer. The rules your
  organization sets for the computer still apply, as the next section describes.

## Rules on your own computer

Your organization can set three kinds of rule for your computer. They cover storing workstations,
which providers they use and what they reach of your computer. They run in Ringleader's own program on
your computer, as
[Rules your organization sets for your computer](https://docs-stg.ringleader.dev/security/model/enforced-protections/#rules-your-organization-sets-for-your-computer)
describes. Someone with administrator rights on that computer can remove them, for example by
deleting `~/.ringleader`. On a computer your organization manages, a device management tool can
[require organization sign-in on managed computers](https://docs-stg.ringleader.dev/guides/require-sign-in-managed-computers/),
so that `rl` refuses to run until someone signs in again and the rules come back.

## Limits of the sign-in requirement

The setting keeps a sign-out or a deleted `~/.ringleader` from removing your organization's
rules. It does not stop these:

- An administrator of the computer can remove the setting, by deleting the profile or the
  registry values.
- `rl` keeps the person's sign-in in their own files under `~/.ringleader`. A person who edits
  those files by hand can make `rl` believe someone is signed in.
- The setting covers the computer, not its workstations. `rl` inside a workstation runs as usual.

[Require organization sign-in on managed computers](https://docs-stg.ringleader.dev/guides/require-sign-in-managed-computers/)
shows how to set it.

## Folders you share

<div class="callout callout-warning">
  <p class="callout-title">A writable share is open to the agent</p>
  <div class="callout-body">
    Everything inside a workstation can change a folder you share writable, exactly as your Mac
user can. A read-only share cannot be changed, even by root. Share a project folder, never
your home folder, which holds <code>~/.ringleader</code> and the SSH key for every local workstation.
  </div>
</div>


The local container runtime, the workstation that serves your `docker` commands, shares
your Mac's folders on purpose. Run a coding agent in a workstation of its own, not in the
runtime.

## Next steps

- [Lock down Claude Code for unattended runs](https://docs-stg.ringleader.dev/guides/lock-down-claude-code/) sets up
  Claude Code on your own computer so that the rules hold outside the workstation.
- [Outbound restrictions](https://docs-stg.ringleader.dev/security/outbound/outbound-restrictions/) writes the `egress` block.
- [Injected credentials](https://docs-stg.ringleader.dev/security/credentials/injected-credentials/) adds a key to a request outside the workstation.
- [Policy and OrgPolicy](https://docs-stg.ringleader.dev/reference/resources/policy/) lists the limits an organization can set.
- [Edge management](https://docs-stg.ringleader.dev/security/outbound/edge-management/) says when a workstation needs an Edge.

