Skip to content

feat(init): enable ALLOW_UNCREDENTIALED_DELIVERY_SECRETS in the scaffolded auth env#77

Merged
Bccorb merged 1 commit into
mainfrom
feat/scaffold-local-delivery
Jul 25, 2026
Merged

feat(init): enable ALLOW_UNCREDENTIALED_DELIVERY_SECRETS in the scaffolded auth env#77
Bccorb merged 1 commit into
mainfrom
feat/scaffold-local-delivery

Conversation

@Bccorb

@Bccorb Bccorb commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Companion to the email_otp scaffold default (#75). buildAuthEnv now sets ALLOW_UNCREDENTIALED_DELIVERY_SECRETS=true on the generated auth server env, so seamless login --local reads the OTP straight from the auth server's response instead of needing a mail provider. Combined with email_otp in the default login methods, signing in to a freshly scaffolded local stack now works end to end with no manual config.

Safety

Dev-only escape hatch. The auth server ignores it under a production NODE_ENV (externalDelivery.tsuncredentialedSecretsAllowed() returns false and logs an error when NODE_ENV=production), and the scaffold runs as development. Deployers overriding NODE_ENV=production get the safe behavior automatically.

Testing

tsc, eslint, build clean; 588 tests pass. docker.test.ts asserts the flag is set in buildAuthEnv's docker-mode output.

Branches off main (post-#75); independent of the console-hosting PR (#74).

…olded auth env

Companion to the email_otp default: with it set, seamless login --local reads the
OTP from the auth server's response instead of needing a mail provider, so signing
in to a fresh local stack works end to end. Dev-only — the auth server ignores it
under a production NODE_ENV, and the scaffold runs as development.
@Bccorb
Bccorb merged commit f6418e4 into main Jul 25, 2026
1 check failed
@Bccorb
Bccorb deleted the feat/scaffold-local-delivery branch July 25, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant