guid.foo gofer-sidecar

The browser that gofer adds to a pod: Chrome for Testing behind an MCP server.

0 58 pulls 4 Updated 9h
20261204183432-0d45a1e MIT Source Docs
docker pull seamark.cr/guid.foo/gofer-sidecar:latest
Image Size Layers
282.7 MB 21
Pushed 9h
Vulnerabilities
Loading...
Pulls
58 total
Last pull 9h

gofer

gofer adds a web browser to a Kubernetes pod.
The browser stays logged in from one pod to the next, and it can pay
without the workload seeing the card number. Any workload can use it.
An AI agent, for example, can order supplies, or watch a few stores and
buy under a budget.

You label a pod with the name of a BrowserProfile:

metadata:
  labels:
    gofer.guid.foo/profile: shopping

gofer’s webhook then adds a sidecar to the pod. The sidecar runs
Chrome for Testing
under Playwright MCP, an
MCP server from the
Playwright project. The pod’s other
containers connect to it at http://127.0.0.1:8931/mcp.

A BrowserProfile is one identity on the web. The workload logs in
through the browser the first time. gofer saves the profile’s cookies
and storage, encrypted, so the next pod with that profile starts
logged in.

gofer needs none of its author’s other projects.
simmer runs Claude Code sessions
in a cluster. A session gets a browser when the pod template of its
Duty, Mandate, or Console has gofer’s label.

Install

gofer needs:

  • Kubernetes 1.31 or newer, with a default StorageClass.
  • kubectl, the flux CLI, and
    crane.
  • A login for atcr.io on your machine and on
    every node. The install skill shows how.
  • Encryption at rest for Secret objects, turned on in the API
    server. gofer does not check that it is on.

Each release is a kustomize base at
oci://atcr.io/guid.foo/gofer-deploy. Fetch the newest release and
apply it:

tag=$(crane ls atcr.io/guid.foo/gofer-deploy | sort | tail -n 1)
mkdir -p gofer-deploy
flux pull artifact "oci://atcr.io/guid.foo/gofer-deploy:$tag" --output gofer-deploy
kubectl apply -k gofer-deploy
kubectl -n gofer-system rollout status deploy/gofer

The operator runs in the gofer-system namespace. On its first start,
it creates the Secret gofer-kek, the key to every profile’s logins.
If you lose it, you lose those logins. Copy it now, and store the copy
apart from any backup of the operator’s volume:

kubectl -n gofer-system get secret gofer-kek -o yaml > gofer-kek.yaml

First use

Declare a profile that may reach example.com, and a pod that uses it.
The pod’s workload is an MCP client that ships in the sidecar’s image,
so you need no image of your own:

# first.yaml
apiVersion: gofer.guid.foo/v1alpha1
kind: BrowserProfile
metadata: { name: first, namespace: default }
spec:
  serviceAccounts: [default]
  egress:
    hosts: [example.com]
---
apiVersion: v1
kind: Pod
metadata:
  name: first
  namespace: default
  labels:
    gofer.guid.foo/profile: first
spec:
  restartPolicy: Never
  containers:
    - name: workload
      image: atcr.io/guid.foo/gofer-sidecar:latest
      command: [node, /app/workload.mjs,
        '[["browser_navigate", {"url": "https://example.com"}], ["browser_snapshot"]]']
      securityContext: { runAsUser: 1002, runAsGroup: 1002 }

Keep the runAsUser. The webhook denies a container that runs as the
browser’s user, and that user is the image’s default. Apply the file
and read the result:

kubectl apply -f first.yaml
kubectl get browserprofile first
kubectl wait --for=jsonpath='{.status.phase}'=Succeeded pod/first --timeout=5m
kubectl logs first -c workload

kubectl get browserprofile shows READY as True. The pod’s log
lists the browser’s tools, then a snapshot of the page with the heading
“Example Domain”. An agent connects the same way, to
http://127.0.0.1:8931/mcp.

To fill a card number, add it to the profile from a Secret in the
profile’s namespace. List the https origins where the browser may
type it:

spec:
  serviceAccounts: [agent]
  egress:
    hosts: ['*.stripe.com', shop.example]
  secrets:
    - name: card
      secretKeyRef: { name: card, key: number }
      origins: [https://shop.example, https://js.stripe.com]

A profile with a secret must also list its egress.hosts. The workload
calls browser_fill_secret with the secret’s name and the field’s ref
from a snapshot.

The workload never sees the value. Snapshots show [secret:card], and
screenshots mask the field.

Skills

skills/ holds a guide for each task, as
Agent Skills:

  • install: install the operator, let pods
    pull the sidecar, back up its key, follow releases, and remove it.
  • declare-a-profile: declare a
    BrowserProfile, with its hosts and secrets, and give a pod its
    browser.
  • use-the-browser: the tools an
    agent calls, filling a secret, and what the next pod keeps.
  • replace-the-ca: follow the CA’s
    rollover, restart the workloads whose sidecars do not trust the new
    CA, and replace a leaked CA.
  • troubleshoot: find why a pod gets
    no browser, a page does not load, or logins did not carry over.

The repository is its own plugin marketplace. In
Claude Code:

claude plugin marketplace add https://tangled.org/guid.foo/gofer.git
claude plugin install gofer@gofer

In Codex:

codex plugin marketplace add https://tangled.org/guid.foo/gofer.git
codex plugin add gofer@gofer

Any other agent that reads Agent Skills can take skills/ directly.

More

The design is in plans/00-design.md.

MIT. See LICENSE.

Report a problem at https://tangled.org/guid.foo/gofer/issues.