Blog

Why your passkeys belong to botpassword.com, not a subdomain

BotPassword uses botpassword.com as its WebAuthn RP ID, which makes the marketing site's origin security-critical. Here is how that shaped the public site.

BotPassword team4 min read

BotPassword uses botpassword.com, the apex domain, as its WebAuthn relying party ID, and that choice turns the public website on the same origin into production-critical infrastructure. Two decisions follow from it: ADR 0007 fixes the RP ID, and ADR 0012 builds the site as a static page set with no third-party scripts.

What is an RP ID and why does it matter?

A passkey is bound to a relying party identifier. When a credential is created through WebAuthn, the authenticator records the RP ID, and it will only use that credential for pages whose domain matches. The WebAuthn specification defines the RP ID as a domain that must be equal to, or a registrable suffix of, the origin’s effective domain.

ADR 0007 states the consequence plainly: changing an RP ID orphans every registered passkey. Users would have to register again, and any account protected only by that passkey would need a recovery path. So the identifier has to be chosen once and kept. The decision is botpassword.com.

Why the apex rather than a subdomain?

A subdomain such as app.botpassword.com is a valid RP ID for pages on that host, but it would exclude other hosts that are not under it. Choosing the apex lets pages on subdomains use the credential too, while the apex itself stays the identity anchor. It also keeps marketing, docs, the account web UI and the API as parts of one registrable domain rather than separate identities.

The native apps add a second reason. Platform passkey and app-association mechanisms on iOS and Android need files served from the relying party’s domain: apple-app-site-association and assetlinks.json. ADR 0007 therefore says the apex always serves /.well-known/, covering those two files plus security.txt and the change-password URL, whatever hosts the marketing site.

Staging gets its own RP ID on its own domain, so test credentials never mix with production ones. ADR 0008 records that separation.

What does that do to the marketing site?

The ADR gives the answer in one line: the apex is production-critical infrastructure, not just marketing. Script running on that origin can call WebAuthn for the RP ID. An analytics tag, chat widget or ad pixel that is compromised, or simply over-privileged, runs with the standing to ask for passkey operations on the same origin that the account depends on. A privacy problem becomes an account-security problem.

This is why the site decision, ADR 0012, is not a generic web-performance choice.

What did ADR 0012 decide?

The public site is a static Astro build served from the apex. Its main points:

  1. Static output. Content pages are built ahead of time, with content collections for MDX and validated YAML datasets for the page sets. Interaction is limited to small islands, such as tools and search.
  2. One Worker with static assets. It serves /.well-known/*, applies redirects and security headers, and writes first-party analytics rows. There is no server rendering for content pages.
  3. Subfolders, not subdomains. Docs, blog, glossary and tools live under the apex, so link equity is not split and authority is not spread across hosts.
  4. No third-party scripts. No tag managers, ad pixels, chat widgets or hosted analytics or search. The single exception is Cloudflare Turnstile, loaded only on form routes, which post to the API host. The content security policy lists the Turnstile host only on those routes.
  5. No user-generated content on the apex. Comments and forums, if ever needed, go on a separate registrable domain.
  6. Build gates. Schema validation, the claims check, a secret scan of data and output, link checking, performance budgets and accessibility checks run in CI.

Search on the docs is served from the same origin rather than from a hosted service, for the same reason.

What alternatives were rejected?

The ADR names three. A framework like Next.js would ship more client JavaScript for content pages and fits another vendor’s platform better. A hosted documentation product would need a subdomain or proxying, add a third party to the identity origin or split authority across hosts, and limit the data-driven templates. Putting docs on a separate subdomain would isolate them from the RP origin, but static pages built in-house carry no more risk than the marketing pages, so subfolders win on search value.

What does it cost?

Marketing cannot add a tag without changing the ADR, which the record calls intended. Builds grow with page count; the decision estimates minutes for around 2,000 pages and says to add incremental builds or split page sets if builds pass roughly ten minutes. Datasets and copy are reviewed in pull requests like code, which suits a site that has to keep its claims honest about a product still in early access.

Is a static page really safe?

Safer, not safe by itself. A static site removes server-side rendering bugs and a large class of injection routes, but a static page can still be changed by a compromised build pipeline or a malicious dependency. That is why the build gates exist and why the plan asks for signed, provenanced release artifacts. The principle is to keep what runs on the identity origin small, first-party and reviewable.

Where it fits in the overall system: the vault never depends on the website for decryption, and the server holds only ciphertext (one SQLite database per account). The apex matters because it anchors the credential that guards the account, not because it holds secrets. For more on how the local side stays separated from untrusted callers, read why a local daemon holds the keys.

More from the blog

Give agents access. Keep the keys.

BotPassword is in early access. Request an invite and we'll email you when your spot opens.