Servers and service boundaries
Separate service roles, limited access and public configuration source.
Service roles
| Role | Purpose | Provider | Location |
|---|---|---|---|
| Primary | Website, connectivity checks, time, service relays and downloads | OVHcloud | Germany |
| Download mirror | Second server for OS and app downloads, service status page | ServaRICA | Canada |
| Attestation | Auditor’s remote verification service and application state | OVHcloud | France |
| Staging | Separate website and download test endpoints | Netcup | Germany |
The download mirror serves the same OS and app files. With the default Automatic setting, the Updater and the App Store pick the faster of the two servers and continue an interrupted download on the other. The download servers setting can also limit them to one server. The mirror does not replace connectivity checks, time or positioning services. Staging is for tests and is not a download region.
Authoritative DNS is provided by INWX. DiamaneOS does not operate its own authoritative nameserver network. The privacy policy describes the providers and data involved in requests.
Phone or browser
- PrimaryWebsite and network services
- Download regionOS and app files
- AttestationVerification and account state
Staging has separate test endpoints. Public service hosts do not hold production release-signing keys.
Host and service isolation
Hosts use Debian with separate service accounts. Public ingress and forwarding are denied unless explicitly allowed. Administration uses an authenticated WireGuard management tunnel. Direct public SSH and password SSH are disabled.
Systemd constrains service filesystems, capabilities, devices, memory and processes. Serving accounts cannot rewrite their code, configuration or public files. Network egress is restricted by service identity and destination. A failed policy refresh does not grant unrestricted access.
These controls reduce attack surface. A virtual server’s firewall cannot prevent every attack against the provider’s network, and separate accounts on one host are not separate kernels. A hosting provider remains inside the trust boundary for its virtual machines.
Website and relays
The website serves static HTML and CSS with local fonts and images. It runs no analytics or third-party embeds, and only the web installer runs scripts. TLS protects browser connections, and content security policy limits what a page can load or submit.
The contact form has separate ingress and mail workers. Input size, methods and request rates are bounded. The mail worker has a fixed sender, destination and SMTP route. Contact text is not stored as a web-server submission history.
Connectivity checks return the response Android expects. Positioning and provisioning relays have fixed upstream destinations. They are not open proxies. Assistance-data caches contain shared responses rather than a history of individual users’ requests.
Request access logs and request-associated error logs are disabled. Temporary abuse controls use memory. Operational logs have a short volatile retention policy. Providers can still observe connections and keep their own records. This setup does not make IP addresses anonymous.
Downloads and attestation
Download servers serve static artifacts. Artifact authenticity depends on independent signature verification, rather than trusting the server that supplies a file. A valid signature does not conceal your IP address, requested file or download time from the host.
Attestation has a separate stateful service. Its database resides on encrypted storage with no plaintext fallback. Storage encryption protects locked state. It does not hide data from a running application or a compromised host while that state is unlocked.
Staging and recovery
Staging uses separate publication roots and TLS material. It does not contain the production database or production signing keys. Its public preview is excluded from crawlers. Crawler rules are not access control.
Source configuration can recreate services, but it cannot recreate database history or host secrets. A usable recovery also needs authenticated encrypted backups, independent keys and a restore test. Encrypted copies of server state go to Backblaze B2 every week, and restoring them is tested. Replicas and source repositories alone are not backups of application state.
Monitoring
Two servers watch the public services and each other.
- Download mirrorEvery five minutes, checks every public service from outside, everything on the primary included, and the health of each server.
- PrimaryChecks that the mirror and its monitor are still running.
The two servers watch each other, and each sends its own alerts. If either one goes down, the other notices.
A check fails on:
- no answer, or not the expected answer
- any redirect
- TLS older than 1.3, or a certificate that does not verify
- a certificate that expires within 14 days
- a relay that cannot reach its upstream service
- a server clock more than 30 seconds off
Each host also reports its own health over the management tunnel: services running, disks mounted with room to spare, no swap. Traffic and load are counted on the host itself, and only a pass or fail leaves it.
Alerts go out by mail, with a reminder every day until the problem is fixed and a notice when it clears. They carry only a service name and a fixed failure line, never addresses or device details.
Domain and mail security
- DNSSEC. The diamaneos.de zone is signed, so resolvers that check can tell a forged answer.
- Certificates. Only Let’s Encrypt may issue certificates for these names, only to the account of the server that uses each name, and never wildcard certificates.
- HTTPS only. The website and the download and attestation services tell browsers to use HTTPS only, for at least a year.
- Mail in. Mail servers must deliver to diamaneos.de over verified TLS (MTA-STS in enforce mode).
- Mail out. Receiving servers are asked to reject mail that pretends to come from diamaneos.de (DMARC). diamane.de sends no mail and says so.
- Security contact. security.txt is signed and names the contact for reports.
Configuration source
- Infrastructure contains the Debian host and service adapters.
- Network services contains the GrapheneOS-derived connectivity and relay configuration.
- Release serving and Apps serving contain download configuration.
- AttestationServer contains the remote verification service.
- Website contains these pages and the contact handler.
DiamaneOS adapts GrapheneOS’s public service code and configuration. GrapheneOS has not reviewed the Debian adapters, the DiamaneOS changes or this deployment.