docs: document --dapc seed flag for air-gapped OSS installs#1417
Merged
Conversation
4 tasks
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates Logto OSS documentation to explain the new db seed --dapc / --disable-admin-pwned-password-check flag in @logto/cli, aimed at unblocking first-admin sign-up in air-gapped/offline environments where api.pwnedpasswords.com is unreachable.
Changes:
- Adds a new “Seed for air-gapped or offline deployments” section to the Logto CLI docs, including usage examples and scope notes (admin tenant only).
- Adds a cross-referenced tip under “Database setup” in deployment docs to help operators discover the flag during installation planning.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| docs/logto-oss/using-cli/README.mdx | Documents --dapc behavior, scope, and provides CLI/npm/npx examples with a stable anchor for cross-linking. |
| docs/logto-oss/deployment-and-configuration.mdx | Adds an “Air-gapped or offline installs” tip that points readers to the detailed CLI documentation section. |
Comments suppressed due to low confidence (1)
docs/logto-oss/using-cli/README.mdx:91
- The service name is typically written as “Have I Been Pwned” (HIBP). Consider updating the link text to match the official name for clarity and consistency.
When set, the seeded `sign_in_experiences.password_policy` row for the **admin tenant** is `{"rejects": {"pwned": false}}` instead of the default `{}`. This skips the [HaveIBeenPwned (HIBP)](https://haveibeenpwned.com/) password breach check during the first admin sign-up, so creating the initial admin from the Welcome page no longer hangs when `api.pwnedpasswords.com` is unreachable (for example in air-gapped data centers or behind strict egress firewalls).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Air-gapped users can now run a single `logto init --dapc` instead of `init --skip-seed` + `db seed --dapc`. Updates the install command options table, the air-gapped CLI section, and the deployment admonition to surface both code paths. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
|
Pushed a few follow-up commits to this branch (via Correctness
Polish
Verified locally with |
charIeszhao
approved these changes
Jun 1, 2026
- Remove the claim that the admin tenant's HIBP check can be re-enabled from the Admin Console; the admin tenant's sign-in experience is not exposed there. - Describe --dapc and --disable-admin-pwned-password-check as plain aliases of each other instead of implying one is canonical. - Drop the non-existent --oc option from the install options table.
Links inside a fenced code block render as literal text, so the cross-reference was not clickable. Move it into the prose below the block, matching the pattern used in manage-database-configs.mdx.
Replace the manually aligned code block with a Markdown table so the columns stay readable and the air-gapped cross-reference link renders as a real link inside the description cell.
3e0db13 to
2ac9675
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.
Summary
Documents the new
db seed --disable-admin-pwned-password-check(alias--dapc) flag added to@logto/cliin logto-io/logto#8859. The flag pre-disables the Have I Been Pwned (HIBP) breach check on the admin tenant, unblocking first-admin sign-up for OSS deployments that cannot reachapi.pwnedpasswords.com(air-gapped data centers, strict egress firewalls).Files updated:
docs/logto-oss/using-cli/README.mdx— new section "Seed for air-gapped or offline deployments" describing the flag, its scope (admin tenant only), and how to re-enable HIBP later from the Admin Console > Sign-in experience > Password policy.docs/logto-oss/deployment-and-configuration.mdx— short admonition under "Database setup" cross-referencing the new CLI section so air-gapped operators see the flag while planning their Postgres setup.Only English docs are updated. Translated copies under
i18n/are left to the regular translation pipeline.Testing
Tested locally
Checklist
.changeset(only when explicitly required)