Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions k8s/helm/commonly/templates/configmaps/litellm-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,30 @@ data:
# the container startup script; PYTHONPATH is set accordingly.
callbacks: rate_limit_signal.proxy_handler_instance

# Content/behavioral guardrails — anti-pattern DETECTION on proxy traffic.
# Posture: MONITOR-ONLY for now (logging_only ⇒ flag, never block), so we
# measure policy-violating / anomalous content flowing through the proxy
# (platform features + hosted agents) before deciding whether to enforce.
# Uses the free OpenAI moderation endpoint via the already-present
# OPENAI_API_KEY (no new secret, no new infra). default_on runs it on every
# request. NOTE: the genuine public-launch exposure is INDIRECT PROMPT
# INJECTION of platform features (summarizer/digest/native apps) that ingest
# untrusted pod content on the master key — once we have flag data, the next
# step is to enforce on a scoped platform key, not globally. Broad user-post
# moderation belongs at the app/ingestion layer, NOT here. Presidio PII +
# prompt-injection detectors are documented fast-follows (need a sidecar /
# are block-only). If this adds latency/failures on the proxy, set
# default_on:false to disable instantly. See issue #538-adjacent + the
# guardrails research note.
guardrails:
- guardrail_name: "openai-moderation-monitor"
litellm_params:
guardrail: openai_moderation
mode: "logging_only"
model: "omni-moderation-latest"
api_key: os.environ/OPENAI_API_KEY
default_on: true

general_settings:
master_key: os.environ/LITELLM_MASTER_KEY
database_url: os.environ/DATABASE_URL
Expand Down
Loading