Members and roles¶
People sign in to rendimiento with GitHub, GitLab or Bitbucket (whichever are connected), and only members get in. Each member has a role that says what they may do; every route of the API checks it, so the UI and the API agree.
| Role | May |
|---|---|
| Guest | see everything (except apps whose list leaves them out): apps, runs and their logs, releases, the Universe, the Ruta, encargos |
| Collaborator | also: run CI, cancel runs, write the Ruta, ask agents for things and review what they hand over, edit Mercado pages, turn Renovate on for an app |
| Administrator | also: deploy and roll back, read and change secrets, onboard and remove apps, manage add-ons, agent keys, members, and update the platform |
Adding someone¶
On Members (your name, first in the account's menu at the right of the top bar), people are listed by role on the left; choosing one shows their role and, line by line, what they can do. An administrator presses Add someone, picks the forja the person's account is on (only the forjas connected on the Environment page show), writes their username there and picks their role; the form says the name they will come in as, and with which button (Entrará como [email protected], con «Iniciar sesión con GitLab»). They can sign in from then on, at the same address. Changing a role or removing someone takes effect on their next click; a removed person is signed out at once. An organization always keeps at least one administrator.
Each forja names its people its own way, and Members, the setup page and ALLOWED_USERS take the same names:
| Forja | Name |
|---|---|
| GitHub | ana |
| GitLab | [email protected], or [email protected] for your own GitLab |
| Bitbucket | [email protected] |
A person with accounts on several forjas is added once, by one of them, and links the others themselves from Your accounts: they stay one member, with their roles and their Ruta.
Disconnecting a forja¶
Before an administrator removes a GitLab or a Bitbucket workspace on the Environment page, rendimiento says, by name, who could no longer sign in: the members whose only account is on that forja. It never removes the last forja an administrator signs in with: the page and the API (409) refuse, and name the administrator. Link another account to them (Your accounts) or take their role away first.
Who enters an app¶
A person's role holds on every app of the organization, unless the app has its own list. An administrator of the organization keeps it on the app's Settings tab, under Who enters:
- Without a list (as every app starts), everyone in the organization enters the app with their role in the organization.
- Choose who enters gives the app a list. Then only the people on it enter, each with the role the list gives them for this app, lower or higher than their role in the organization: a collaborator can be a guest on one app, a guest a collaborator on another. For everyone else the app does not exist: it is left out of their lists (apps, runs, encargos, requests, the Universe, the bitácora, the activity notices, problems) and its pages answer not found, as another organization's app does.
- The organization's administrators always enter every app, as administrators, so a list can never lock them out; they are not put on lists.
- Let everyone in the organization enter forgets the list, and the app goes back to the organization's roles.
Only people of the organization can be put on a list. Someone taken out of the organization is taken off its apps' lists too: if they come back, they start off every list. A demo link's guest is treated as any guest: it does not see an app whose list leaves it out.
An agent key acts for the organization, not for a person, so people's lists do not apply to it; a key has its own list of apps, chosen when it is made, and its tools see and act on those apps only.
The first administrators¶
Whoever installs the platform from its setup page becomes its first administrator: they proved the setup token, and they come back from the forja they authorized signed in, even if no setting names them. On the third step they add the other administrators (by forja and username), or later on Members.
The ALLOWED_USERS setting can name them too, with the same names ([email protected],[email protected]). They are added once, while there are no members; after that, people are managed on the Members page and the setting no longer counts.
Organizations¶
Everything belongs to an organization: its apps (with their runs, releases and requests), its Ruta, encargos, agent keys and members. People of one organization never see another's: lists leave them out, and their pages answer not found. A person can belong to several, with a role in each, and switches with the selector at the top; the role that counts is the one in the organization they are working in.
The platform's organization (the first one) runs the platform. Its administrators are the operators: they alone see the cluster's pages (Environment, Add-ons, Services, Problems, the Mercado), update the platform, and, for now, create organizations (under Members → Organizations). The administrators of every organization create its apps with New app, from the GitHub accounts their organization may use (below). An agent key belongs to the organization it was made in, and its tools see only that organization.
GitHub accounts¶
An app is created from a repository the GitHub App can reach: an installation of the App on a GitHub account (a person's or a GitHub organization's). Which installations an organization may use:
- The platform's organization uses every installation the App allows (all of them, or those in
GITHUB_ACCOUNTS). Its operators do too, in whichever organization they are working in. - Any other organization uses only the installations it was given, and never sees the others: not in New app, not by typing an installation's number (the answer is the same whether it does not exist or another organization uses it). It gets one in two ways:
- The App on your own GitHub account. An administrator installs the GitHub App on their own GitHub account (the link is in New app), reloads the page and presses Connect. rendimiento connects it only when the account's login is the one they signed in with, which GitHub's sign-in proves; nothing else is asked of GitHub.
- A GitHub organization's account, given by an operator under Members → Organizations → Which GitHub accounts each organization can use. There is no proof of who administers a GitHub organization without asking GitHub for more permissions, so an operator decides. The same list takes an installation away again.
Taking one away stops new apps from it; the organization's apps keep building from it. A repository must be on the installation's own account. For anyone to install it on their account, the GitHub App must be public (a private App installs only on the account that owns it), and, when GITHUB_ACCOUNTS is set, the account must be in it.
App names¶
An app's name is also its address in rendimiento and its namespace in the cluster, so it is one across the installation. The platform's organization keeps the names it gives. In any other organization the name carries the organization's address in front: «tienda» in the organization almacen is almacen-tienda, in rendimiento and in the cluster. Two organizations can each have their «tienda», and neither is told what the other has. The New app page shows the full name before you confirm.
Three rules keep the names apart:
- The platform's organization cannot name an app with another organization's address in front (
almacen-…). - A new organization's address cannot begin the address of another (
almacenandalmacen-norte), nor the name of an app that already exists. - With the address in front, a name has at most 63 characters, the limit of a namespace. Keep an organization's address short.
Migrating an app that already runs in the cluster (taking over its namespace) is only for the platform's organization, and so is sharedNamespace (deploying into a namespace that rendimiento does not own): an app of another organization always has a namespace of its own. Two rules keep addresses apart too: no app takes an address that an app of another organization already claims in its rendimiento.yaml, even before that app is live, and no app of another organization takes the platform's own address. They are checked when the app is created and on every push; a push that breaks one is not built, and its run says why.
All organizations share the platform's cluster. There, each app's namespace carries its organization's label, and the operator can turn on a network policy that lets in only the organization's own namespaces and the ingress controller, and a quota of CPU and memory per organization. One service account still manages every namespace, and builds share one namespace, BuildKit and registry: see Organizations in the cluster. Organizations in a dedicated virtual cluster, or on their own cluster in any cloud, come later.
Demo links¶
A demo link lets someone without a GitHub account here (a reviewer, an investor) look around one organization, read-only. An administrator makes it at the bottom of Members, with a note for themselves (who it is for) and how long it lasts, from 7 to 90 days. The address, https://<platform>/demo/<code>, is shown only once; rendimiento keeps only the code's hash.
Opening it signs the browser in as that link's own guest, with Read-only demo in the top bar. The guest sees the organization's apps, runs, logs, encargos and Ruta, and nothing else: it cannot act even if someone raised its role, never sees the cluster's pages, and cannot switch to another organization. Turn off ends the link and the sessions it opened at once; an expired link stops working by itself.
The platform's own organization has no demo links, since its guests see the cluster. Make an organization for the demo (Members → Organizations), switch to it, and make the link there.