Security Baseline
Does this service cover the security basics? Authentication, authorization, input validation, secrets, personal data and audit, checked against its design.
14 rules · 36% checked automatically
Check your service against it
Apply this checklist to a service described in MICROSERVICE.md™: 5 of its 14 rules are checked against the design automatically, and each failing rule points to where to fix it.
0 of 14 ticked · kept in this browser only
Security
- Every caller is authenticated
The design says how the service knows who is calling, for users and for other services.
CriticalChecked automatically
- Access is authorized per resource
The design says how the service decides what an authenticated caller may do, down to the individual resource.
HighChecked automatically
- Scopes or permissions are declared
The service lists the scopes or permissions its API checks, so callers know what to ask for and reviewers know what is protected.
MediumChecked automatically
- The gateway states how it authenticates callers
Every API gateway in front of the service names its authentication method, so nobody assumes the other side is doing it.
HighChecked automatically
- Service-to-service calls are authenticated
A call from another service proves who is calling, with mTLS or a signed token. Being inside the network is not proof.
HighChecked by hand
- Input is validated at the service boundary
Every request and message is checked against a schema before any logic runs, whoever sent it.
HighChecked by hand
- Callers are rate limited
Each caller has a request quota, enforced at the gateway or in the service, so one client cannot exhaust it for everyone.
MediumChecked by hand
- Secrets live in a secret store
Credentials and keys are read from a secret manager at run time, never from the repository or plain configuration.
CriticalChecked automatically
- Secrets can be rotated without a release
Every secret the service uses can be replaced on a schedule, or within the hour after a leak, without a code change.
MediumChecked by hand
- Personal data handling is documented
For the personal data it holds, the service states what it keeps, why, for how long and how it is erased.
HighChecked by hand
- Personal data stays out of logs and traces
Logs, traces, metrics and error reports carry ids, not names, emails, addresses, tokens or card data.
HighChecked by hand
- The database account has only the rights it needs
The service connects to its data store with an account limited to its own schema and to the operations it performs.
MediumChecked by hand
- Sensitive actions leave an audit trail
The service records who did what to what, and when, for actions that matter in a dispute or an investigation.
MediumChecked by hand
- Dependencies and images are scanned for known vulnerabilities
Every build checks libraries and the base image against vulnerability databases, and someone owns fixing what is found.
MediumChecked by hand