当使用 "Route only requests to private IPs through the VPC connector" 选项启用 VPC 访问器时,云 运行 服务到服务调用获取 403

Cloud Run service to service call getting 403 when VPC Accessor Enabled with "Route only requests to private IPs through the VPC connector" option

我们是否必须通过 VPC 访问器路由所有出站请求? “仅通过 VPC 连接器将请求路由到私有 IP”选项有什么用?是否只针对不调用另一个的服务?

当您在云 运行 服务上将入口设置为仅限内部或内部和云负载平衡时,您无法从外部访问您的服务(除非您使用负载平衡器)。

因此,在您的情况下,您仅将私有 IP 路由到无服务器 VPC 连接器。但是,您的云 运行 服务始终可以通过互联网访问,IP 地址为 public。因此,要从您的 VPC 访问它,您需要对所有流量、私有和 public IP 使用无服务器 VPC 连接器。