Running an invitation-only public instance
This checklist is for operators who expose a Payload Bay instance on the internet and want sign-up limited to people they invite.
This checklist is for operators who expose a Payload Bay instance on the internet and want sign-up limited to people they invite. It builds on the single-container deployment or the full operator installation. Nothing here needs a licence or a cloud account.
Before you start
You need:
- A domain name whose DNS you control, pointing at your Docker host or platform.
- An SMTP account that can send from a sender address on a domain you control. Sign-in uses one-time codes sent by email, so mail delivery is required.
- Secrets generated for this instance only (
openssl rand -hex 24each):BETTER_AUTH_SECRET,PAYLOADBAY_ENCRYPTION_KEY,PAYLOADBAY_BOOTSTRAP_SECRETand the database password. Keep them in the platform's secret store, not in Git.
Deploy
- Deploy
deploy/compose.single.ymlas described in the single-container guide. Assign the domain to thepayload-bayservice on port 3000 and let the platform issue the HTTPS certificate. - Set
PUBLIC_URLto the exact HTTPS origin users will visit. Links in emails and the sign-in flow are built from it. - Leave registration at its default, invitation-only. Do not enable organization onboarding in Installation → Configuration unless you intend open sign-up.
First owner
Complete the one-time owner setup with the bootstrap secret, see bootstrap. After setup is complete, remove the bootstrap secret from anything you shared it with.
Verify before inviting anyone
- Open
PUBLIC_URLover HTTPS and confirm the sign-in page loads. - Request a sign-in code for the owner address and confirm the email arrives from your sender address. If it does not, fix SMTP before continuing.
- Confirm an address that was never invited cannot create an account.
- Create a project, a target group and one target, add a forwarding route, send a test request to its ingress URL, and confirm the attempt appears with the target that received it. See forwarding.
Invite people
Invite each person from the project or organization members page. They sign in with an emailed code and land in the scope you assigned. Remove access the same way when someone leaves.
Operate
- Backups. Take a database backup on a schedule and test a restore, see backup. Store the encryption key with the backups: stored target headers and secrets cannot be read without it.
- Upgrades. The source-built path applies the schema only to an empty database, so a version that changes the schema needs a reviewed migration or a fresh database. Take a backup first. See the schema notes in the single-container guide.
- Updates to secrets. Rotating
PAYLOADBAY_ENCRYPTION_KEYmakes stored header values unreadable. Re-enter them afterwards. - Scripted endpoints need the executor and are not part of the single container. Do not offer them to people you do not trust.
- Alpha status. State it to your invitees. Expect rough edges, no uptime guarantee, and breaking changes between alpha versions.
Webhook integration examples
These examples run in Payload Bay's bounded workerd ingress stage. Copy the source from the linked template into the route's ingress editor, bind the named secret to ingress, save and publish.
Authentication
SMTP and deployment keys remain environment-owned. OAuth client configuration is managed in installation settings and encrypted with the instance encryption key.