Brewless Brewless Docs

Applications

Connecting providers

How to give Brewless access to your Scaleway account and your bunny.net account, which rights the key needs, and how to check them.

On this page

Brewless deploys into accounts you own. You connect them once per organisation, on the Providers page of the console.

Scaleway

You own the Scaleway account and Scaleway bills you directly. Brewless gets an API key of an IAM application you create for it, with the rights you give that application.

Create the key

In the Scaleway console, under IAM:

  1. Create an application, for example brewless.

  2. Create a policy for that application, with two rules:

    • Resource management, scope All projects: the permission sets in Scaleway permissions, such as ContainersFullAccess, ContainerRegistryFullAccess and ObjectStorageFullAccess. The optional ones are only needed for a Serverless SQL Database, a cache, a zone at Scaleway DNS or mail.
    • Organization management: IAMManager, and BillingReadOnly if you want the Costs page to show what Scaleway charged.

    The search box in that editor finds products, not permission sets. Search for the product, such as Serverless Containers for ContainersFullAccess or Cockpit for ObservabilityFullAccess, and tick the set it lists. The Providers page and Scaleway permissions name the product next to every set.

  3. Create an API key for that application. Choose your default project as its preferred project for Object Storage.

Then paste the access key, the secret key and the ID of that default project on the Providers page. What applications share, such as the zone of a domain at Scaleway DNS, stays in that project.

With both rules, every application you add gets a Scaleway project of its own, or shares the project of another application, as you choose when you add it. In the Scaleway console and on your Scaleway invoice you then see per application what belongs to it. IAMManager also lets Brewless make identities: keys of their own for the database, the bucket and the mail of each environment.

Warning

IAMManager is a wide right: Scaleway warns that whoever holds a key with it could give that key any other right in the organisation. Brewless needs it all the same, for the keys of each environment's database, bucket and mail; a key without it is not saved. Keep the secret key to Brewless alone.

Warning

Never use your own login or an owner key.

Brewless checks each right with a read-only call when you connect. If a required one is missing, you hear which permission set to add, and nothing is saved until the key has it.

The secret key is stored encrypted and never shown again.

Check rights

Check rights next to a connected project asks Scaleway again, with the same read-only calls, what its key may do. You get a list with a tick for every right the key has and a cross for every one it lacks, with the permission set that grants it and the rule it belongs in. Add the missing ones to the policy of the key in the Scaleway console and check again. A change to a policy can take a minute to reach every service. Nothing at Scaleway changes by checking, and every member of the organisation may do it.

Several Scaleway projects

You can connect more than one Scaleway project, for example your own and one in a client's account. Connect another project on the Providers page takes a key of that project and a name you choose, such as "Client production"; without a name it is called what Scaleway calls the project. Connecting a project that is already there replaces its key.

Each application runs in one project. When several are connected you choose it when you create the application; with one it is that one. The choice holds for all of the application's environments and does not change later. Applications made before a second project was connected stay in the project they ran in.

A project that applications with environments run in cannot be revoked: Brewless names those applications. Remove their environments first. Each connected Scaleway project is a cloud account of your plan; replacing a key takes no extra place, and bunny.net does not count. See Billing.

Provider status

Under Providers in the console, Scaleway status and bunny.net status show what each provider's own status page (status.scaleway.com, status.bunny.net) reports about what you use there: open incidents, maintenance that runs now or starts within 14 days, and incidents resolved in the last 30 days. Each one links to the provider's own page for it.

What counts as used at Scaleway:

  • Always, once an environment exists: Serverless Containers, Container Registry, Jobs, Secret Manager, Cockpit and the APIs.
  • Managed databases and caches, Serverless SQL Database, Object Storage, DNS and Transactional Email, when one of your environments has such a resource.
  • Queues, in a region that offers them.

A Scaleway incident counts for you when it names one of your environments' regions, or names no region at all.

At bunny.net: the CDN when you have a pull zone, DNS when you have a DNS zone there, and the API for either. bunny.net has no regions, so every incident on those counts.

An incident or maintenance about the provider's own billing (payments, invoices, credit cards, crypto, top-ups, refunds) never counts, at either provider, even when the provider attaches it to a product you use such as the API: nothing Brewless deploys or runs depends on it.

While an incident is open, or maintenance runs, on something you use, a banner at the top of every console page says so and leads to that provider's status page. With nothing going on, there is no banner.

Brewless reads the status pages when you open the console, and again each time you open one of them. Nothing is fetched in the background and nothing is stored.

bunny.net

bunny.net is the edge in front of your application: DNS, CDN and Shield. It is optional. Without it an environment is reached on its Scaleway domain, or through DNS you manage yourself. Shield, the firewall, is only set up when brewless.yml asks for one, on the free Shield Basic plan; see Firewall.

Paste the API key from your bunny.net account settings on the Providers page.

Warning

bunny.net has one API key per account, with full access: whoever holds it can change every pull zone and every DNS record in that account. Create a separate bunny.net account for what Brewless manages, and connect that one.

Lettermint

Lettermint is optional, and it does two things: the Mail page of an environment that sends with mail: lettermint, and setting such an environment up at Lettermint. Without it an environment still sends; the Mail page has nothing to show of it, and its sending token is yours to set.

Create a Team API token in Lettermint and paste it on the Providers page. Brewless checks that it may read domains, messages and suppressions, and refuses a token that may not, naming what it lacks; read:projects is needed for the totals.

Give the token write:projects and write:domains as well to have Brewless set an environment up: an application gets a project of its own at Lettermint, the environment a sending token in it that goes into your own Secret Manager, the domain is made where your team has none of that name, and it is set to send from that project. Its DNS records are named on the plan of your deploy and written into a zone Brewless manages only after your yes. With a token that may only read, nothing is made and the sending token stays yours to push. Brewless never sends mail through the token, changes a project you already have, or removes anything but a sending token it made itself for that environment. See Mail.

Note

A team token reaches every project of your Lettermint team. The Mail page shows only the domains your Brewless environments send from, and a message only through the domain it was sent from. Lettermint does not count as a cloud account of your plan.

Revoking access

Revoking a connection removes the key from Brewless. Nothing in your provider account is touched, and the key itself keeps working at the provider until you delete it there:

  • Scaleway: in the console under IAM, API keys.
  • bunny.net: reset the key in your account settings.
  • Lettermint: delete the token in your team's settings.