Access control
By default, everyone who can sign in to the hub can use all of it. That includes opening a shell on the vulnbox, pushing rules, approving hook proposals and writing to a service's database. For a small team that trusts itself, that is the right default. If you configure nothing, nothing changes.
A larger team can restrict individual features to groups: shells only for the people on vulnbox duty, database writes only for two people, the access policy itself only for the captains. Groups come from the sign-in:
- With OpenID Connect, from the ID token's
groupsclaim (see Deploying the hub). - Behind a proxy, from
X-Forwarded-Groups, comma separated. The proxy sets this header, and like the user header, it must remove any copy a client sends.
Viewing is never restricted. Flows, alerts, containers' state, proposals, pushes, topology and the browser's audit log stay open to everyone signed in. Only actions are restricted, the ones that act on the vulnbox or reach into its data.
Permissions
| Permission | Allows |
|---|---|
rules.push | pushing rules files to vulnboxd, and cancelling pending pushes |
files.pull | pulling files from the containers into the hub and downloading what was pulled (the Files tab, and downloads in the volume browser) |
proposals.apply | approving hook proposals (committed and deployed on the vulnbox), and reverting proposal pushes |
bisect.run | starting and stopping a deploy bisect |
containers.restart | restarting containers |
containers.inspect | the full inspect output, environment variables (and the secrets in them) included |
containers.logs | reading and following container logs |
shells.open | opening an interactive shell in a container |
shells.replay | playing back recordings of past shell sessions |
browser.files | listing, reading and previewing files in the containers' volumes |
db.read | seeing database targets with their credentials, and opening read-only sessions to browse, query and export |
db.write | opening database sessions with writes allowed |
adminer | starting, stopping and using the Adminer fallback (starting and using it also need db.read and db.write) |
alerts.admin | mutes, the alert settings and webhooks, accepting into and resetting baselines |
grpc.schema | uploading, importing and removing gRPC schemas |
settings.edit | the anomaly detection and host monitoring settings |
access.admin | changing this policy |
Acknowledging alerts, notes, tags, stars, views, tag rules, rule previews and script generation stay open to everyone. They are team annotations and do not touch the vulnbox.
Each permission has a list of groups. Someone in any one of those groups has the permission. An empty list means everyone has it. Group names must match exactly, including case.
db.write comes on top of db.read: opening a writable session needs both. Taking db.write away also stops queries in a writable session that was opened earlier. Adminer is a full read/write SQL client, so starting it needs adminer, db.read and db.write, and every request on the Adminer host checks all three again against the groups the player had when the sign-in link was made. Downloading a file from the volume browser is a file pull, so it needs files.pull.
In the hub
Settings → Access shows every permission, who holds it, and your own groups and permissions. Members of access.admin (everyone, until it is restricted) edit the groups there as tags. Leaving a permission's list empty gives it back to everyone.


The policy is part of the hub's settings, so it is versioned. If two people edit it at once, the second one is told it changed and sees the newer version. The editor shows recently refused attempts too, to help a team admin notice someone who lacks a permission they need.
When you lack a permission, its buttons are disabled. Hovering one says which permission it needs, so you know whom to ask. If you try anyway (from an old tab, or through the API), the hub answers 403 permission_denied naming the permission and writes the attempt to its audit log.
You cannot lock yourself out. The hub refuses to save a policy that would take access.admin from the person saving it. To hand the policy over to another group, include one of your own groups until they have taken over.
Fixing it at deploy time
Anyone with access.admin can widen any permission again. Usually that is fine, but you can also take that power away from the hub entirely. In the chart's values:
auth:
access:
# Only these groups may change the policy in the hub, whatever it says.
adminGroups: [ctf-captains]
# These permissions are fixed: the hub's settings cannot change them.
policy:
shells.open: [vulnbox-duty]
db.write: [vulnbox-duty]
adminer: [] # an empty list fixes it to everyone; starting Adminer also needs
# db.read and db.write, so here only vulnbox-duty canWhen installing by hand, the same goes in HUB_ACCESS_ADMIN_GROUPS=ctf-captains and HUB_ACCESS_POLICY='{"shells.open":["vulnbox-duty"],"db.write":["vulnbox-duty"],"adminer":[]}' on vulnboxd-hub api.
Settings → Access shows a lock on fixed permissions, and they cannot be edited there. With adminGroups set, the lock-out guard is off: whoever deploys the hub can always put things right.
If either value names a permission that does not exist, the API refuses to start, so a typo cannot silently leave a feature open.
Good to know
- Changes take effect within two seconds on every API replica.
- Group membership is read at sign-in. Each session keeps the groups it signed in with until it expires (
auth.sessionTtl, 12 hours by default). If you remove someone from a group at the issuer, they keep it in the hub until they sign in again or the session expires. To cut everyone off at once, change the session key, which signs everyone out. - Open shells and Adminer. A permission is checked when a shell opens, so a shell that is already open stays open. Adminer checks on every request.
- Viewing never needs a permission. If what someone may see matters, the place to decide that is who may sign in at all (
auth.allowedGroups).