Trust & Code Integrity
Trust Model
Section titled “Trust Model”ServerlessInbox deploys two fundamentally different kinds of Lambdas, with distinct trust models reflecting their security roles.
Go Lambdas: Signed Binaries with Runtime Integrity Verification
Section titled “Go Lambdas: Signed Binaries with Runtime Integrity Verification”The data plane (mail processing) and core business logic Lambdas are written in Go and deployed as compiled binaries with code signing protection:
- Signed at build time: Each Go Lambda binary is signed using Ed25519 signatures during the release build. The signature covers the executable’s code sections.
- Verified at cold start: Every time a Go Lambda initializes, it verifies its own signature against a public key embedded in the binary. If the binary has been modified—including swapping embedded credential material like license keys—the signature check fails and the Lambda refuses to start.
- Root of trust: The signing public key comes from the ServerlessInbox license server itself. This creates a chain of trust: only a binary signed by the official license server will pass its own startup signature check.
This protects the integrity of license enforcement: the embedded license key cannot be swapped out for a forged one, because doing so invalidates the binary’s own signature. Bypassing entitlements means reproducing the product’s logic from closed binaries, not editing a value. It is a license-integrity boundary, not a claim about preventing a customer from running their own code in their own AWS account, and it is not a control protecting mail data.
TypeScript Lambdas: Open Source, Unsigned, Deliberately Transparent
Section titled “TypeScript Lambdas: Open Source, Unsigned, Deliberately Transparent”The control plane Lambdas (stack deployment, UI deployment, resource cleanup, user management, DNS configuration) are written in TypeScript and deployed as deliberately unsigned, readable source code. This is a binding design choice, not a gap:
- No code signing: These Lambdas ship as plain, unsigned code so customers can audit exactly what code runs with those permissions.
- Powerful IAM: Control plane Lambdas hold the most privileged IAM roles in the deployment:
- Deploying stacks and updating CloudFormation
- Managing identity-provider resources (Cognito user pools, with the default IdP addon)
- Modifying DNS records and SSL certificates
- Sweeping and deleting AWS resources
- Managing Lambda@Edge functions
- Customer auditability: Because these Lambdas can do anything an admin can do, they are deliberately published as open-source code — see Open Source for the repositories they live in. Customers are meant to read, understand, and audit the source code themselves before deploying. Signing them would defeat that transparency purpose — it would create a false sense of security by hiding the code behind cryptographic verification rather than letting customers directly inspect it.
If a customer is uncomfortable deploying any control plane Lambda, they can fork the repository, modify the code, and deploy their own version instead.
Licensing
Section titled “Licensing”License enforcement in ServerlessInbox limits accounts only:
- The license key (embedded in Go Lambdas) is checked at startup to determine which features are available.
- Licensing never loses mail and never touches receiving, reading or export. What it gates is account limits — for example, adding mail-enabled accounts beyond the free allowance — and losing access to those is designed to be rare. Free and beta deployments are never paused. On a paid licence, only the lapse rule can pause sending, for accounts above the free allowance.
- For more details, see License Model.
Verifiability of Deployed Bundles
Section titled “Verifiability of Deployed Bundles”Go Lambdas: Verifiable through signature checking, which happens automatically at cold start. The signing key comes from the license server, so a self-signed substitute cannot pass verification — the license server is the root of trust for that check.
TypeScript Lambdas: The deployed bundles are built using esbuild with minification enabled.
- Customers can always read the public TypeScript source code in the GitHub repository.
- The deployed bundle is a minified esbuild artifact of that source.
- To verify deployed code, customers audit the public source repository directly.
Stack-Failure Diagnostics
Section titled “Stack-Failure Diagnostics”See Failure diagnostics for what a failed stack operation reports, who can read the result, how long it is kept and how to switch reporting off.
Support
Section titled “Support”The support team has no standing access to your AWS account: access exists only inside a case you opened, for a read-only tier you explicitly granted, and only until the activation window expires. See Support for how cases, tiers and activation windows work.