API Gateway logging secret API key

Hi

When you create API Key in console it shows you your API key. Then you have button to reveal this secret.

But in logs it’s there visible always. Why?

api_key: "AI

api_key_state: “VERIFIED”

Your copy paste mentions just API Key? Do you mean the API key is logged? And which logs are you referring to?

Hi dknezic I have a similar issue. I have created an API gateway with Cloud Function as a backend. To authenticate the user we are using API key. But when I check the logs for the api the jsonpayload clearly shows the API KEY value. How can prevent this.

Hi @dhairyashil-w , thanks for reaching out! To get the best support for your question, I recommend creating a new thread and referencing this one as well.

Hi @AlexET I have created a new thread below is the link:

https://www.googlecloudcommunity.com/gc/Apigee/API-Gateway-logging-secret-API-key/td-p/850452