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?

[GCP]ADCについてざっくり

Last updated at Posted at 2024-11-28

GCP の認証ライブラリが使用する認証情報である。
Terraform などのサードパーティツール でも ADC が使われる(=この認証ライブラリが使われているようである)

認証ライブラリは、以下のを探して ADC を取得しようとする。

  1. 環境変数 GOOGLE_APPLICATION_CREDENTIALS で設定されている「サービスアカウントキーや、Workload Identity 連携の認証情報構成のJSONファイルパス」
  2. gcloud auth application-default login実行時に保存される ADC ファイルのパス(保存場所は OS によって異なる)
    • Linux / Mac: ~/.config/gcloud/application_default_credentials.json
    • Windows: %APPDATA%\gcloud\application_default_credentials.json
  3. (GCP リソース上である場合のみ)リソースに紐づけられたサービスアカウントの認証情報(メタデータサーバーから自動取得する)

参考:

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?