bug: when using GCP secret manager with ssl_verify
set to true, unable to get local issuer certificate
even when ssl_trusted_certificate
is configured
#11657
Labels
bug
Something isn't working
Current Behavior
When integrating with GCP secret manager for secret fetching with
ssl_trusted_certificate
configured, ifssl_verify
is set totrue
(default), you will see a401 Unauthorized
error with the following in error log:If
ssl_verify
is set tofalse
, the feature works correctly.Expected Behavior
Not error, 200 OK
Error Logs
Steps to Reproduce
Set up APISIX 3.11.0 (currently not released and the feature is available on master).
Update
config.yaml
with the following config:Create a secret on GCP. Say the name is
apisix-jack-key-auth
and secret isjack-key
.Create a service account on GCP, assign the account with proper role, and get its credentials in JSON format.
Configure a GCP secret provider in APISIX for a sample user jack:
Here
ssl_verify
is explicitly set totrue
but this is also the default configuration,true
if not set.Create a consumer and enable
key-auth
. Update the key with reference to the secret on GCP:Enable the
key-auth
plugin on a route, say/anything
.Send a request to the route with the valid credential:
Expecting
200 OK
but receive401 Unauthorized
with the above error in the error log.Environment
apisix version
):3.11.0
(unreleased, master currently)The text was updated successfully, but these errors were encountered: