Internal application routing

From RedHatProductSecurity/prodsec-skills · View interactive version

Internal application routing is an AI agent skill from the GitHub repository RedHatProductSecurity/prodsec-skills. Route internal application traffic through the API gateway for AI systems. Use when designing AI system architecture or reviewing network topology for inference engines and model endpoints.

How to use this skill

Skill file

Internal Application Routing Through API Gateway

Security Recommendation

Internal applications SHOULD also route their requests through the API gateway rather than connecting directly to guardrails or inference engines. This ensures internal traffic benefits from the same security controls as external traffic.

Rationale

| Concern | Without Gateway | With Gateway |

|---|---|---|

| Authentication | Must be implemented per-service | Centralized enforcement |

| Rate limiting | No protection from internal abuse | Consistent rate limits |

| Request validation | Each service must validate independently | Centralized validation |

| Logging/audit | Fragmented, inconsistent | Unified audit trail |

| Lateral movement | Internal compromise can reach models directly | Gateway acts as chokepoint |

Architecture

External clients ──→ API Gateway ──→ Guardrails ──→ Inference Engine
                         ↑
Internal apps ───────────┘  (also routed through gateway)

Not recommended:

External clients ──→ API Gateway ──→ Guardrails ──→ Inference Engine
                                         ↑               ↑
Internal apps ───────────────────────────┘───────────────┘
                                (bypassing gateway - NOT recommended)

Implementation Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.