Repository navigation
Sign and encrypt template accounts with app keys - #240
Merged
tnkuehne merged 1 commit intoNov 20, 2026
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 802a0ed | Nov 20 2026, 01:54 PM |
tnkuehne
force-pushed
the
feat/templates-without-auth-secret
branch
from
November 20, 2026 11:38
4dc6d50 to
f9b1c8a
Compare
tnkuehne
force-pushed
the
feat/templates-without-auth-secret
branch
3 times, most recently
from
November 20, 2026 12:08
21f384c to
1cc5caf
Compare
tnkuehne
force-pushed
the
feat/templates-without-auth-secret
branch
from
November 20, 2026 12:36
1cc5caf to
42b4473
Compare
tnkuehne
force-pushed
the
feat/templates-without-auth-secret
branch
from
November 20, 2026 12:56
42b4473 to
810b65f
Compare
The connector templates no longer need AUTH_SECRET. Better Auth gains a keys option through the existing patches, and the templates use it to sign cookies and encrypt saved account tokens with WIDEFLEET_KEYS, so app code never holds key material. Each template ships the patches in its own pnpm-workspace.yaml for standalone installs and server builds.
tnkuehne
force-pushed
the
feat/templates-without-auth-secret
branch
from
November 20, 2026 13:53
810b65f to
802a0ed
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
keysoption (in the existingbetter-authand@better-auth/core1.7.12 patches): withkeys: { sign, verify, encrypt, decrypt }, Better Auth signs the state and session cookies and encrypts saved OAuth tokens through these operations instead ofsecret. Without the option nothing changes, so the control plane is unaffected. With the option and no secret, features that still use a secret get a value that changes per instance, so they fail instead of falling back to Better Auth's well-known default.WIDEFLEET_KEYS("cookies" and "tokens" keys) askeys.AUTH_SECRETis gone from the code, the setup page andtemplate.md.pnpm-workspace.yamland carries copies of the root patch files. pnpm and the app builder (previous PR) apply them.apps/control-plane/tests/template-patches.test.tskeeps the copies identical to the root patches.docs/development.mdexplains thekeysoption and that a template directory is now its own pnpm workspace: run template commands from the repository root.Verification
WIDEFLEET_KEYS, and saved tokens are encrypted through it.Deployment order
Template installs read templates from
main. Installations need the runtime withWIDEFLEET_KEYS(first PR in this stack) before they install templates from this change.

Confidence Score: 5/5 
The PR appears safe to merge, with no new actionable defect found.Summary
Moves Gmail, GitHub and OneDrive cookie signing and saved-token encryption to
WIDEFLEET_KEYS.Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR Templates["Gmail / GitHub / OneDrive"] --> Auth["Better Auth"] Auth -->|sign and verify cookies| Keys["`WIDEFLEET_KEYS`"] Auth -->|encrypt and decrypt tokens| Keys Keys --> Runtime["Keys kept by the app runtime"] Auth --> Cookies["Signed cookies"] Auth --> Accounts["Encrypted saved tokens"]Reviews (8) · Last reviewed commit: "Sign and encrypt template accounts with ..." · Reviewed by Greptile