Skip to content
LastGood

Send this to your developer

A one-page brief for whoever built your app. It covers the access LastGood needs, what it adds to your repository, and how to remove all of it.

Email it

In short, for your developer

  • A GitHub App on the repositories you pickNo admin rights. Short-lived tokens, never stored.

  • One pull request, nothing on mainTwo files on our own branch. Nothing lands until you merge.

  • Secrets stay in the repositoryActions secrets nobody can read back, us included.

  • A read-only database user, made at setupWe write its password into your secrets and keep no copy.

  • A pinned action you can readPublic code, pinned to one full commit.

  • Removing it takes nine stepsAll of them are listed below.

On this page

The access LastGood needs, and why

LastGood connects to GitHub and Supabase. Vercel is read by your own workflow, with your own Vercel token, only if you add one. Each permission is listed by the name you will see when you approve it.

GitHub App

You install it on the repositories you pick, and it sees nothing else. Each scan or setup asks GitHub for a short-lived token and drops it afterwards. Tokens are never stored. It has no Administration permission, so it cannot change repository settings, collaborators or branch protection. It can write Actions secrets and variables, which setup needs.

  • Metadata

    Access: Read

    Why we need it: List the repository and its basics.

  • Contents

    Access: Read and write

    Why we need it: Read files for the scan. Write is used only to commit the backup workflow and its LIFEBOAT.md on a new branch, for a paid plan.

  • Pull requests

    Access: Read and write

    Why we need it: Open the one pull request that adds the workflow, for a paid plan.

  • Workflows

    Access: Read and write

    Why we need it: Add the workflow file itself. Any file in .github/workflows needs this permission.

  • Actions

    Access: Read and write

    Why we need it: Start the backup workflow after a purchase. Run logs are not downloaded.

  • Secrets

    Access: Read and write

    Why we need it: Write your working key, LIFEBOAT_PRIVATE_KEY, the database address, the storage key for your copies, the storage login, the check-in secret, and the Supabase and Vercel tokens you paste into the setup wizard, as Actions secrets. In strict mode, delete LIFEBOAT_PRIVATE_KEY instead. The key and the tokens are sealed in your browser with GitHub’s own secret encryption, so we only pass on sealed values we cannot open. GitHub never lets anyone read a secret back, us included.

  • Variables

    Access: Read and write

    Why we need it: Write where the copies go, your Supabase project and its publishable key, your public key, whether strict mode is on, and the Vercel project your token reads.

Supabase, for the scan and setup

What the scan can read, and what setup writes. It connects through Supabase’s own sign-in, only when you choose to. We never ask for your database password. With Database write turned on, the token could run SQL for the 15 minutes its encrypted cookie lasts. The cookie is cleared when the scan or setup finishes, or runs out after those 15 minutes, and the refresh token is never stored.

  • Organizations and Projects

    Access: Read

    Why we need it: Find your project, its plan, and whether backups and point-in-time recovery are on.

  • Auth

    Access: Read

    Why we need it: Check settings such as leaked-password protection, and at setup which sign-in hooks are on. Never your users’ details.

  • Storage

    Access: Read

    Why we need it: Count your storage buckets. Never the files in them.

  • Database

    Access: Read

    Why we need it: Find the connection address the backup uses. Never your rows.

  • Database

    Access: Write, for backup setup

    Why we need it: Run the SQL that creates lastgood_backup, a read-only database user, and the storage login for your files, after listing what your app runs when a user is added, changed or signs in. That is all it is used for.

  • Secrets

    Access: Off

    Why we need it: So the token cannot read your API keys.

The nightly backup is separate: your own workflow copies your database, users, files and Supabase setup with its own keys, kept as secrets in your repository (the read-only database role, a storage login, and a read-only Supabase access token, which you create and paste into the setup wizard; LastGood writes it to the repository and keeps no copy). The storage login reads your files and cannot change them. Like any signed-in user of your app, it can also do whatever your app lets a signed-in user do.

Vercel, with your own token

Nothing from Vercel is copied unless you add your own Vercel token, kept in your repository as LIFEBOAT_VERCEL_TOKEN. With it, your own GitHub Action reads your Vercel project each night, so your site can be rebuilt on a new account. We never see the token or what it reads. Lifeboat only reads with it, but Vercel tokens cannot be limited to reading: revoke it in Vercel to stop the copy.

  • Project and build settings

    Access: Read

    Why we need it: Domains and DNS records and cron config, so your site can be rebuilt on a new Vercel account. Your own GitHub Action reads them each night with your token and encrypts them to your key, so we never see them.

  • Environment variables

    Access: Read

    Why we need it: Names and values, fetched and encrypted the same way, so we never see them. Vercel never returns values it marks sensitive, to anyone, so only their names are copied: keep those values yourself. LastGood cannot restore them.

What gets written into your repository

