Why Metraia Security first
Security in every decision
Security is a constraint on every choice in Metraia, from the language it is written in to how a picture is stored. It is designed in everywhere, not added on afterwards.
Staff data is personal data: addresses, phone numbers, pay, sick days. Metraia treats protecting it as a requirement on every decision, made at the start and checked at every step, never as a layer added at the end.
Safe from the ground up
- Memory-safe code. Metraia is written in Rust, and unsafe code is forbidden everywhere in it, which rules out the class of flaw behind many of the worst breaches.
- Nothing is trusted on the way in. Every form, every request and every file read from disk is checked against a strict type before it is used, so a file edited by hand or by another program cannot slip in anything unexpected.
- Limits everywhere. Requests, uploads and pictures are capped before any work is done on them.
Every action checks who is asking
Permission is checked inside every action, where the work is done, so no page, button or API can skip it. Roles carry a rank and a scope; a decision about someone needs a higher rank, nobody can hand out more access than they hold, and a record you may not see answers “not found”.
Signing in, and the browser
- Passwords hashed with Argon2id, wrong guesses slowed per login and per address, and two-step sign-in with an authenticator app.
- Sessions that end when idle, at a fixed limit, and the moment someone leaves.
- A strict content security policy, so nothing inline can run; a token on every form; requests from other sites refused.
- Uploaded pictures re-encoded from scratch, which strips location data and anything hidden in the file.
Data at rest and in transit
The data folder can be encrypted with your own key, with authenticated encryption that also stops files being altered or planted. Metraia serves HTTPS with TLS 1.2 and 1.3, and can accept connections only from your own proxy. API keys and app tokens are kept only as hashes.
Every decision recorded
Approvals, overrides and their reasons, roles given and taken away, pay looked at, every request from another system or an AI assistant: each is in the audit log, with who and when.
Reviewed and attacked
In November 2026 the whole application was reviewed for security: four independent code reviews, and attacks on a running copy, including every page tried without signing in and as the least privileged user, forged cross-site requests, about 3,000 hostile inputs, and hostile files dropped into the data folder. Nothing critical was found, and every finding was fixed with a test that keeps it fixed.