0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

CloudRunでIdentity Aware Proxyを有効化させる時に詰まったところ

Posted at

状況

下の参考に載せている色々な記事でIAPを有効化しても、認証の画面が出てこず、困っていた。

原因と解決策

ブラウザのキャッシュやCookieが残っていた

  • 過去に認証済みのCookieが残っていると、認証画面が表示されない場合がある
  • キャッシュの削除をする必要がある

Cloud Run側で「未認証アクセスを許可」していた

  • 認証の設定をオフにする必要がある
  • これが有効なままだと、IAPを経由せずにアクセスできてしまう
    image.png

アクセス経路がIAPを通ってない

  • ロードバランサー経由でしかアクセスできない様にする
  • デフォルトのHTTPSエンドポイントURLからアクセスしてしまうと、IAPを経由しない
    image.png

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?