A paid plan opens one pull request from a new branch, lastgood/lifeboat, and LastGood only ever commits on that branch. Nothing reaches your default branch until you merge.

  • .github/workflows/lifeboat.yml

    What it is: The backup workflow. It runs on your GitHub Actions and calls the Lifeboat action.

  • LIFEBOAT.md

    What it is: Notes for this repository: what the workflow does and the secrets it expects.

Actions secrets

The setup wizard writes these as encrypted Actions secrets. GitHub never shows a secret’s value again, to anyone, and the workflow masks them in its logs.

  • DATABASE_URL

    What it holds: The Session pooler address for lastgood_backup, the read-only database user. Its password is made during setup, written here, and thrown away.

  • LIFEBOAT_PRIVATE_KEY

    What it holds: Your app’s working private key. It is made in your browser and sealed with GitHub’s own secret encryption before it leaves, so we only pass on a sealed value we cannot open. Strict mode leaves it out.

  • LIFEBOAT_ACCESS_KEY_IDLIFEBOAT_SECRET_ACCESS_KEY

    What it holds: The storage key for your copies. It can add, read and list in this repository’s folder only. It cannot delete.

  • LIFEBOAT_CHECKIN_SECRET

    What it holds: Signs the short check-in the workflow sends after each run.

  • LIFEBOAT_STORAGE_LOGIN

    What it holds: A storage login, made when you connect: a Supabase user, lastgood-backup@lastgood.invalid, whose storage policies let it read every file and never add, change or delete one. Each night your workflow signs in with it for a short session and copies every bucket. Like any signed-in user of your app, it can also do whatever your app lets a signed-in user do.

  • LIFEBOAT_SUPABASE_TOKEN

    What it holds: A read-only Supabase access token. You create it and paste it into the setup wizard; LastGood writes it here and keeps no copy. Your workflow uses it to copy your Edge Functions and Supabase setup through Supabase’s Management API.

  • LIFEBOAT_VERCEL_TOKEN

    What it holds: Optional. Present only if you add your own Vercel token. Each night your own workflow uses it to copy your Vercel project’s settings, domains, DNS records and environment variables, so we never see them. Without it, nothing from Vercel is copied. Vercel never returns values it marks sensitive, to anyone, so only their names are copied: keep those values yourself. LastGood cannot restore them.

Actions variables

Plain settings, not secrets. You can read and change them in the same place.

  • LIFEBOAT_PROJECT

    What it holds: Your Supabase project ref, so a check-in names the right app.

  • LIFEBOAT_PUBLIC_KEY

    What it holds: Your app’s public key. Every copy is encrypted to it. It can only encrypt, so it is not a secret.

  • LIFEBOAT_STRICT

    What it holds: Whether strict mode is on. While it is, GitHub holds only the public key, so there is no automatic test restore.

  • LIFEBOAT_BUCKETLIFEBOAT_S3_ENDPOINTLIFEBOAT_S3_REGION

    What it holds: Where your copies go: the bucket, its address and its region.

  • LIFEBOAT_PREFIX

    What it holds: This repository’s own folder in that bucket.

  • LIFEBOAT_SUPABASE_PUBLISHABLE_KEY

    What it holds: Your Supabase project’s publishable key, which you paste when you connect. It is public and ships in your app. The storage login signs in with it.

  • LIFEBOAT_MANAGE_RETENTION

    What it holds: Whether the action deletes old copies. Off for storage we host, which expires old copies itself.

  • LIFEBOAT_VERCEL_PROJECT_IDLIFEBOAT_VERCEL_TEAM_ID

    What it holds: Optional, with your Vercel token: the Vercel project to copy, and its team when it belongs to one.

The workflow

Excerpt from .github/workflows/lifeboat.yml
name: Lifeboat on:  push:    branches:      - "main"    paths:      - .github/workflows/lifeboat.yml  schedule:    # 16:17 UTC is 02:17 in Australian Eastern Standard Time, or 03:17 during daylight saving.    - cron: "17 16 * * *"    # First day of the month, an hour later. Monthly test restore    - cron: "17 17 1 * *"  workflow_dispatch: permissions:  contents: read        # your code, every branch and tag  issues: read          # issues and their comments, for the GitHub metadata copy  pull-requests: read   # pull requests and their comments, for the same copy jobs:  backup:    runs-on: ubuntu-latest    timeout-minutes: 120    steps:      - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0      - uses: lastgoodapp/lifeboat@2cdf2d255221c6f0e8dbd664bbe108f6747e7237 # v1.1.4
  • Its own GitHub token can only read, set by permissions in the file: contents, issues and pull-requests, each read
  • It runs every night at 16:17 UTC, which is 02:17 in Sydney or 03:17 in daylight saving. It also runs once when you merge it, and you can start it from the Actions tab.
  • pg_dump only reads the database in DATABASE_URL, and never writes to it
  • The monthly test restore writes only to a throwaway database on the runner, which goes when the runner does.
  • Each copy is encrypted on the runner before upload. Your database, files, users and code never pass through our servers, and your Vercel settings are copied the same way, with your own Vercel token.

