Overview
OCI Policy Analysis is now a multi-modal application for Oracle Cloud Infrastructure (OCI) IAM analysis. You can run it as:
a Desktop UI (Tkinter)
a Web UI (FastAPI + static web client)
a CLI for automation and offline workflows
an MCP Server for AI tooling integrations (Claude, VS Code MCP, etc.)
The core goal across all modes is the same: analyze and explain OCI IAM policies, dynamic groups, principals, and effective access. You can load data directly from OCI, reuse a local combined cache, or import OCI CIS Compliance output when the tool must not connect to a tenancy.
Core Capabilities
Policy Analysis: Parse/filter IAM policy statements by subject, verb, resource, compartment, and conditions.
Dynamic Group Analysis: Review dynamic-group rules, usage, and related policy grants.
Principal-Centric Analysis: Analyze access for users, groups, resource principals, and OKE workload identities.
Historical Comparison: Compare policy snapshots over time.
Caching: Save/load combined tenancy data for repeatable, offline, or remote workflows.
Export & Import: Export analysis data to JSON/CSV and re-import as needed.
AI Insights: Generate plain-language interpretation of policy statements.
Contextual Help: In-app guidance based on page/section context.
Advanced Capabilities
Condition Tester: Evaluate hypothetical where-clause values.
Permissions Report: Resolve effective OCI permissions by principal and compartment.
MCP Tooling: Expose tenancy data as MCP tools/resources for AI assistants.
API Simulation: Evaluate whether an OCI API call should be allowed under selected policies.
Recommendations Workbench: Catalog and prioritize policy improvement suggestions.
The application supports Instance Principal, OCI profile/config, and Session Token authentication models.
Feature Availability Matrix (by Startup Mode)
This is a living matrix and can be updated as parity evolves.
Capability |
Desktop |
Web |
CLI |
MCP |
|---|---|---|---|---|
Live OCI data |
✅ |
✅ |
✅ |
✅ |
Combined cache |
✅ |
✅ |
✅ |
✅ |
CIS data import |
✅ |
✅ |
✅ |
❌ |
Interactive UI |
✅ |
✅ |
❌ |
❌ |
Policy search |
✅ |
✅ |
⚠️ |
✅ |
Historical comparison |
✅ |
✅ |
❌ |
⚠️ |
Consolidation |
✅ |
✅ |
❌ |
❌ |
Prospective editor |
✅ |
✅ |
❌ |
⚠️ |
Recommendations |
✅ |
✅ |
❌ |
❌ |
Permissions report |
✅ |
✅ |
⚠️ |
❌ |
API simulation |
✅ |
✅ |
❌ |
✅ |
AI/MCP integration |
✅ |
⚠️ |
⚠️ |
✅ |
Human analysis |
✅ |
✅ |
❌ |
❌ |
Team analysis |
✅ |
✅ |
⚠️ |
⚠️ |
Automation |
⚠️ |
⚠️ |
✅ |
✅ |
Legend
✅ Fully supported
⚠️ Partial/in progress
❌ Not intended for that mode
Notes
The CLI imports OCI CIS Compliance CSV output with
--load-from-compliance; it does not provide an interactive UI.MCP capabilities are exposed through tool calls. The desktop app includes an embedded MCP server; web and CLI can use MCP indirectly.
The CLI permissions report is export-only. See the mode-specific guides for supported options and workflows.
Run Modes (Architecture-at-a-Glance)
The following simplified diagrams show common deployment/run patterns.
1) Desktop Mode (Local Tkinter)
flowchart LR
U[Operator]
D[OCI Policy Analysis\nDesktop UI]
C[Local Cache]
OCI[OCI IAM APIs]
U --> D
D --> C
D -.-> OCI
2) Web Mode (Local)
flowchart LR
B[Browser]
W[OCI Policy Analysis\nWeb Server\nFastAPI + Static UI]
C[Local Cache]
OCI[OCI IAM APIs]
B -->|HTTP localhost| W
W --> C
W -.-> OCI
3) Web Mode (Server + Load Balancer)
flowchart LR
B[Browser Users]
LB[Load Balancer\nHTTPS 443]
W[OCI Policy Analysis\nWeb Server]
C[Cache / Storage]
OCI[OCI IAM APIs]
B --> LB
LB -->|HTTP backend| W
W --> C
W -.-> OCI
4) MCP Mode
MCP usage patterns (STDIO, HTTP, embedded vs standalone) are documented in detail on the dedicated MCP Server page.
The higher-level interactive workflow, including basic vs advanced filters, tag-based search, resource principals, and OKE workload identities, is organized in the Usage guide. For the OKE-specific query pattern, see OKE Workload Identity Querying.