Loading...
Loading...
Audit applications against your platform engineering constitution. Use when validating that code, configurations, and deployments align with organizational infrastructure standards.
npx skill4agent add kachawla/radius-skills app-auditPlatform-Engineering-Constitution.mdPlatform-Engineering-Constitution.md.bicep.tf*.yaml| Check | What to look for | Severity |
|---|---|---|
| Approved providers only | Provider blocks in Terraform, resource types in Bicep | 🔴 Critical |
| Approved regions only | | 🔴 Critical |
| No hardcoded cloud-specific resources in app.bicep | Should use portable Radius types | 🟡 Warning |
| Check | What to look for | Severity |
|---|---|---|
| Non-root user | | 🔴 Critical |
| Health endpoints | | 🟡 Warning |
| Multi-stage build | Multiple | 🟡 Warning |
| Image registry | Images reference approved registries (ACR, ECR) | 🟡 Warning |
No | Image tags should be pinned | 🟡 Warning |
| Check | What to look for | Severity |
|---|---|---|
| Approved IaC tooling | Only uses tooling listed in constitution | 🔴 Critical |
| Module versions pinned | | 🟡 Warning |
| Remote state backend | | 🟡 Warning |
| Variables have descriptions | All | 🟢 Info |
| Variables have type constraints | All | 🟢 Info |
| Code passes | 🟢 Info |
| Check | What to look for | Severity |
|---|---|---|
| Resource names match pattern | Names follow | 🟡 Warning |
| Consistent casing | All lowercase, hyphens as separators | 🟢 Info |
| Check | What to look for | Severity |
|---|---|---|
| Required tags present | All tags from constitution ( | 🟡 Warning |
| No missing tags on resources | Every resource has all required tags | 🟡 Warning |
| Check | What to look for | Severity |
|---|---|---|
| NetworkPolicies defined | Kubernetes NetworkPolicy manifests exist | 🟡 Warning |
| No secrets in source code | Grep for API keys, passwords, tokens | 🔴 Critical |
| Secret management aligned | Uses approved secret management (K8s Secrets, Key Vault, Secrets Manager) | 🟡 Warning |
| RBAC enabled | Cluster configs enable RBAC | 🟡 Warning |
| Check | What to look for | Severity |
|---|---|---|
| Required for Radius Bicep extensions | 🔴 Critical |
| Portable resource types used | | 🟡 Warning |
| All Radius resources include | 🔴 Critical |
| Recipe properties set | Properties expected by recipes are declared (e.g., | 🟡 Warning |
| Connection env var handling | App code handles both | 🟡 Warning |
| Health probes configured | Container resources include readiness/liveness probes | 🟡 Warning |
| No local file paths in recipes | Recipe template paths use OCI registry URLs | 🔴 Critical |
No | Should use | 🟡 Warning |
Radius.Data/redisCachesradius-resource-types# Application Audit Report
**Repository:** <repo-name>
**Date:** <date>
**Constitution Version:** <version from changelog>
## Summary
| Severity | Count |
|----------|-------|
| 🔴 Critical | N |
| 🟡 Warning | N |
| 🟢 Info | N |
| ✅ Pass | N |
## Findings
### 🔴 Critical
#### [C1] <Finding Title>
- **File:** `path/to/file:line`
- **Issue:** Description of what's wrong
- **Constitution Reference:** Section N — <section title>
- **Remediation:** How to fix it
### 🟡 Warning
#### [W1] <Finding Title>
- **File:** `path/to/file:line`
- **Issue:** Description of what's wrong
- **Constitution Reference:** Section N — <section title>
- **Remediation:** How to fix it
### 🟢 Info
#### [I1] <Finding Title>
- **Recommendation:** Suggested improvement
### ✅ Passing Checks
- Provider compliance: ✅
- Region compliance: ✅
- Container non-root: ✅
- ...Look for Platform-Engineering-Constitution.md in repo root or parent directories# Find all auditable files
find . -name "*.bicep" -o -name "*.tf" -o -name "Dockerfile*" \
-o -name "*.yaml" -o -name "*.yml" -o -name "bicepconfig.json"# Health endpoints
grep -rn "healthz\|readyz" --include="*.go" --include="*.js" --include="*.py"
# Secret patterns (flag for review)
grep -rn "password\s*=\s*['\"]" --include="*.tf" --include="*.bicep"
grep -rn "API_KEY\|SECRET_KEY\|PRIVATE_KEY" --include="*.go" --include="*.js" --include="*.py"
# Connection handling
grep -rn "CONNECTION_.*_PROPERTIES" --include="*.go" --include="*.js" --include="*.py"platform-constitution