I'm trying to expose a private GCP Cloud Function using API Gateway. The function is written in Node.js and deployed with --ingress-settings=internal-and-gclb, and it works fine when called internally with an authenticated request.
However, when I try to access the function via the configured API Gateway, I receive the following error:
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>403 Forbidden</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Forbidden</h1>
<h2>Your client does not have permission to get URL <code>/ping</code> from this server.</h2>
</body>
</html>