Connectors

The clouds and services your servers run on, driven from Studio through their APIs: AWS, DigitalOcean, Hetzner, Cloudflare, Cipi, Boogle, Hackly and Johnny. Servers, DNS, firewalls, volumes, databases, apps, deploys, exceptions and security findings, without opening seven consoles.

studio.dev.agency.test/admin/connectors
Servers, zones and bucketsConnectors: AWS, DigitalOcean, Hetzner, Cloudflare, Cipi, Boogle, Hackly and Johnny.
  • Connectors: AWS, DigitalOcean, Hetzner, Cloudflare, Cipi, Boogle, Hackly and Johnny.
  • Turn on the ones the team uses, each with as many accounts as you need.
  • A project’s Infrastructure tab: everything it runs on, read live with the team’s accounts.
  • The Cipi app, the Boogle project, the bucket, the Droplet and the zone, as cards.
  • Deploy, roll back, logs, .env, cipi.yml: only the actions handed to each role.
  • Who sees it, who acts on it, and which actions they may run.
In motion. The connectors an administrator turns on, and what a project gets of them: cards in its Infrastructure tab, and only the actions handed to each role.
For administrators
Connector pages exist only for administrators. PMs, developers and clients never see the menu, the pages or the accounts; they see only what an administrator attached to their project, in its Infrastructure tab.
On or off
A connector is off until an administrator turns it on. Only the ones that are on appear in the menu, in the folding Infrastructure group after Tools.
Many accounts
Each connector holds any number of accounts: several AWS accounts, a DigitalOcean team per client, a Hetzner project each, one Cipi server each, several Boogle, Hackly or Johnny instances.
Credentials
Checked against the provider before they are saved, stored encrypted with APP_KEY, never shown again and never sent to the browser.

Turn a connector on#

Administration → Connectors: a card per infrastructure connector with its switch, DigitalOcean on with a 1 attached badge, and Git hosting with the service accounts below
Administration → Connectors. A card and a switch per connector; DigitalOcean is on, with one of its Droplets attached to a project. Below, Git hosting keeps the team's service accounts.
  1. Administration → Connectors. Each card says what the connector drives, how many accounts it has and how many of its things are attached to projects. Below the cards, Git hosting holds the team's git service accounts.
  2. Flip the switch. The connector shows in the menu right away; Open (or Add an account when it has none) takes you to its page.
  3. Turning it off removes it from the menu and closes its pages at the next click. Its accounts, and what is attached to projects, stay, ready for when it is turned on again; delete them from the connector page if they should go.

Accounts#

On a connector's page, Accounts (top right) lists the accounts with their state (working or failing, what the provider answered, when it was last checked) and opens the form.

  • Add: Add an account, a name the team recognises (Production, Client X, eu-server-2), the credentials the provider's page below describes, then Check and save. Studio calls the provider with them first: a wrong or too weak token is refused with the provider's own words and nothing is saved.
  • Check: the signal button asks the provider again, for instance after changing the token's permissions there.
  • Rotate a token: create the new one at the provider, Edit the account, paste it, save; then revoke the old one at the provider. Secret fields are empty in the form: left empty, the stored value stays.
  • Remove: deletes the account from Studio. The token still works at the provider until you revoke it there.

The links in the form lead to the page of this guide for that provider and to the provider's own documentation.

Working on a connector page#

The DigitalOcean page on the Droplets tab: the account picker, a list of Droplets with search and New Droplet, a Shop Acme badge on one row
A connector page. DigitalOcean's Droplets for the account picked at the top. The Shop Acme badge says that row is attached to that project.
  1. Account: the menu at the top picks the account; the arrow next to it reads everything again from the provider.
  2. Tabs: one per kind of thing (Droplets, Zones, Apps…). AWS has many, so they come in groups (Account, EC2, Lightsail, Databases, Storage & CDN, Route 53): the first row picks the group, the second the tab.
  3. Search and filters: the search box filters what is on screen; filters ask the provider again: the region for AWS, the Cloudflare account, the status of Boogle exceptions and Hackly findings.
  4. Create: the dark button on the right (New Droplet, Add a zone, New app…) opens a form. Choices such as regions, sizes, images, SSH keys or servers come from the provider for the account and region picked.
  5. Row actions: the … menu at the end of a row holds what can be done on it; only the actions that make sense in its state show (no Start on a running server). Buttons on the row itself open what lives inside it, such as the DNS records of a zone or the aliases of a Cipi app; the arrow at the top left goes back.
  6. Attach to a project: the … menu of a row also has Attach to a project…, and a badge on the row names each project it is attached to. See Attached to projects.
  7. Confirmations: anything that stops, deletes or overwrites asks first, in words that say what will happen. Actions with a form ask when the form is sent.
  8. Results: what an action hands back (a new root password, a generated private key, a database password, the nameservers to set, a TXT record to publish, logs, a zone file) opens in a window with Copy. Secrets are shown once: store them, for instance in the Password manager. When the provider is still working in the background (a Cipi deploy, for instance), the window says so and Check again asks once more.

Lists are cached for two minutes per account, so moving between tabs is quick and providers' rate limits are spared; every action from the page, and the refresh arrow, clear the cache of that account. A change made in the provider's own console shows here within two minutes, or at once with the arrow.

Safety. Every administrator can do, on every connector account, everything its credentials allow. The pages ask for your password again, as the SSH terminal does. Give each account the narrowest token that does its job (read only where nobody needs to act), and keep tokens with an expiry where the provider offers one. Every action is written to Studio's log, /opt/studio/shared/storage/logs/laravel.log on the server, as an infrastructure line with the person, the connector, the account, the tab, the action and the row, and the project resource when it ran from a project's tab: grep '"infrastructure"' laravel.log.

When something does not work#

Studio saysWhyWhat to do
Refused (401): check the credentialsThe token is wrong, expired or revokedCreate a new one and Edit the account
Not allowed (403): the token lacks a permissionThe token works but may not do thisAdd the permission at the provider (see its page below), then Check
Not reachableThe address is wrong, the host is down, or a firewall or IP allowlist stops Studio's serverCheck the address; allow Studio's IP (Cipi: cipi api ip-whitelist add)
An AWS code such as UnauthorizedOperation or AccessDeniedThe IAM policy lacks that actionAdd it to the policy below
That is no longer in the list. Refreshed.The row changed or went away at the provider since the page was drawnLook at the refreshed list and try again
An empty list where you expect thingsAnother account, region or filterCheck the account at the top and the filters; AWS lists one region at a time