Draft
Add Workload Identity Federation article to hugoplate blog#6
Conversation
Co-authored-by: yayachang <3753981+yayachang@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Workload Identity Federation article
Add Workload Identity Federation article to hugoplate blog
Feb 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds comprehensive Chinese-language guide on migrating from GCP Service Account JSON keys to Workload Identity Federation for cross-cloud authentication.
Changes
hugoplate/content/english/blog/workload-identity-federation.mdArticle Structure
Metadata configured for "Cloud" category with GCP, AWS, security tags.
Original prompt
This section details on the original issue you should resolve
<issue_title>write WIF article</issue_title>
<issue_description>將以下內容寫在hugoplate分支,新增一篇文章:
告別 Service Account 金鑰:Workload Identity Federation 完整入門指南
問題:Service Account 金鑰的痛點
在串接 Google Cloud API(例如 Google Play Developer API、Google Sheets API)時,最常見的做法是:
這個流程能動,但有幾個根本性的問題:
iam.disableServiceAccountKeyCreation,根本不讓你建金鑰那有沒有辦法不用金鑰,就能讓你的 AWS 上的服務去呼叫 GCP API?
答案就是 Workload Identity Federation(WIF)。
核心概念:用「身份交換」取代「密碼」
一個生活化的比喻
想像你是台灣人,要去日本的銀行辦事。銀行不認識你,但他們信任台灣的外交部。
流程是這樣的:
整個過程沒有交換密碼,只有身份的驗證和信任的傳遞。
技術對照
架構圖
三個你一定要懂的元件
1. Workload Identity Pool(身份池)
把它想成一個「外國人登記處」。
它是 GCP 專案裡的一個容器,用來管理外部身份(AWS、Azure、GitHub Actions 等)的信任關係。
2. Provider(身份提供者)
把它想成登記處裡的「國家窗口」。
每個 Pool 裡面可以有多個 Provider,每個 Provider 對應一個外部身份來源。
Provider 的設定決定了:
3. Service Account + IAM 綁定
把它想成「這個外國人可以用哪個本地人的名義辦事」。
外部身份本身在 GCP 裡沒有任何權限。你需要授權它「扮演」(impersonate) 某個 Service Account,而這個 Service Account 才有實際的 API 權限。
實作步驟
Step 0:前置準備
確認你有:
gcloudCLIStep 1:建立 Workload Identity Pool
Step 2:建立 AWS Provider
其中
--account-id是你的 12 位數 AWS 帳號 ID。Step 3:建立 Service Account(如果還沒有)
Step 4:授權 Pool 扮演 Service Account
Step 5:產生 credential-config.json