AI SDLC Standards: cross-cutting requirements mono repo
- Security: input validation, SQL injection, auth annotations, secrets, CVE checks
- Architecture: API contract first, service boundaries, breaking change protocol
- DevOps: health checks, structured logging, resource limits, rollback safety
- Cost: resource tagging, auto-scaling limits, storage lifecycle
- Deterministic compliance checker (.tests/check.sh)
- Agent skill for context injection (Cursor, OpenSpec, Claude Code examples)
- Demo with intentional violations
2026-03-07 07:31:16 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: user-service
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 2
|
|
|
|
|
template:
|
|
|
|
|
spec:
|
|
|
|
|
containers:
|
|
|
|
|
- name: user-service
|
|
|
|
|
image: reltio/user-service:latest
|
|
|
|
|
ports:
|
|
|
|
|
- containerPort: 8080
|
2026-03-07 07:41:27 +00:00
|
|
|
---
|
|
|
|
|
# OPS-001 VIOLATION: Custom ingress instead of Foxtrot routing
|
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
|
kind: Ingress
|
|
|
|
|
metadata:
|
|
|
|
|
name: user-service-ingress
|
|
|
|
|
spec:
|
|
|
|
|
rules:
|
|
|
|
|
- host: users.reltio.com
|
|
|
|
|
http:
|
|
|
|
|
paths:
|
|
|
|
|
- path: /
|
|
|
|
|
pathType: Prefix
|
|
|
|
|
backend:
|
|
|
|
|
service:
|
|
|
|
|
name: user-service
|
|
|
|
|
port:
|
|
|
|
|
number: 8080
|
|
|
|
|
---
|
|
|
|
|
# OPS-004 VIOLATION: Pinned infrastructure version
|
|
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: user-db
|
|
|
|
|
spec:
|
|
|
|
|
template:
|
|
|
|
|
spec:
|
|
|
|
|
containers:
|
|
|
|
|
- name: postgres
|
|
|
|
|
image: postgres:14.2
|