Users and keys
Give every person and agent its own key and groups.
Every call through Godelgate belongs to a user. Each user has a key, which their MCP client sends as a bearer token, and a list of groups that policy rules can target.
users:
- name: alice
key: ${ALICE_KEY}
groups: [engineering]
- name: bob
key: ${BOB_KEY}
groups: [sales]
- name: nightly-report-agent
key: ${REPORT_AGENT_KEY}
groups: [agents]| Field | Required | Description |
|---|---|---|
name | yes | Shown in the dashboard and audit log |
key | yes | At least 16 characters. Use ${VAR} to read it from the environment. |
groups | no | Group names for rules, default [] |
#Generating keys
openssl rand -hex 24Store keys in your secret manager and inject them as environment variables. Don't commit them in godelgate.yaml.
#People and agents
Give unattended agents their own user instead of reusing a person's key. Then you can write stricter rules for them, for example denying instead of queuing approvals nobody will see, and the audit log shows exactly which agent did what.
#Rotating a key
- Set the new value of the user's variable.
- Restart Godelgate.
- Update the user's client. Sessions opened with the old key stop working.
#Admin access
The dashboard and /api/* use a separate admin token, set with GODELGATE_ADMIN_TOKEN or admin.token. User keys can't access the admin API.
Single sign-on (OIDC) is on the roadmap. Until then, keys are the way to tie calls to people.