Skip to content

Commit 4cb516d

Browse files
Merge pull request #196 from GenerationSoftware/fix/gen-2148-remove-deploy-email-check
GEN-2148: Remove email preflight from deploy workflow
2 parents 4969348 + 13ef2d9 commit 4cb516d

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ jobs:
2727
cache: npm
2828
- run: npm ci
2929
- run: npm run build:css
30-
- name: Validate authentication email configuration
31-
run: npm run auth:validate-email --workspace=factorize
32-
env:
33-
APP_ORIGIN: https://app.factorize.sh
34-
POSTMARK_SERVER_TOKEN: ${{ secrets.POSTMARK_SERVER_TOKEN }}
35-
POSTMARK_FROM_EMAIL: ${{ secrets.POSTMARK_FROM_EMAIL }}
36-
POSTMARK_MESSAGE_STREAM: ${{ secrets.POSTMARK_MESSAGE_STREAM }}
3730
- name: Apply database migrations
3831
run: npm run db:migrate --workspace=factorize
3932
env:

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ Factorize owns authentication in PostgreSQL. Create a native account at `/auth/s
8484

8585
Postmark sends one-hour, single-use verification and password-reset links. `/auth/verify/request` resends verification; `/auth/password-reset` handles recovery. Links never appear in application responses or logs. Passwords use salted PBKDF2-SHA-256. **Change password** in the account menu requires the current password. Password reset, password change and sign-out invalidate existing sessions via membership session versions, including delegated API credentials.
8686

87-
Before deploying, configure these **production GitHub environment secrets** for the Postmark preflight. The deployment copies only `POSTMARK_SERVER_TOKEN` to a Worker secret; the verified sender and transactional message stream are non-secret Worker vars in `packages/app/wrangler.jsonc`.
87+
Before deploying, configure `POSTMARK_SERVER_TOKEN` as a **production GitHub environment secret**. The deployment copies it to a Worker secret; the verified sender and transactional message stream are non-secret Worker vars in `packages/app/wrangler.jsonc`. For a manual Postmark preflight, set the following environment variables along with `APP_ORIGIN`:
8888

8989
| Setting | Required value |
9090
| --- | --- |
9191
| `POSTMARK_SERVER_TOKEN` | Postmark **server** API token for the sending server; never an account token or a committed value |
9292
| `POSTMARK_FROM_EMAIL` | Plain email address on a verified Postmark sender signature or verified domain |
9393
| `POSTMARK_MESSAGE_STREAM` | Active **transactional** stream ID, commonly `outbound` |
9494

95-
`APP_ORIGIN` must be the canonical HTTPS origin, without a trailing slash. Deploy runs `npm run auth:validate-email --workspace=factorize` **before migrations**: it checks the server token/stream with Postmark and sends one preflight email from/to the configured sender, rejecting unverified senders or sending failures. It prints no credentials. Missing configuration stops deployment. Runtime signup and recovery also fail closed if configuration or delivery fails; users can resend verification after a delivery failure. Local mail testing needs an HTTPS origin and a separate Postmark test server/sender; automated tests mock Postmark and never send mail.
95+
`APP_ORIGIN` must be the canonical HTTPS origin, without a trailing slash. Run `npm run auth:validate-email --workspace=factorize` manually when needed: it checks the server token/stream with Postmark and sends one preflight email from/to the configured sender, rejecting unverified senders or sending failures. It prints no credentials. Missing configuration fails the manual check. The deploy workflow does not run this check or send a preflight email. Runtime signup and recovery also fail closed if configuration or delivery fails; users can resend verification after a delivery failure. Local mail testing needs an HTTPS origin and a separate Postmark test server/sender; automated tests mock Postmark and never send mail.
9696

9797
### Existing account migration
9898

0 commit comments

Comments
 (0)