Access control
Who may reach a tunnel, and how to leave one path open for a webhook.
A tunnel is public by default, like every other tunnel product. Say --allow
and it stops being.
burrow http 3000 --allow team # your team, via Xeonr Auth
burrow http 3000 --allow team:platform --allow user:[email protected]
burrow http 3000 --allow any-signed-in
burrow http 3000 --basic-auth deploy:s3cretRules
| Rule | Admits |
|---|---|
public | anybody |
any-signed-in | any Xeonr Auth identity |
team | the team that owns the tunnel |
team:<slug> | a named team |
user:<email> | one person |
group:<name> | a group from the auth claim |
email-domain:<d> | anybody with a verified address there |
basic:<user>:<pass> | HTTP basic — the escape hatch for a script |
header:<name>=<value> | a shared secret in a header |
cidr:<range> | a source IP range (the only rule a TCP or UDP tunnel can use) |
Rules are additive: any one of them matching admits the request.
Per-route escape hatches
The common case is a dev app behind your team with one path that has to stay open, because Stripe cannot sign in:
burrow http 3000 --allow team --public-route 'POST /webhooks/*'A policy is an ordered list of routes and first match wins, so the webhook
route has to come before the catch-all — which is what --public-route does for
you. Routes tighten as readily as they loosen; the console's editor writes the
list directly:
access:
routes:
- match: POST /webhooks/*
allow: [header:x-stripe-secret=…]
- match: GET /health
allow: [public]
- match: /admin/*
allow: [group:platform-admins]
- match: /*
allow: [team]match is [METHOD ]path-glob. * matches within a path segment, ** across
them. A path no route covers is refused: a policy without a catch-all is a
closed door.
Which route admitted a request is recorded against it, so
burrow log --tunnel x answers "why did this get in?" rather than leaving it to
be guessed at.
Signing in to a gated tunnel
A visitor with no session is sent to the console, signed in there, and returned to the tunnel with a ticket. The session that results is scoped to that one hostname — a ticket from one tunnel is refused at another, and no cookie is ever set on the shared domain. That means a tunnel's owner cannot read other people's sessions out of their own request log.
The interstitial
The first time a browser navigates to a public tunnel, it gets a page saying
whose it is and that nothing on it has been reviewed. Automated clients —
webhooks, curl, API clients, and any request that is not a top-level browser
navigation — are never shown it, so an integration cannot break on it. Send
X-Burrow-Skip-Warning: 1 to skip it explicitly.