Failed API Key Restriction

29 views
Skip to first unread message

Erick Holguin

unread,
Jul 15, 2022, 11:58:53 AM7/15/22
to Google Cloud Endpoints
I have been trying to setup my Cloud Endpoints using ESPv2, GKE, and OpenAPI. I followed this tutorial and when successfully set up, I wanted to lock down the endpoints with API Keys.

I wanted to option to restrict the entire API using API key restriction, however in using the correct OpenAPI top level option security, the calls still come through without checking the API key. 

Am I missing something or have something misconfigured in my openapi.yaml below? I would happy to share more of the sensitive configuration in a private DM if it helps.

Cheers, 
Erick Holguin
openapi.yaml

Teju Nareddy

unread,
Jul 15, 2022, 12:07:50 PM7/15/22
to Erick Holguin, Google Cloud Endpoints
Your openapi.yaml looks correct to me. Can you share the file output of this command? Feel free to email me directly at nare...@google.com

gcloud endpoints configs describe "${LATEST_CONFIG_ID}" \
  --project="${PROJECT}" \
  --service="${SERVICE_NAME}" \
  --format=json \
  > service.json

You can find these variable names in the Cloud Endpoints page in the GCP console.

--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/45a00bcb-d59c-4b3c-8675-d978c7472c8en%40googlegroups.com.


--

Teju Nareddy

nare...@google.com

Software Engineer

Reply all
Reply to author
Forward
0 new messages