Repository navigation
Replacement pattern #13047
|
Hello,
However, the same approach does not work for AI plugins such as ai-proxy:
Do you have any explanation for this difference in behavior? |
Replies: 1 comment
|
Hi @mohamedDev! I'm Dosu and I’m helping the apisix team. The difference comes down to how APISIX implements secret resolution — it's not automatic across all plugins. Why jwt-auth works: Consumer authentication plugins like Why ai-proxy doesn't work: Route-level plugins like Only a few plugins explicitly support secret references: To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Hi @mohamedDev! I'm Dosu and I’m helping the apisix team.
The difference comes down to how APISIX implements secret resolution — it's not automatic across all plugins.
Why jwt-auth works: Consumer authentication plugins like
jwt-authget secret resolution automatically because the consumer module callsfetch_secrets()on auth configurations.Why ai-proxy doesn't work: Route-level plugins like
ai-proxymust explicitly implement secret resolution, and ai-proxy currently doesn't callfetch_secrets()in its code. This is a known feature gap.Only a few plugins explicitly support secret references:
limit-count,ai-aws-content-moderation, andauthz-keycloak. For ai-proxy, you'll currently need…