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.
Release files for iris-security-openai 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iris_security_openai-0.2.1.tar.gz | 12.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iris_security_openai-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.1 kB
Release files / iris_security_openai-0.2.1.tar.gz
| Download URL | iris_security_openai-0.2.1.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a317620c0c2023293d76e7ba617a9e5e61f77bb8ddd449353eabf3698c795381
|
|
BLAKE2b-256 checksum How to use checksums |
65952a95889a6381c79a62faf1d950301474f59f762a0ee45e52eee77c39dbd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / iris_security_openai-0.2.1-py3-none-any.whl
| Download URL | iris_security_openai-0.2.1-py3-none-any.whl |
|---|---|
| Size | 13.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7344a96e7d70d191ca14e59fd754d4efc172fbccaa64a52c8662a66f7cc5ba08
|
|
BLAKE2b-256 checksum How to use checksums |
6d321787a6ba7512a0e6cfc9a4489806db097342fe735b7a30a7c93ce5a677fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|