Check the action’s source and version

It pins the Lifeboat action to one full commit, so the code that runs is the code you can read. The comment after it names the version.

The pinned action
uses: lastgoodapp/lifeboat@2cdf2d255221c6f0e8dbd664bbe108f6747e7237 # v1.1.4
  1. Open the action at that commit

    The code is public: lastgoodapp/lifeboat at the pinned commit.

  2. Read what it runs

    Start with action.yml, which calls scripts/run.sh to make the dump, encrypt it and upload it.

  3. Match the pin

    Check that your workflow pins the commit you read, v1.1.4: 2cdf2d255221c6f0e8dbd664bbe108f6747e7237LastGood only commits on its own branch, through a pull request you merge. So the pin changes only if you merge a pull request that changes it.

How to remove everything

  1. Cancel the plan

    You cancel in the Stripe customer portal. To open it, go to Manage a subscription on the pricing page and enter the email from your Stripe receipt. We email you a link to the portal that lasts 30 minutes.

  2. Uninstall the GitHub App

    In GitHub, open Settings, then Applications, then Installed GitHub Apps, and uninstall LastGood. For an organisation, it is in the organisation’s settings. This removes all our access at once. Disconnecting on our site only clears a cookie. Until your plan ends we still watch your backups, so we email you that our app was removed. You did that, so there is nothing to do.

  3. Delete the secrets and variables

    In the repository, open Settings, then Secrets and variables, then Actions, and delete the ones listed above.

  4. Delete the workflow

    Delete the two files, .github/workflows/lifeboat.yml and LIFEBOAT.md, from your default branch. If the pull request is still open, close it and delete its branch. With the secrets or the workflow gone, no backup checks in, so if your plan has not ended yet we email you once when none has for 36 hours. You can ignore that one too.

  5. Remove LastGood from Supabase

    If LastGood is listed among the authorised apps in your Supabase account, remove it. We store no Supabase refresh token, but the authorisation can still be listed. Then drop the read-only role, lastgood_backup, in the Supabase SQL editor. Copies you already have are not affected.

    Supabase SQL editor
    -- Stop the backup user signing inalter role lastgood_backup nologin; -- Or remove it completelyrevoke connect on database postgres from lastgood_backup;drop role lastgood_backup;
  6. Delete the backup storage login

    If setup made a storage login, it is the user lastgood-backup@lastgood.invalid. Your workflow used it to copy your files. If your app made rows of its own when that user was added, such as a profile row, delete those first: a table that points at the user without on delete cascade stops the user being deleted. Then delete the user in your Supabase project’s Authentication users, and drop its storage policies, the ones whose names start with lastgood_backup_, in the SQL editor.

    Supabase SQL editor
    do $$ declare p record; begin  for p in select policyname, tablename from pg_policies    where schemaname = 'storage' and policyname like 'lastgood\_backup\_%' loop    execute format('drop policy %I on storage.%I', p.policyname, p.tablename);  end loop;end $$;
  7. Delete the Supabase access token you created

    If you created a Supabase access token for setup, delete it in your Supabase account’s access tokens. It is the one stored as LIFEBOAT_SUPABASE_TOKEN.

  8. Revoke your Vercel token

    If you added LIFEBOAT_VERCEL_TOKEN, delete the secret and revoke the token in your Vercel account’s tokens. LastGood keeps no Vercel token, so there is nothing to remove on our side.

  9. Ask us to delete our piece of your key

    We hold one of the three pieces of your key. Ask us to delete it by writing to hello@lastgood.app, or delete it yourself from your LastGood login.

Copies we already host stay locked until their 30 days are up, then expire. To have your scan reports and email address deleted, write to hello@lastgood.app.

How a restore works

A guided restore walks through each step and shows its result and the time it took. DNS changes for your domain can take a while to reach everyone.

  1. Sign in without GitHub

    The LastGood login needs only an email and a passkey. Encrypted copies we host download through short-lived links, even if GitHub is gone.

  2. Pick a night and unlock it

    Use the everyday key, or rebuild it from any two of the three key shares. Decryption runs on your machine, in the browser or with npx lastgood restore, never on our servers.

  3. Rebuild the app

    Push the code to a new GitHub repository. Create a fresh Supabase project and restore the database, users, files, Edge Functions and settings. Recreate the Vercel project and its environment variables, then point the domain.

Once a month, the newest database copy and the code load into a throwaway environment, and you get a pass or a fail.

Questions

Email hello@lastgood.app. The security page covers the same ground in plain English, including what happens to the backups if LastGood stops. LastGood is made by ArchiveBridge Pty Ltd, an Australian company.