Integrations
Fly.io
Tidal Control's Fly.io integration reads one Fly.io organisation for compliance purposes. It authenticates with a read-only organisation token against the Fly.io Machines API and GraphQL API. The result is an inventory of your apps, Machines, volumes and Managed Postgres clusters, plus evidence for encryption at rest, backups, TLS, availability, two-factor authentication and token lifetime. A read-only token cannot deploy, stop or change anything.
What this integration monitors
- Apps and Machines: Which apps run where, whether public ports answer plain HTTP without redirecting to HTTPS, whether Machines that serve traffic have a health check, and whether those apps run more than one Machine
- Volumes: Encryption at rest, daily automatic snapshots, and whether each volume is attached to a Machine
- TLS certificates: Whether every custom hostname has a ready certificate, and when each certificate expires
- Managed Postgres: Cluster inventory, plan and region
- Members: Role (admin or member) and whether two-factor authentication is on
- Access tokens: Name, type, creation date and expiry date. Tidal Control never reads a token's value
Requirements
- Super User role in Tidal Control
- flyctl, the Fly.io command line tool, signed in with an account in the organisation you want to monitor
- The organisation slug, shown by
fly orgs listand in the dashboard URL
Configuration step-by-step plan
We'll create a read-only organisation token with flyctl, then add the connection in Tidal Control.
Configuration steps:
- Create a read-only organisation token
- Configure the integration in Tidal Control
Step 1: Create a read-only organisation token
- Run
fly orgs listand note the slug of the organisation. A personal organisation is calledpersonal - Run
fly tokens create readonly -o <organisation slug> --name "Tidal Control" --expiry 8760h - Copy the whole output, including the
FlyV1prefix. It is shown only once
Set an expiry. Fly.io tokens are valid for 20 years unless you pass --expiry. 8760h is one year, which keeps the token within the limit that the token test checks. Replace it with a new token before it expires.
"Not authorized" when creating the token? Some members cannot create a read-only token directly. Create an organisation token first with fly tokens create org -o <organisation slug>, then set it as FLY_API_TOKEN and run fly tokens create readonly -o <organisation slug> --from-existing. Use the output of that last command. Revoking the organisation token also revokes the read-only token made from it.
Step 2: Configure the integration in Tidal Control
- Go to Settings → Integrations in Tidal Control
- Click the plus icon next to Fly.io
- Fill in the configuration:
- Name: A descriptive name, for example
Fly.io - Organisation slug: The slug from step 1
- Read-only organisation token: The whole output from step 1
- Name: A descriptive name, for example
- Click "Create" to save the integration
Add one connection per organisation you want to monitor.
Configuration fields explained
The integration dialog asks for the following values:
Name:
- A descriptive name for this connection
- For example:
Fly.io,Fly.io production
Organisation slug:
- The organisation's slug, for example
acmeorpersonal - Lowercase letters, digits and hyphens only
Read-only organisation token:
- The token from step 1, starting with
FlyV1 fm2_ - Required, and stored as a secret
- A deploy token or the personal token from
fly auth tokendoes not work, because neither can list the organisation
Available checks
The integration runs eleven tests:
- All volumes are encrypted at rest
- All volumes take daily automatic snapshots (cache volumes are left out, because they support no snapshots)
- All volumes are attached to a Machine
- No Machine serves plain HTTP without redirecting to HTTPS
- All Machines that serve traffic have a health check
- All apps that serve traffic run at least two Machines
- All custom hostnames have a ready TLS certificate
- No TLS certificate expires within 14 days
- All organisation members have two-factor authentication enabled
- The organisation has at most three administrators
- All access tokens expire within one year
Together they give evidence for asset inventory, cryptography, backups, redundancy, monitoring, privileged access and authentication information (ISO 27001 A.5.9, A.5.17, A.8.2, A.8.5, A.8.13, A.8.14, A.8.16 and A.8.24).
Verification
The integration is working when all of the following are true:
- Settings → Integrations shows Fly.io under Configured Integrations
- Fly.io tests are available in the Tests section
- Test refresh delivers results without authentication errors
Frequently asked questions
Does Tidal Control read our app secrets or database contents? No. Fly.io only returns secret values to an app's own Machines, and Tidal Control does not call the secrets or Postgres query endpoints. It reads configuration, never application data.
Why does the token test fail for the token Tidal Control uses?
A read-only token is listed under the organisation token it was made from, with that token's expiry. If you created it without --expiry, it is valid for 20 years. Create a new token with --expiry 8760h and update the connection.
Can Tidal Control check SSO or the audit log? No. Fly.io exposes no SSO enforcement setting and no audit log through its API.
Common problems
"Use lowercase letters, digits and hyphens only"
- The organisation slug is the short identifier from
fly orgs list, not the organisation's display name
"Paste the whole token, starting with FlyV1 fm2_"
- Part of the token is missing. Copy the complete output of
fly tokens create, includingFlyV1
Authentication fails with a 401 error
- The token is invalid, has expired or was revoked. Create a new read-only token and update the connection
Access denied with a 403 error
- The token belongs to a different organisation than the slug. Check both against
fly orgs list
Still can't figure it out?
Send an email to support@tidalcontrol.com, and we'll get back to you as soon as possible.
Gather support info: Note which browser you're using, exact error messages, and which steps you've already tried. This speeds up the solution considerably.
- Previous
- External issues
- Next
- GitHub