- Go 88%
- Shell 9%
- Docker 2%
- Makefile <1%
gofer #
gofer is a Kubernetes operator that gives a pod a browser of its own. A pod asks for one with a label, and gofer adds a sidecar that runs Chromium and serves it to the pod's other containers as an MCP server on localhost. The logins that the browser collects outlive the pod: gofer keeps each identity's cookies and storage, encrypted, and the next pod that asks for the same identity starts logged in. Secrets such as card numbers reach the browser without reaching the workload.
It is built for AI agents that run errands on the web: an agent that orders supplies, or watches a few stores for a price and buys under a budget, needs a browser that stays logged in, and needs to pay without holding the card number.
plans/00-design.md is the design, and plans/completed/ holds what
is built and what each step showed.
Use it #
Install the operator from the OCI artifact
oci://atcr.io/guid.foo/gofer-deploy, which CI publishes from
deploy/ under the same tag as the operator's and the sidecar's
images, and which pins both. A tag is the UTC time of the build and the
short commit hash, such as 20261124062000-1a2b3c4, and latest names
the newest. CI builds a new tag every day with Chrome's current stable
version. Then declare a profile and label a pod:
apiVersion: gofer.guid.foo/v1alpha1
kind: BrowserProfile
metadata:
name: shopping
namespace: errands
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]
---
apiVersion: v1
kind: Pod
metadata:
name: agent
namespace: errands
labels:
gofer.guid.foo/profile: shopping
spec:
serviceAccountName: agent
containers:
- name: agent
image: my-agent
The pod's containers reach the browser at http://127.0.0.1:8931/mcp.
The operator serves its metrics, under gofer_, at :9200/metrics,
and a /healthz there that fails until its watches have synced. The
component deploy/monitoring adds a PodMonitor for a cluster that runs
the prometheus-operator. Each transition of a profile's SecretsFound
and Ready conditions posts an Event on the profile, and a stored state
older than the version the status records posts the Warning
StateRolledBack.
e2e/ holds the experiments that test a cluster end to end.