DATABASE_URL and a shell on the
host is already authenticated by both.
Synopsis
Owner@Acme.Example and owner@acme.example are the same
account.
Subcommands
bootstrap
platform_admin, and only the first. It refuses once any
staff account exists, with a message ending:
reset
bootstrap.
It is the only password recovery there is: the console has no self-service
reset.
reset changes the password only. It does not remove or replace the account’s
second factor, and no other command does either.
list
no staff accounts; run: staffctl bootstrap <email>.
org create
The staff console’s Add customer does the same and records who did it and why, so prefer it
where you can reach the console. See Staff console.
SIGNUP_MODE=invite_only, an account can only be
created against a pending invitation, an invitation needs an organization to
invite into, and an invitation cannot confer the owner role. The first owner
therefore cannot arrive through either door, and org create is the one that
opens. See Sign-up and sign-in.
Details worth knowing before you run it:
- It refuses an address that already has an account. That person may already belong to another organization. Invite them from inside the organization instead.
- The address is marked verified. You vouched for it by typing it. That is what later lets the owner link a GitHub, GitLab or Google sign-in to the same account.
- The owner’s display name is the organization name followed by
owner. They can change it after signing in. - Nothing forces a password change. Ask the owner to change it at first sign-in.
demo-estate
A demo organization holds real scans of public images and no connected
cluster, so nothing in it is exposed and it has no attack path to show. This
records one cluster inventory, sample-cluster (demo data), through the same
path a cluster collection writes: two namespaces of workloads that run the
organization’s four scanned images with the most open critical and high
vulnerabilities (by their scanned digest), a public LoadBalancer and an
Ingress in front of two of them, a service account bound to cluster-admin, a
privileged container and a credential written into a manifest. Its posture
findings come from the real check corpus, and the security graph and risk pass
then run as they do after any collection.
The cluster and its workloads are sample data and say so in their names; every
vulnerability on a path is a finding from a real scan. Running it again
updates the same cluster. It refuses an organization with no scanned image
that has an open critical or high vulnerability.
Environment it reads
Nothing else, except
backup-env and alert-webhook, which load the worker configuration for
TOKEN_ENCRYPTION_KEY, the key the stored settings are sealed with: run it in
the API container, which has it. The other subcommands do not load the API
configuration, so they need no JWT_SECRET or TOKEN_ENCRYPTION_KEY. It loads ../.env if present.
The application’s own login role is sufficient: staffctl writes through the
same repositories the API uses, and the migrations grant that role the staff
tables. You do not need the schema owner.
Running it
- Production Compose
- Published image
- From source
The backend image ships the binary at
/app/staffctl, and the api
container already has DATABASE_URL:bootstrap, reset and org create from an interactive terminal you
trust. Each prints a credential to standard output, and a pipeline that
captures output keeps it.
Related
- Staff console: what the accounts this command creates can do.
- Sign-up and sign-in: the sign-up modes
that make
org createnecessary. - Support access: the customer’s side of a support session.