Red Hat’s OpenShell walkthrough tests what read-only access actually blocks
A Universal Base Image demo separates GitHub API reads from writes, then shows how a coding agent can use a provider without seeing the real API key.
A coding agent may need to read from GitHub without being allowed to change anything there. Simply allowing the GitHub API hostname does not make that distinction. In a December 1 walkthrough, Red Hat Developer shows how OpenShell can distinguish a read from a write at the network boundary, without asking the model to make that decision itself. The walkthrough demonstrates an existing capability; it is not a new OpenShell release.
What the sandbox actually denied
The first test does not need a model or a coding agent. The author starts an OpenShell sandbox from Red Hat Universal Base Image 10 Minimal, with automatic providers disabled, and tries to read from the GitHub API with curl. The default policy denies the connection, and the log identifies the executable and destination. The author then adds a rule for that executable and endpoint with read-only access. The same GET succeeds, a POST is denied, and the new policy takes effect without restarting the sandbox.
That sequence is a useful acceptance test for platform teams: verify the default denial, the permitted operation and a forbidden operation separately. A successful read alone tells you that connectivity works, not that writes are blocked. The walkthrough describes a separate supervisor evaluating outbound requests against policy, while operating-system controls limit what the sandboxed workload can access or execute.
What the agent sees instead of the key
A separate example runs Claude Code in a custom UBI-based image. When the author inspects the sandbox’s ANTHROPIC_API_KEY environment variable, the result is an opaque placeholder rather than the real key. The walkthrough describes the supervisor substituting the real credential on authorized requests. The environment check verifies what the workload sees in that variable; it does not verify which destinations the imported provider profile authorizes. The GitHub read/write test does not test credential substitution.
Where to stop drawing conclusions
Use the small network test to verify policy before adding an agent and its credentials. The demonstration does not establish that every action inside an allowed destination is appropriate, or that a local container is sufficient isolation for shared infrastructure. Red Hat explicitly notes that ordinary containers can share a host kernel and points to VM-backed Kata Containers as an additional boundary for untrusted workloads.
sources
- Red Hat Developer: OpenShell: Enforceable boundaries for AI agentsdevelopers.redhat.com
comments · 0