Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

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"

 

0 4 429
4 REPLIES 4

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.