IRIS governance for OpenAI — Cedar policy on every API call
Project description
iris-openai
Drop-in IRIS governance for the OpenAI Python SDK.
Replace one line:
# client = openai.OpenAI()
client = IrisOpenAI(passport=passport)
Every client.chat.completions.create(), stream(), and client.embeddings.create() call is evaluated against Cedar policy, recorded in the Evidence Vault, and enforced per IRIS_ENV (warn in dev, block in production).
Tool arrays are filtered to passport.tool_permissions; removed tools are logged as IRIS-TOOL-001 (never silently dropped in dev).
Install
pip install iris-openai
Quickstart
Environment
IRIS_ENV |
Behavior |
|---|---|
dev |
Fail open — warnings to stderr, never block |
production |
Fail closed — IrisViolationError on deny |
Defaults to dev when unset.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iris_security_openai-0.1.0.tar.gz.
File metadata
- Download URL: iris_security_openai-0.1.0.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98dc11bb35d0434a4182910e84f14ed8ba29d83bc83fa634d514005ccbce4475
|
|
| MD5 |
fc3f146d178c962b0110f959ab1c0772
|
|
| BLAKE2b-256 |
c44e81a3226937b7759cd0c94da5b988560b931c0ea74145d57ccaca7e455bb9
|
File details
Details for the file iris_security_openai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iris_security_openai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c289faa2567d9ce0e2846a1364d4acef21fdd3058e9946675dc9a2544c749dda
|
|
| MD5 |
f75c560fc5e35a84f999cfbef19fd9a0
|
|
| BLAKE2b-256 |
69bcef50fd5befe4ca0de33d288eef72ba39fb9bed426686136040f699cdd222
|