【问题标题】:How to provide access of Google Cloud Run website to company Active Directory?如何向公司 Active Directory 提供 Google Cloud Run 网站的访问权限?
【发布时间】:2021-11-03 21:08:23
【问题描述】:

我使用 Google Cloud Platform 的 Cloud Build 部署了一个网站,其 yaml 文件如下所示:

  - name: "gcr.io/cloud-builders/gcloud"
    args:
      - "run"
      - "deploy"
      - "my-app"
      - "--image"
      - "gcr.io/$PROJECT_ID/appcicd:latest"
      - "--region"
      - "europe-west2"
      - "--platform"
      - "managed"
      - "--allow-unauthenticated"

使用上面的代码,我已允许任何拥有 URL 链接的人访问该网站。

例如,如何将上述网站访问限制为公司域 Active Directory?假设公司域使用的是 Gmail 帐户。

谢谢。

【问题讨论】:

  • 什么是活动目录域?一个域名?例如@active.directory.domain?

标签: authentication google-cloud-platform active-directory gmail google-cloud-run


【解决方案1】:

要在 Cloud Run 中实现对 Active Directory 用户的身份验证,您需要使用 Firebase authentication 设置 Google Cloud Identity Platform,以验证 identity token 并获取用户 ID。

how to setup Microsoft users in GCIP 上查看此文档。

此外,如果您想继续使用所有 Google 服务,可以查看此article,了解如何使用 Google 登录对用户进行身份验证。

【讨论】:

    猜你喜欢
    • 2010-11-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-18
    • 2019-02-18
    • 1970-01-01
    • 2019-05-31
    相关资源
    最近更新 更多