Security & trust
How aardvark keeps your docs secure — a static architecture with no third-party runtime scripts by default, opt-in-only cloud features, encrypted protected sections, and team roles.
aardvark’s security story starts from its architecture: the product of every build is a
directory of static files that you own and host. Deployed on a static host, the
site involves no server-side application code of yours to patch and no database to
breach — pages are files, and the only code that runs is the client-side JavaScript in
each reader’s browser. (Choosing vark serve instead means running
an application server — a hardened static file server with a live MCP endpoint — in
your own infrastructure.) The optional cloud features — the AI assistant, Content
Reach, and the Aardvark cloud dashboard — are separate, opt-in services, and this page
describes each of them on its own terms: what leaves your infrastructure and when, how
the built-in protections work, and how to reach us about a vulnerability.
A static site, under your control
vark build writes plain HTML, CSS, and JavaScript into build/. You can host that
directory anywhere — your own server or CDN, or vark serve
in your own infrastructure.
- The core runtime is local. Interactive components are delivered as one JavaScript bundle, built at build time and served from your own site alongside the pages, with local styles — the pages themselves load no third-party scripts.
- Optional features that fetch external resources — each off until you use it: an
analytics integration you configure adds that provider’s script; the
map component fetches its tiles from the provider it
credits on the map;
theme.fontawesome(off by default) loads the Font Awesome stylesheet from a pinned CDN URL — or from any URL you set, including a self-hosted copy; and Tablericon:glyphs are baked into the HTML at build time when the matching icon package is available locally, with any that can’t be baked fetched from a pinned icon CDN at runtime (theme.iconCdnrepoints that to a base you host). - Readers’ browsers talk to your host — plus the Aardvark cloud gateway only for the cloud features described below, each of which is off until you turn it on.
What talks to Aardvark cloud — and when
A default build makes no calls to Aardvark cloud and bakes no keys into the output. Each cloud feature below is off until you turn it on — and turning on the AI assistant also turns on other reader features by default:
- The AI assistant — when enabled, the reader panel calls the
Aardvark cloud gateway with your public key (
aardvark_live_…), which is designed to ship in the static site. Each question travels through the gateway to the model provider to be answered, with its context: what is sent lists what a request carries, including reader attachments and a hidden note about the reader’s page and session. By default each finished turn is also stored for your dashboard’s chat history and analytics; what we process about readers says what a stored turn holds, which settings turn attachments and stored conversations off, and what still reaches the gateway when stored conversations are off. Spending on the public key is bounded by your account’s prepaid balance and spend cap, and the gateway ignores any system prompt a caller supplies with a public key — it uses the one stored for your account. The build fails closed if it finds a secret key where the public one belongs: a secret key inAARDVARK_KEYaborts the build rather than publishing it. - Reader-feedback surfaces that ride the assistant’s key. With the assistant
enabled, three other built-in surfaces report to your dashboard: on-site
search analytics is on by
default and stores raw query text (
search.analytics.store_terms: falsekeeps only the anonymous funnel — counts, rates, positions, latency;search.analytics: falseturns the capture off, and readers with Do Not Track or Save-Data are never logged); the “Was this page helpful?” widget posts its star rating, and its optional comment separately; and any reader surveys you configure post their answers. Each is off whenever the assistant is off. - Build-time AI — generating front matter, example responses, or
agent skills is opt-in per feature, runs only when you invoke it, and caches its
results so rebuilds don’t re-send your content.
vark authorlikewise calls the gateway with your secret key, sending the page each action works on, and a Docs Quality Check does the same with a key minted for that run and revoked when it ends, from a runner that keeps no cache between runs, so each run re-sends every page in its scope. - Content Reach — off by default. When enabled, it records
which sections of a page came into view, how long the
page was visibly in the foreground, how long each section held the reader’s scroll
position, and which controls readers used — no cookies, no fingerprinting, no
visitor IDs, and no screen
coordinates. Nothing identifying survives in the browser past the tab: the per-tab
session marker dies when the reader closes it. The recorded section events themselves
are retained server-side and deleted on the retention schedule. Readers with
Do Not Track or Save-Data enabled send nothing at all, and
requireConsentdefers all recording to your site’s own consent banner.
Password-protected sections
The protected option encrypts whole directories of pages at build
time with AES-256-GCM, deriving the key from your password via PBKDF2 (SHA-256,
600,000 iterations). Only the ciphertext is published; readers decrypt in the browser
with the password. The mechanism is fail-closed: if a configured password variable
is missing or empty at build time, the build aborts before writing anything, rather than
publishing the pages in the clear. The encryption happens on the machine that runs the
build, so the password never has to leave your own environment.
Team security in the dashboard
The Aardvark cloud dashboard gives teams the controls below. What it does not provide — multi-factor authentication for dashboard sign-in, for one — is listed on the SOC 2 page.
- Roles. Three team roles: the owner holds full account authority — billing, minting and rotating the account secret key, and owner-only configuration; admins can manage billing and non-owner teammates, but can’t touch the secret key or grant the admin/owner tier; members can read general dashboard data and manage their own public keys, and never see billing.
- Sign-in. The dashboard signs you in with an emailed magic link — there are no passwords to set, store, leak, or reuse. Each link is single-use and short-lived, and the session it opens is scoped to the dashboard; it never grants anything to your docs site or to the public key baked into it.
Build-time code runs with your privileges
aardvark runs your project’s Python at build time — generation scripts
and inline {% %} template blocks in pages. This is intentional and works
like every other build tool that runs code (Sphinx’s conf.py, Jekyll plugins, npm
scripts): it is not a sandbox, and we deliberately don’t pretend otherwise, because
an in-process Python “sandbox” is escapable and would offer only false confidence. The
security model is the standard one for build tooling: only build content you trust.
That includes your theme: each component tag on a page runs Python from the active theme’s
component library at build time. The aardvark maintainers review the default vark
theme’s components, which ship inside each release. Review a third-party theme’s components as
you would any other build-time code.
In practice:
- Review changes to generators and inline blocks as code, not prose.
- Keep secrets out of any build that runs untrusted code — in CI, require approval before outside contributors’ workflows run, scope deploy secrets to protected environments, and keep self-hosted runners off public repositories.
- To build genuinely untrusted content, isolate the build in an ephemeral container or VM with no secrets in its environment.
The build-time Python docs cover this guidance in full.
Reporting a vulnerability
Please report security issues privately — not in a public issue or pull request. Use GitHub’s private vulnerability reporting: the “Report a vulnerability” button under the Security tab of the public sample-site repository — the project’s public contribution repository, home of these docs and the default theme’s open-source component library, and the place to reach the maintainers about any part of aardvark or Aardvark cloud. That keeps the report confidential until a fix ships; we’ll acknowledge it and keep you posted on the fix and disclosure timeline. If private reporting isn’t available to you, email support@aardvarkdocs.com or open a minimal issue to ask for a private channel, and we’ll follow up. Leave the details out of both: the address is a general support mailbox, and issues are public.
aardvark is pre-1.0; security fixes land on the latest release, so please reproduce against the most recent version before reporting.
How aardvark itself is distributed
The vark CLI ships as a compiled binary — via
Homebrew on macOS, and as direct downloads from the
release page for macOS, Linux (tarball), and Windows (zip). The Linux tarballs ship
beside a SHA256SUMS file listing them, so that download can be checked with
sha256sum -c SHA256SUMS before you run it; the macOS and Windows assets carry no
published checksum file today.
The macOS binaries carry an ad-hoc signature, not an Apple Developer ID, and are not
notarized. That is all brew install needs — Homebrew doesn’t quarantine formula
downloads — but a tarball fetched directly in a browser is quarantined by Gatekeeper:
right-click → Open the binary once, or clear the flag with
xattr -dr com.apple.quarantine <file>.
Windows binaries are unsigned by default: Authenticode signing is in place as an opt-in step that the release operator enables by configuring a code-signing certificate, and today’s published downloads are built without one. While a release is unsigned, the first launch may show a SmartScreen warning (“Windows protected your PC”); click More info → Run anyway. Once a release is signed, that prompt eases as the certificate earns reputation. On every platform, some antivirus engines can flag compiled single-file binaries as false positives.
Questions
Policies — privacy, data retention, subprocessors, and terms — live in the Trust Center. For anything this page doesn’t answer, browse the support knowledge base or open an issue on the public sample-site repository.