Add observability and security-hardening proposals, gitignore settings.local
Two new OpenSpec changes: - observability (30 tasks): health endpoints, Prometheus, Grafana+Loki, structured logging, dashboards, alerting - security-hardening (24 tasks): Caddy headers, scanner blocking, gitleaks, pnpm audit, dependabot, non-root Docker, fail2ban Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
734b022004
commit
7d20dbb12f
13 changed files with 564 additions and 0 deletions
15
openspec/changes/observability/specs/infrastructure/spec.md
Normal file
15
openspec/changes/observability/specs/infrastructure/spec.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
## MODIFIED Requirements
|
||||
|
||||
### Requirement: Docker Compose deployment
|
||||
All services SHALL be deployed via Docker Compose, including Grafana, Prometheus, and Loki for the flagship instance.
|
||||
|
||||
#### Scenario: Monitoring stack starts
|
||||
- **WHEN** `docker compose up -d` is run
|
||||
- **THEN** Grafana, Prometheus, and Loki containers start alongside the application containers
|
||||
|
||||
### Requirement: Caddy access logging
|
||||
Caddy SHALL emit structured JSON access logs for all requests.
|
||||
|
||||
#### Scenario: Access log emitted
|
||||
- **WHEN** any HTTP request passes through Caddy
|
||||
- **THEN** a JSON log line with remote IP, method, path, status, and duration is written to stdout
|
||||
Loading…
Add table
Add a link
Reference in a new issue