Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

Menu Close
In this section: Learn
Start
Guides
Domain packs
Participants
Security and privacy
Pilot kits
Operations
Ecosystem

Guide: the web front ends

Source docs/guides/web-sites.md

On this page
  1. Design rules
  2. Data of the services site
  3. Serving

Every web front end of the protocol is an Astro project built the standard way: astro.config.mjs, src/pages, src/layouts, src/components, static output to dist/, Astro pinned at 7.4.13, a committed package-lock.json, node_modules/ never committed. Components are framework-free .astro files, so they can move between sites. Continuous integration finds every app by its tracked astro.config.mjs (ci/jobs/astro.sh).

App Folder Pages Image Make target
Services site services/web/ registry, transparency log (with an in-browser inclusion check), discovery, credential status lists, API reference, contact form; English and French obsp/services-site make services-site
Verifier site reference/web/site/ the offline document verifier in English, French, Spanish and Arabic (right to left) obsp/verifier-site make verifier-site

Each make target runs npm ci, astro check and astro build, then checks dist/: links and pages (tools/astro_apps.py), the static release rules of infra/deploy (no inline script or style, hashed assets), and the app’s tests, which apply tools/web_dist_rules.mjs and open the pages in a headless browser when the playwright package is installed. They need Node.js 22.12 or later and the npm registry (or a filled npm cache), so they are not part of make check; tests/test_web_sites.py, which is, checks the sources without Node.js.

Design rules

  • Protocol brand only: green #00E07A for live and primary marks (black text on it), blue #3D9BFF for links and thin lines, black and white structure; never red; no gradients, glows or patterned backgrounds; 5px corners.
  • IBM Plex Sans, Plex Sans Condensed and Plex Mono when installed locally, otherwise the system faces; no font is downloaded and no third-party script runs.
  • Dark by default, the reader’s choice remembered in the browser’s storage when it allows it.
  • WCAG 2.2 AA: skip link, landmarks, labelled controls, keyboard-reachable scroll regions, visible focus, no horizontal overflow at 390 pixels.
  • No email address and no mailto: link anywhere: contact is a form route.
  • A Content-Security-Policy without 'unsafe-inline': styles are emitted as files (build.inlineStylesheets: 'never'), scripts are bundled (vite.build.assetsInlineLimit: 0), and the pre-paint theme script is a static file.
  • Words that claim more than a reference aid can: a site never calls anything certified, secure or compliant, and a registry listing is not an endorsement.

tools/web_dist_rules.mjs checks these on every build (colours, effects, corners, fonts, inline code, third-party requests, the words above, the language attribute of every page, a counterpart of every page in every language, and dir="rtl" for Arabic).

Data of the services site

The services site is built from a snapshot of the four reference services’ JSON (services/web/src/data/), written by services/web/scripts/snapshot.py (make services-site-snapshot): it starts the services on 127.0.0.1 with the published test keys, runs one flow through them and reads every public route the site shows. Every record in it is marked test only. Rebuild the site after regenerating the snapshot. The API reference pages are rendered from the OpenAPI documents in schemas/openapi/ at build time.

A build may name a live transparency log with PUBLIC_OBSP_LOG_URL (for example https://log.example.org): the log page then offers to read the current signed tree head from it. The site’s Content-Security-Policy must allow that origin (connectSrc in infra/deploy/static-sites.yaml), and the log must answer with CORS headers for the site’s origin. Without it the site makes no request at run time.

Serving

Both images run the static-site server of infra/images/static-site/: nginx as an unprivileged user on port 8080 with a read-only root file system, GET /healthz, response headers from /etc/obsp-site/headers.json when it is mounted (the ConfigMap that infra/deploy/render.py writes) and otherwise from the image’s default rules (the same rules rendered for the local stack), and the release id OBSP_RELEASE sent as X-OBSP-Release. Releases, switches and rollbacks are described in static sites. Nothing here deploys or publishes a site.