Skip to main content

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

See examples/governed_gpt.py.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iris_security_openai-0.1.1.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iris_security_openai-0.1.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file iris_security_openai-0.1.1.tar.gz.

File metadata

  • Download URL: iris_security_openai-0.1.1.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for iris_security_openai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4e001b3951f70f024c2d35c488daa04fb278159ee31ac24608cd0b9ffb13c5a5
MD5 6a7291710109232a6b89732ef1746158
BLAKE2b-256 5301375d1d52f934df2397a94afafd83d064b5677752bbd7610fb8a2574a5e27

See more details on using hashes here.

File details

Details for the file iris_security_openai-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for iris_security_openai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e334a234e0875b76774967a0103edca2c73e023c7c1670404c617d45a4511bd1
MD5 154e1395c19b869c45b5256fe22814ed
BLAKE2b-256 b9dffbcf6ca4d8590b8a57036cfaa36d916a08c2df40fba777130344c0d7502d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page