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.2.0.tar.gz (12.1 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.2.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iris_security_openai-0.2.0.tar.gz
  • Upload date:
  • Size: 12.1 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.2.0.tar.gz
Algorithm Hash digest
SHA256 04126ec21f1e1cf99f73efc265f32f1faa45d64936271d47f43265899e3f3114
MD5 950496671f270665813272328ee06ec5
BLAKE2b-256 135c3113e370256283f1bfbe7e456106d6fbb58afe803b19a7c0a4fb4832ad1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for iris_security_openai-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7428703c418c9aaa58b92f3ed1655ea93a3e0e600e81ad44f89049342fc42ca7
MD5 a646aa6290cd9382b4b3600536be6d65
BLAKE2b-256 0e0be5c7e9ccc0fc40fd4f8bcb5fd475f7389628a396bd63aa649c5b0da735fb

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