Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

SSH certificates

Every organization has its own Ed25519 SSH certificate authority. Instead of copying public keys into authorized_keys on every server, you make each server trust the CA once. Members then get short-lived certificates from Qubit when they connect, and access ends when the certificate expires.

1. Trust the CA on your servers

Open Certificates under Organization. It shows the CA's Public key and a Server setup script to run once on each server.
The Certificate authority page with the public key and the server setup commands
The Certificate authority page with the public key and the server setup commands
Or fetch the key from the server, which needs no sign-in:
curl -fsS https://cloud.usequbit.app/api/v1/orgs/<org-id>/ca.pub \ | sudo tee /etc/ssh/qubit_user_ca.pub echo 'TrustedUserCAKeys /etc/ssh/qubit_user_ca.pub' | sudo tee /etc/ssh/sshd_config.d/qubit.conf sudo systemctl reload sshd
On a self-hosted server, use its address instead of cloud.usequbit.app.

2. Write access policies

A policy says which roles may get a certificate, for which logins, on which hosts, for how long. Owners and admins manage them under Access policies.
Two access policies: Production on-call for owners and admins, and Engineers read-only for members
Two access policies: Production on-call for owners and admins, and Engineers read-only for members
Choose New policy:
Field
NameFor example "Production on-call".
RolesWho it applies to. At least one.
LoginsThe remote usernames (principals) the certificate allows, such as deploy. Letters, digits, _, . and -, up to 32 characters.
HostsHost patterns such as *.acme.dev or 10.0.*. Empty means any host.
Certificate lifetime (hours)The longest a certificate may last. The server allows up to 7 days (168 hours).

3. Connect

On a host, turn on Use org certificate and pick a Key. When you connect, Qubit asks the server to sign that key for the host's username and address. The server picks the policy that allows your role, that login and that host, with the longest lifetime, and signs a certificate valid from now until then.
If no policy allows it, the connection fails with a message naming the role, login and host, and the audit log records the denied request.
Each certificate's key ID is your email address, so it shows up in sshd's logs. Its serial number is random, and every certificate issued or denied is in the audit log.

Things to know

  • Host patterns are checked only when a certificate is issued. The certificate carries logins, not hostnames: one issued for db-* with the login deploy works on any server that trusts the CA and accepts deploy. To really separate servers, give each group its own login (deploy-db, deploy-web) and use AuthorizedPrincipalsFile.
  • The server holds the CA's private key, encrypted, because it must sign. Whoever runs the server can mint certificates for its organizations. See What the server can see.
  • Certificates are Ed25519. OpenSSH has no post-quantum certificate signatures yet.