将 Google Cloud Functions 的访问权限限制在给定的网络? [英] Restrict access to Google Cloud Functions to a given network?

查看:27
本文介绍了将 Google Cloud Functions 的访问权限限制在给定的网络?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在浏览 Google Cloud Functions 文档,我想知道它是否是否可以将 HTTP 云功能的访问限制到给定的网络?我想避免任何人用完免费配额.

I'm looking through Google Cloud Functions docs and I wonder if it is possible to restrict access to HTTP cloud function to the given network? I would like to avoid anyone to exhaust the free quota.

是否有适用于 Cloud Functions 的防火墙规则或类似机制?

Is there any firewall rules or similar mechanism for Cloud Functions?

推荐答案

我认为目前没有任何内置的安全限制.

I don't believe there is any in-built security restrictions at the moment.

就避免配额耗尽而言,您可以传递带有某种共享秘密的标头或参数.即使是固定的字符串值也有助于避免这个问题.

In terms of avoid quota exhaustion you could pass a header or parameter with some kind of shared secret. Even a fixed string value would help avoid this problem.

这篇关于将 Google Cloud Functions 的访问权限限制在给定的网络?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