【问题标题】:GCP IAP service doesn't find HTTPS proxy on load balancerGCP IAP 服务在负载平衡器上找不到 HTTPS 代理
【发布时间】:2017-04-17 12:39:00
【问题描述】:

我正在尝试按照此处的说明使用 HTTPS 负载平衡器设置 IAP:https://cloud.google.com/iap/docs/load-balancer-howto

我的后端是 gke 集群,它在端口 80 上有一个入口来访问 http web 服务器。

前端是带有有效证书的 https。

流量通过 HTTPS FE 从 LB 路由到 Web 服务器没有任何问题,但是当我想使用以下命令启用 IAP 时:

gcloud beta compute backend-services update k8s-be-30324--34c500f0e91c741a --iap=enabled --global

它返回以下输出:

WARNING: IAP only protects requests that go through the Cloud Load Balancer. See the IAP documentation for important security best practices: https://cloud.google.com/iap/
    WARNING: IAP has been enabled for a backend service that does not use HTTPS. Data sent from the Load Balancer to your VM will not be encrypted.
ERROR: (gcloud.beta.compute.backend-services.update) There was a problem modifying the resource:
 - Invalid value for field 'resource.iap': ''. Backend service with IAP enabled requires at least one HTTPS proxy.

感谢任何建议!谢谢

【问题讨论】:

    标签: google-cloud-platform gcloud


    【解决方案1】:

    所以我想出一种解决方法是使用与 kubernetes 集群的 ingress 相同的 LB,而不是使用自定义的。当然,为了避免泄露未经授权的访问 FE for http,必须从 LB 中删除。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-05-14
      • 2020-05-08
      • 2018-02-18
      • 2022-01-10
      • 1970-01-01
      • 1970-01-01
      • 2022-01-05
      • 1970-01-01
      相关资源
      最近更新 更多