Teams and access
A team owns functions, members have one of three roles, and API keys let CI deploy without a browser.
Every function belongs to exactly one team. The console is scoped to one team at
a time — the team picker is the entry point, and each URL is /<team-slug>/….
The model is deliberately small: three roles, no per-function permissions, no nested teams, no organisation layer. Identity comes from your Xeonr Auth session.
Roles
| Viewer | Editor | Owner | |
|---|---|---|---|
| See functions, versions, files, stats, build logs, activity | ✓ | ✓ | ✓ |
| See what is connected | ✓ | ✓ | ✓ |
| Create, update and delete functions | ✓ | ✓ | |
| Deploy, promote, roll back, redeploy | ✓ | ✓ | |
| Edit files in the browser | ✓ | ✓ | |
| Connect and disconnect repositories | ✓ | ✓ | |
| Rename or delete the team | ✓ | ||
| Add, change and remove members | ✓ | ||
| Create and revoke API keys | ✓ |
Roles are cumulative: an owner can do everything an editor can.
Members
Owners invite members by email. An invited member is pending until they sign in for the first time; from then on the membership is anchored to their identity rather than to the address, so a later email change at the identity provider does not lose it.
A team keeps at least one owner — the last one cannot be demoted or removed.
API keys
API keys are how CI deploys without a browser. Create one in the console under
API keys, or with the SDK's
teams.createApiKey().
curl -X POST https://functions.xeonr.io/xeonr.functions.v2.VersionsService/CreateVersion \
-H "Authorization: Bearer xk_…" \
-H "content-type: application/json" \
-d '{"functionId": "fn-…", "git": {}}'A key is a Xeonr Auth API key owned by the team. It is created by a team admin, and:
- Belongs to one team, with one role — editor or viewer. Never admin: a key
that could mint more keys would make revocation meaningless. The role is
stored as scopes:
functions:functions:editfor an editor,functions:functions:readfor a viewer. - Survives its creator. The team owns it, not the person who created it.
- Cannot reach team management. Keys authenticate the function API only, so a key leaked in a pipeline log is worth "deploy into one team", not "own it".
- Is shown once. Only the hash is stored, so the value in the create response is unrepeatable by design. Lost keys are replaced, not recovered.
- Can expire. Pick a lifetime when you create it, or none.
- Records when it was last used, which is what makes an unused key safe to revoke.
Revoke a key from the console; it stops working within 30 seconds.
Team API tokens created before keys moved to Xeonr Auth start fnt_…. They
were imported as keys, so they keep working unchanged and appear in the same
list, where they can be revoked like any other key.
Activity
Every change is recorded with who did it, against which function, and when, in
the Xeonr platform audit log. ListTeamActivity reads a team's feed from there,
newest first. The actor is a person's Xeonr username (or their subject URN, such
as urn:xeonr:auth:uid:user:42, until the audit log has resolved it; never an
email address), token:<name> for an API key, or webhook:<provider> for a
push.
Recorded actions:
function.create function.update function.delete
function.deploy function.promote function.redeploy
git.connect git.select_repo git.disconnect
files.edit
token.create token.deletefiles.edit is recorded at most once per person and function every ten
minutes, so an editing session doesn't bury the deploys around it.
Page through the feed with limit (default 50, at most 500) and pass each
response's nextCursor back as cursor. The cursor is opaque.
Administrators bypass role checks but not the audit trail — an admin acting is still recorded as themselves.