From fa85c5c90346295c57ad0f7a5da72363cdd6b28f Mon Sep 17 00:00:00 2001 From: Tyler Milner Date: Thu, 19 Jun 2025 08:59:08 -0500 Subject: [PATCH 1/2] Add note about `FIRST_SUPERUSER_PASSWORD` needing to be 40 characters or less. --- README.md | 2 +- deployment.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index afe124f3fb..39cf607617 100644 --- a/README.md +++ b/README.md @@ -204,7 +204,7 @@ The input variables, with their default values (some auto generated) are: - `stack_name`: (default: `"fastapi-project"`) The name of the stack used for Docker Compose labels and project name (no spaces, no periods) (in .env). - `secret_key`: (default: `"changethis"`) The secret key for the project, used for security, stored in .env, you can generate one with the method above. - `first_superuser`: (default: `"admin@example.com"`) The email of the first superuser (in .env). -- `first_superuser_password`: (default: `"changethis"`) The password of the first superuser (in .env). +- `first_superuser_password`: (default: `"changethis"`) The password of the first superuser (in .env). Must be 40 characters or less. - `smtp_host`: (default: "") The SMTP server host to send emails, you can set it later in .env. - `smtp_user`: (default: "") The SMTP server user to send emails, you can set it later in .env. - `smtp_password`: (default: "") The SMTP server password to send emails, you can set it later in .env. diff --git a/deployment.md b/deployment.md index eadf76ddae..4d4a0a39e6 100644 --- a/deployment.md +++ b/deployment.md @@ -132,7 +132,7 @@ You can set several variables, like: * `BACKEND_CORS_ORIGINS`: A list of allowed CORS origins separated by commas. * `SECRET_KEY`: The secret key for the FastAPI project, used to sign tokens. * `FIRST_SUPERUSER`: The email of the first superuser, this superuser will be the one that can create new users. -* `FIRST_SUPERUSER_PASSWORD`: The password of the first superuser. +* `FIRST_SUPERUSER_PASSWORD`: The password of the first superuser. Must be 40 characters or less. * `SMTP_HOST`: The SMTP server host to send emails, this would come from your email provider (E.g. Mailgun, Sparkpost, Sendgrid, etc). * `SMTP_USER`: The SMTP server user to send emails. * `SMTP_PASSWORD`: The SMTP server password to send emails. From 816afb82822c32a59036c94409ede6cd018a5267 Mon Sep 17 00:00:00 2001 From: Tyler Milner Date: Thu, 19 Jun 2025 09:32:10 -0500 Subject: [PATCH 2/2] Update `first_superuser_password` help text in copier.yml to indicate that it should be <= 40 characters --- copier.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copier.yml b/copier.yml index f98e3fc861..5c7a4b66a2 100644 --- a/copier.yml +++ b/copier.yml @@ -23,7 +23,7 @@ first_superuser: first_superuser_password: type: str - help: The password of the first superuser (in .env) + help: The password of the first superuser (in .env), must be 40 characters or less default: changethis smtp_host: