Does AI-Proxy now support Reference Format replacement for retrieving secrets from GCP Secret Manager? #13850
Replies: 2 comments 4 replies
|
Yes, What changed: PR #13312 introduced centralized secret resolution for all plugins. Previously, only specific plugins (like What you need to set up first: Register GCP Secret Manager as a secret provider resource in APISIX via the Admin API [2]: curl "http://127.0.0.1:9180/apisix/admin/secrets/gcp/xxxxx" -X PUT -d '{
"auth_config": {
"client_email": "...",
"private_key": "...",
"project_id": "my-project"
}
}'Once registered, your One thing to watch for: If the secret reference fails to resolve (e.g., wrong credentials or missing secret resource), APISIX will use the literal To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
|
Short answer: yes, both parts work, and both of the things you were told above are wrong for current APISIX. They also both changed in the same release, 3.17.0, which is probably where the confusion comes from. I built this and measured it rather than reading the code alone, on 3.18.0 with etcd and a real secret manager.
|
Uh oh!
There was an error while loading. Please reload this page.
Hello,
Does AI-Proxy now support Reference Format replacement for retrieving secrets from GCP Secret Manager?
Would the following example work?
In other words, can APISIX retrieve the secret from GCP Secret Manager and replace the $secret://... reference with the actual secret value in the Authorization header?
@dosu
All reactions