我正在尝试调用 Cloud Run 服务(需要身份验证)端点。该用户是通过 Firebase 进行身份验证的公共最终用户。研究并尝试了一些指南,但无济于事。我也对云运行服务身份验证的用例数量感到困惑。
3A.1 - Authenticate all rest api calls individually
3A.2 - API Gateway
In terms of pricing, would it be better to use 3A.1, because as I understand it correctly, 3A.2 will incur charges for authenticating users through it.
It's just that it seems too primitive that 3A.1 would have to be done in each endpoint. Am I missing something?
提前致谢。
PS:我对GCP不太熟悉。
根据这些消息来源,我必须选择 3A。
使用控制台或 CLI 将容器映像部署到 Cloud Run。请注意,服务器部署为允许未经身份验证的访问。这样用户就可以加载客户端并开始该过程。服务器手动验证添加到投票请求中的 id 令牌,从而对最终用户进行身份验证。
公开部署您的 Cloud Run 服务。