限制对给定网络的Google Cloud Functions访问? [英] Restrict access to Google Cloud Functions to a given network?
本文介绍了限制对给定网络的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.
云功能是否有任何防火墙规则或类似机制?
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屋!
查看全文