Security Governance
Govern identity, secrets, provider policy, data handling, WAF, BotID, and approvals.
Written and reviewed by Eric Han · Co-founder & CTO, reopt
Key takeaways
- Security governance defines what AI systems may access, which providers they may use, and which actions need human or policy approval.
- Core controls include OIDC identity over long-lived credentials, secret management, centralized gateway policy, WAF and BotID, approval gates, and audit logs.
- Approval gates prevent uncontrolled side effects, while audit logs record user, model, tool, and workflow actions for evidence.
- The risk review asks which data classes the flow can reach, which tools mutate state, which provider and region policies apply, and who owns incidents.
Framework patch review — 2026-10-23
Replace the old 16.2.3 floor with a review of the deployed dependency graph, enabled features, and the current Next.js advisories.
| Advisory | Relevant condition | Patched version for this advisory |
|---|---|---|
| Image Optimization SVG RCE, October 14 | Upstream image-processing library on glibc Linux | 15.5.28 / 16.4.1; verify sharp 0.35.5+ |
use cache typed array RCE, October 14 | Affected use cache paths | 16.4.1 |
next/og ImageResponse RCE, September 22 | Attacker-controlled SVG values in the Node.js implementation | 16.3.6 |
This is a selection, not a complete vulnerability inventory. The current documentation lists 16.4.2. Review every applicable advisory, choose a supported patched release, and verify the lockfile, deployed artifact, and regression results. WAF rules do not replace dependency patches.
Security governance defines what AI systems may access, which providers they may use, and which actions require human or policy approval.
Governance Controls
| Control | Purpose |
|---|---|
| OIDC and identity | Avoid long-lived deploy credentials |
| Secret management | Keep provider keys out of source and prompts |
| Gateway policy | Centralize provider and model access |
| WAF and BotID | Protect public AI endpoints |
| Approval gates | Prevent uncontrolled side effects |
| Audit logs | Record user, model, tool, and workflow actions |
Risk Review
- Which data classes can the AI flow access?
- Which tools can mutate state?
- Which provider and region policies apply?
- Who owns incidents and escalations?
- What evidence proves the control worked?