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.0.tar.gz (11.7 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.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

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

Hashes for iris_security_openai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 98dc11bb35d0434a4182910e84f14ed8ba29d83bc83fa634d514005ccbce4475
MD5 fc3f146d178c962b0110f959ab1c0772
BLAKE2b-256 c44e81a3226937b7759cd0c94da5b988560b931c0ea74145d57ccaca7e455bb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for iris_security_openai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c289faa2567d9ce0e2846a1364d4acef21fdd3058e9946675dc9a2544c749dda
MD5 f75c560fc5e35a84f999cfbef19fd9a0
BLAKE2b-256 69bcef50fd5befe4ca0de33d288eef72ba39fb9bed426686136040f699cdd222

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