first commit

This commit is contained in:
Stéphane Tailland
2026-08-20 17:28:05 +02:00
parent be7a3e8913
commit a0c96eab5b
21 changed files with 670 additions and 7 deletions
+23
View File
@@ -0,0 +1,23 @@
# For agents we build ourselves — real OIDC identity, unlike key-auth
# callers (see key-auth.yaml). No token exchange: the upstream auth to
# OpenRouter is handled entirely by ai-proxy-advanced's own static
# credential, this plugin only authenticates/authorizes the calling agent.
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name: ${NAME}-llm-openid-connect
namespace: ${NAMESPACE}
plugin: openid-connect
config:
issuer: ${OIDC_ISSUER}
audience_required: ${AGENT_AUDIENCE}
auth_methods:
- bearer
display_errors: false
ssl_verify: true
# Lets a request that fails THIS plugin fall through to key-auth instead
# of being rejected outright — "OR" auth across both plugins. Requires
# request-termination bound to this same consumer (see consumer.yaml) to
# actually reject a request that fails every auth plugin — without it,
# anonymous fallback alone would let unauthenticated requests through.
anonymous: ${LLM_ANONYMOUS_CONSUMER_ID}