Google App Engine和GCP负载平衡器请求检查

发布于 2025-01-25 04:47:30 字数 175 浏览 2 评论 0原文

我在Google App Engine中运行API,我想在Introspect HTTP Post Body中拒绝形成不佳的呼叫,然后它击中APPI在App Engine中运行的API。有没有一种方法可以在应用程序引擎应用程序上进行启发,我可以在App Engine中运行的代码实际上处理了URI,邮局并返回400件?请让我知道,谢谢。

I have an API running in Google App Engine and I want to introspect HTTP POST body to reject poorly formed calls before it hits my API running in app engine. Is there a way to front an App Engine application whereby I can introspect the URI, the POST body and return a 400 without it actually being processed by my code running in App Engine? Please let me know, thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

土豪我们做朋友吧 2025-02-01 04:47:30

如果要检查HTTP,则需要编写代理应用程序才能这样做。 Google Cloud Load Balancer和App Engine支持HTTP请求都没有。

代理具有MITM(中间的人)问题,因为HTTP流量通常是加密的。除非您的代理是端点,否则您将无法检查该流量。如果您使用apache或nginx实现代理,则可以使用 modsecurity 项目。

基本上,您想实现WAF。 Google提供 Cloud Armor 支持通过云装甲规则检查流量。

If you want to inspect HTTP, then you will need to write a proxy application to do so. Neither the Google Cloud Load Balancer nor App Engine support hooking HTTP requests.

Proxies have the MITM (Man In The Middle) problem in that HTTP traffic is often encrypted. You will not be able to inspect that traffic unless your proxy is the endpoint. If you implement your proxy with Apache or Nginx then you can use the ModSecurity project.

Basically, you want to implement a WAF. Google offers Cloud Armor which supports inspecting traffic via Cloud Armor rules.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文