<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>OIDC on 白と黒</title><link>https://chillfixx.work/tags/oidc/</link><description>Recent content in OIDC on 白と黒</description><generator>Hugo</generator><language>ja</language><lastBuildDate>Wed, 07 Oct 2026 13:00:00 +0900</lastBuildDate><atom:link href="https://chillfixx.work/tags/oidc/index.xml" rel="self" type="application/rss+xml"/><item><title>GitHub ActionsのOIDCでGCPが403になる原因</title><link>https://chillfixx.work/blog/github-actions-gcp-oidc-403/</link><pubDate>Wed, 07 Oct 2026 13:00:00 +0900</pubDate><guid>https://chillfixx.work/blog/github-actions-gcp-oidc-403/</guid><description>&lt;h2 id="はじめに手元の-terraform-は通るのにcd-だけ-403-で落ちる"&gt;はじめに:手元の terraform は通るのに、CD だけ 403 で落ちる&lt;/h2&gt;
&lt;figure&gt;
 &lt;video class="w-full rounded-2xl" src="https://chillfixx.work/blog/github-actions-gcp-oidc-403/symptom.mp4" poster="/blog/github-actions-gcp-oidc-403/symptom.webp" width="1200" height="675" data-motion loop muted playsinline preload="none" aria-label="手元のユーザ認証では terraform が通るのに、GitHub Actions の CD では terraform init が 403 で落ちる"&gt;&lt;/video&gt;
 &lt;figcaption&gt;手元のユーザ認証では terraform が通るのに、GitHub Actions の CD では terraform init が 403 で落ちる&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;GitHub Actions から Google Cloud (GCP) へ、サービスアカウント (SA) の鍵を置かずに Workload Identity Federation でデプロイする構成を組んだ。手元で &lt;code&gt;terraform apply&lt;/code&gt; までは通る。ところが develop へマージした後の CD で、&lt;code&gt;terraform init&lt;/code&gt; が 403 (&lt;code&gt;iam.serviceAccounts.getAccessToken&lt;/code&gt;) で落ちた。&lt;/p&gt;</description></item></channel></rss>