{"id":9348,"date":"2023-08-29T13:44:30","date_gmt":"2023-08-29T04:44:30","guid":{"rendered":"https:\/\/blog.synnex.co.jp\/?p=9348"},"modified":"2023-09-06T12:56:39","modified_gmt":"2023-09-06T03:56:39","slug":"gitlab-google-cloud-connection","status":"publish","type":"post","link":"https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/","title":{"rendered":"GitLab\u3068Google Cloud\u3092\u9023\u643a\u3059\u308bWorkload Identity Federation"},"content":{"rendered":"\n<p>GitLab\u3068Google Cloud\u3092\u9023\u643a\u3059\u308bWorkload Identity Federation\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001Google Cloud \u3068 GitLab\u306e\u9023\u643a\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"gitlab\u306b\u3064\u3044\u3066\">GitLab\u306b\u3064\u3044\u3066<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/gitlab-gcp.html#gitlab%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6\"><\/a><\/h2>\n\n\n\n<p><a href=\"https:\/\/www.synnex.co.jp\/vendor\/gitlab\/\">GitLab<\/a>\u306f\u3001\u30bd\u30fc\u30b9\u7ba1\u7406\u3092\u30b3\u30a2\u6a5f\u80fd\u3068\u3057\u3066\u3001DevOps\/DevSecOps\u5168\u822c\u306b\u6e21\u3063\u3066\u5e45\u5e83\u3044\u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308b\u7d71\u5408\u578b\u958b\u767a\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u3059\u3002<br>GitLab\u793e\u304c\u904b\u7528\u3059\u308b\u30af\u30e9\u30a6\u30c9\u578bSaaS\u7248\u306b\u52a0\u3048\u3066\u3001\u30aa\u30f3\u30d7\u30ec\u30df\u30b9\u3067\u3082\u7a3c\u50cd\u3055\u305b\u308bSelf-Managed\u7248\u304c\u3042\u308a\u307e\u3059\u3002<br>\u8cfc\u5165\u3067\u304d\u308b\u30a8\u30c7\u30a3\u30b7\u30e7\u30f3\u306f\u3001\u30d5\u30ea\u30fc\u7248\u306b\u52a0\u3048\u3066\u3001Premium\u7248\u3001Ultimate\u7248\u304c\u3042\u308a\u307e\u3059\u3002<br>\u30d5\u30ea\u30fc\u7248\u306e\u5834\u5408\u3001\u30b9\u30b3\u30fc\u30d7\u30c9\u30e9\u30d9\u30eb\u306a\u3069\u975e\u5e38\u306b\u4fbf\u5229\u306a\u6a5f\u80fd\u304c\u7121\u3044\u306a\u3069\u3001\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p>GitLab\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u3082\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<br><a href=\"https:\/\/www.synnex.co.jp\/vendor\/gitlab\/\">https:\/\/www.synnex.co.jp\/vendor\/gitlab\/<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"google-cloud-\u3068-gitlab\u306e\u9023\u643a\u306b\u3064\u3044\u3066\">Google Cloud \u3068 GitLab\u306e\u9023\u643a\u306b\u3064\u3044\u3066<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/gitlab-gcp.html#google-cloud-%E3%81%A8-gitlab%E3%81%AE%E9%80%A3%E6%90%BA%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6\"><\/a><\/h2>\n\n\n\n<p>\u6628\u4eca\u3001DevOps\u3068\u3044\u3046\u8a00\u8449\u304c\u4e00\u822c\u5316\u3057\u3066\u304d\u3066\u304a\u308a\u3001Google Cloud \u3067\u30b7\u30b9\u30c6\u30e0\u69cb\u7bc9\u3059\u308b\u4e0a\u3067\u3082\u3001DevOps\u3092\u610f\u8b58\u3059\u308b\u3053\u3068\u304c\u591a\u304f\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u3002 \u3053\u308c\u3092\u5b9f\u73fe\u3059\u308b\u4e0a\u3067\u3082\u3001Git\u30ea\u30dd\u30b8\u30c8\u30ea\u3068\u306e\u9023\u643a\u304c\u6b20\u304b\u305b\u306a\u3044\u7269\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002 Google Cloud \u3068 GitLab\u3067\u9023\u643a\u3057\u305f\u3044\u30b1\u30fc\u30b9\u306f\u8272\u3005\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u305d\u306e\u4e2d\u306e\u4e00\u3064\u3068\u3057\u3066\u3001Git\u3067\u7ba1\u7406\u3055\u308c\u3066\u3044\u308b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092main\u30d6\u30e9\u30f3\u30c1\u306a\u3069\u7279\u5b9a\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u30de\u30fc\u30b8\u3057\u305f\u969b\u3084\u7279\u5b9a\u306e\u30bf\u30b0\u3092\u4ed8\u3051\u305f\u969b\u306b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4\u3092\u81ea\u52d5\u5316\u3092\u691c\u8a0e\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>Google Cloud \u3068 \u5916\u90e8\u306e\u30b5\u30fc\u30d3\u30b9\u3068\u9023\u643a\u3059\u308b\u969b\u306b\u3088\u304f\u4f7f\u308f\u308c\u308b\u65b9\u6cd5\u3068\u3057\u3066\u3001Google Cloud\u3067\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3001\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\uff08JSON\u30d5\u30a1\u30a4\u30eb\uff09\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u5074\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067Google Cloud\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u65b9\u6cd5\u306f\u3001\u3088\u304f\u4f7f\u308f\u308c\u308b\u65b9\u6cd5\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u304c\u5916\u90e8\u306b\u6d41\u51fa\u3057\u305f\u969b\u306b\u306f\u3001\u3069\u3053\u304b\u3089\u3067\u3082Google Cloud\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u3066\u3057\u307e\u3046\u3002\u3068\u3044\u3046\u30ea\u30b9\u30af\u304c\u4f34\u3044\u307e\u3059\u3002 \u305d\u306e\u305f\u3081\u3001\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u4ed8\u4e0e\u3059\u308b\u6a29\u9650\u3092\u5fc5\u8981\u6700\u4f4e\u9650\u306e\u3082\u306e\u306b\u3059\u308b\u306a\u3069\u306e\u88ab\u5bb3\u3092\u6700\u5c0f\u306b\u3059\u308b\u305f\u3081\u306e\u5bfe\u5fdc\u3092\u53d6\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>Google Cloud\u3068GitLab\u3092\u9023\u643a\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u306f\u3001GitLab\u306eGitLab CI\u3092\u8a2d\u5b9a\u3057\u3001\u7279\u5b9a\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u30de\u30fc\u30b8\u3057\u305f\u969b\u306b\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u3057\u3001Google Cloud \u5074\u306e Cloud Source Repositories \u306b\u9023\u643a\u3059\u308b\u3002\u3068\u3044\u3046\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u306e\u5834\u5408\u306b\u306f\u3001GitLab CI\u5074\u306b\u8a2d\u5b9a\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u6a29\u9650\u3092Cloud Source Repositories\u3078\u306e\u66f8\u304d\u8fbc\u307f\u6a29\u9650\u306e\u307f\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u6700\u5c0f\u306e\u6a29\u9650\u3092\u4ed8\u4e0e\u3057\u305f\u5f62\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u5f62\u5f0f\u3067\u3082\u3001\u5916\u90e8\u304b\u3089Cloud Source Repositories\u306b\u76f4\u63a5\u60aa\u610f\u306e\u3042\u308b\u30b3\u30fc\u30c9\u304c\u66f8\u304d\u8fbc\u307e\u308c\u308b\u53ef\u80fd\u6027\u306f\u6392\u9664\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3089\u3092\u3088\u308a\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u3001 Workload Identity Federation \u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"workload-identity-federation\u306b\u3064\u3044\u3066\">Workload Identity Federation\u306b\u3064\u3044\u3066<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/gitlab-gcp.html#workload-identity-federation%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6\"><\/a><\/h2>\n\n\n\n<p>\u8a2d\u5b9a\u65b9\u6cd5\u306b\u3064\u304d\u307e\u3057\u3066\u306f\u3001\u3053\u3061\u3089\u306eGitLab\u793e\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br><a href=\"https:\/\/docs.gitlab.com\/ee\/ci\/cloud_services\/google_cloud\/\">Configure OpenID Connect with GCP Workload Identity Federation<\/a><\/p>\n\n\n\n<p>Google Cloud \u5074\u306e\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u6a29\u9650\u3092\u5b89\u5168\u306bGitLab\u5074\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u8cb8\u3057\u51fa\u3059\u65b9\u6cd5\u3067\u3001\u4e00\u822c\u7684\u306b\u5229\u7528\u3055\u308c\u3066\u3044\u308b OpenID Connect (OIDC) \u3092\u5229\u7528\u3057\u3066\u5b89\u5168\u306b\u63a5\u7d9a\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n\n\n\n<p>Workload Identity Federation\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u306a\u304f\u3001GitLab\u5074\u306e\u6a29\u9650\u5909\u66f4\u3084\u6a29\u9650\u306e\u53d6\u308a\u6d88\u3057\u3092Google Cloud\u5074\u3067\u5236\u5fa1\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u3088\u308a\u30bb\u30ad\u30e5\u30a2\u306bGitLab\u304b\u3089Google Cloud \u3078\u306e\u63a5\u7d9a\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u516c\u5f0f\u30b5\u30a4\u30c8\u306e\u8a2d\u5b9a\u624b\u9806\">\u516c\u5f0f\u30b5\u30a4\u30c8\u306e\u8a2d\u5b9a\u624b\u9806<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/gitlab-gcp.html#%E5%85%AC%E5%BC%8F%E3%82%B5%E3%82%A4%E3%83%88%E3%81%AE%E8%A8%AD%E5%AE%9A%E6%89%8B%E9%A0%86\"><\/a><\/h2>\n\n\n\n<p>GitLab\u3001Google Cloud \u306e\u516c\u5f0f\u30b5\u30a4\u30c8\u306f\u4ee5\u4e0b\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u25a0GitLab<br>\u8a2d\u5b9a\u65b9\u6cd5\u306f\u4e0a\u3067\u3082\u7d39\u4ecb\u3057\u305f\u3001GitLab\u793e\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u8a73\u3057\u304f\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br><a href=\"https:\/\/docs.gitlab.com\/ee\/ci\/cloud_services\/google_cloud\/\">Configure OpenID Connect with GCP Workload Identity Federation<\/a><\/p>\n\n\n\n<p>\u25a0Google Cloud<br><a href=\"https:\/\/cloud.google.com\/iam\/docs\/workload-identity-federation-with-other-providers?hl=ja\">\u4ed6\u306e ID \u30d7\u30ed\u30d0\u30a4\u30c0\u3068\u306e Workload Identity \u9023\u643a\u3092\u69cb\u6210\u3059\u308b<\/a><\/p>\n\n\n\n<p>\u203b \u5c11\u3057\u6ce8\u610f\u304c\u5fc5\u8981\u306a\u70b9\u3067\u3059\u304c\u3001GitLab\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u306f\u3001\u300cAWS \u307e\u305f\u306f Azure\u300d\u306e\u8a2d\u5b9a\u3078\u306e\u30ea\u30f3\u30af\u304c\u3042\u308a\u307e\u3059\u304c\u3001GitLab\u306fOIDC\u3092\u5229\u7528\u3057\u305f\u63a5\u7d9a\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001Google Cloud \u306e\u516c\u5f0f\u30b5\u30a4\u30c8\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306f\u3001\u300c\u4ed6\u306e ID \u30d7\u30ed\u30d0\u30a4\u30c0\u300d\u3092\u53c2\u7167\u3059\u308b\u3068\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306b\u8a2d\u5b9a\u65b9\u6cd5\u3092\u7c21\u5358\u306b\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u8a2d\u5b9a\u624b\u9806\">\u8a2d\u5b9a\u624b\u9806<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/gitlab-gcp.html#%E8%A8%AD%E5%AE%9A%E6%89%8B%E9%A0%86\"><\/a><\/h2>\n\n\n\n<p>\u3053\u3053\u304b\u3089\u4ee5\u4e0b\u306e\u624b\u9806\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Workload Identity \u30d7\u30fc\u30eb\u3092\u4f5c\u6210<\/li>\n\n\n\n<li>Workload Identity \u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3092\u4f5c\u6210<\/li>\n\n\n\n<li>\u5c5e\u6027\u30de\u30c3\u30d4\u30f3\u30b0\u8a2d\u5b9a<\/li>\n\n\n\n<li>\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u306a\u308a\u3059\u307e\u3057\u6a29\u9650\u8a2d\u5b9a<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"1-google-cloud\u306e\u8a2d\u5b9a\u753b\u9762\u3092\u958b\u304f\">(1) Google Cloud\u306e\u8a2d\u5b9a\u753b\u9762\u3092\u958b\u304f<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/gitlab-gcp.html#1-google-cloud%E3%81%AE%E8%A8%AD%E5%AE%9A%E7%94%BB%E9%9D%A2%E3%82%92%E9%96%8B%E3%81%8F\"><\/a><\/h4>\n\n\n\n<p><strong>(1)-1 Google Cloud \u306e \u30e1\u30cb\u30e5\u30fc\u304b\u3089 Workload Identity \u9023\u643a \u3092\u958b\u304f<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-dominant-color=\"f5f1f0\" data-has-transparency=\"false\" style=\"--dominant-color: #f5f1f0;\" loading=\"lazy\" decoding=\"async\" width=\"805\" height=\"1024\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/001-gitlab-gcp-805x1024.png\" alt=\"\" class=\"wp-image-9349 not-transparent\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/001-gitlab-gcp-805x1024.png 805w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/001-gitlab-gcp-236x300.png 236w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/001-gitlab-gcp-768x977.png 768w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/001-gitlab-gcp.png 1086w\" sizes=\"auto, (max-width: 805px) 100vw, 805px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>(1)-2 Workload Identity \u30d7\u30fc\u30eb\u3092\u4f5c\u6210\u3092\u958b\u304f<\/strong><a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/gitlab-gcp.html#1-2-workload-identity-%E3%83%97%E3%83%BC%E3%83%AB%E3%82%92%E4%BD%9C%E6%88%90%E3%82%92%E9%96%8B%E3%81%8F\"><\/a><\/p>\n\n\n\n<p>\u3053\u306e\u30e1\u30cb\u30e5\u30fc\u3067\u30d7\u30ed\u30d0\u30a4\u30c0\u306e\u4f5c\u6210\u307e\u3067\u884c\u3048\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-dominant-color=\"faf9fa\" data-has-transparency=\"true\" style=\"--dominant-color: #faf9fa;\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/002-gitlab-gcp-1024x504.png\" alt=\"\" class=\"wp-image-9350 has-transparency\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/002-gitlab-gcp-1024x504.png 1024w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/002-gitlab-gcp-300x148.png 300w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/002-gitlab-gcp-768x378.png 768w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/002-gitlab-gcp-1536x757.png 1536w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/002-gitlab-gcp-2048x1009.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<h4 class=\"wp-block-heading\" id=\"2-\u30d7\u30fc\u30eb\u4f5c\u6210\">(2) \u30d7\u30fc\u30eb\u4f5c\u6210<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/gitlab-gcp.html#2-%E3%83%97%E3%83%BC%E3%83%AB%E4%BD%9C%E6%88%90\"><\/a><\/h4>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u540d\u524d\uff1a&nbsp;Gitlab<br>\u8aac\u660e\uff1a \u76ee\u7684\u304c\u308f\u304b\u308b\u3088\u3046\u306b\u8a18\u8f09\u3057\u3066\u4e0b\u3055\u3044<br>\u203b \u30d7\u30fc\u30ebID\u306f\u3001\u81ea\u52d5\u3067\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u7de8\u96c6\u3082\u53ef\u80fd\u3067\u3059\u304c\u305d\u306e\u307e\u307e\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img data-dominant-color=\"f9f9fa\" data-has-transparency=\"true\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/003-gitlab-gcp-1024x508.png\" alt=\"\" class=\"wp-image-9351 has-transparency\" style=\"--dominant-color: #f9f9fa; width:840px;height:417px\" width=\"840\" height=\"417\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/003-gitlab-gcp-1024x508.png 1024w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/003-gitlab-gcp-300x149.png 300w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/003-gitlab-gcp-768x381.png 768w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/003-gitlab-gcp-1536x761.png 1536w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/003-gitlab-gcp-2048x1015.png 2048w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/figure>\n<\/div>\n\n\n<h4 class=\"wp-block-heading\" id=\"3-\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u4f5c\u6210\">(3) \u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u4f5c\u6210<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/gitlab-gcp.html#3-%E3%83%97%E3%83%AD%E3%83%90%E3%82%A4%E3%83%80%E3%83%BC%E4%BD%9C%E6%88%90\"><\/a><\/h4>\n\n\n\n<p>\u540c\u3058\u753b\u9762\u304b\u3089\u3001\u5f15\u304d\u7d9a\u304d\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 \u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u30d7\u30ed\u30d0\u30a4\u30c0\u306e\u9078\u629e\uff1a&nbsp;OpenID Connect (OIDC)<br>\u30d7\u30ed\u30d0\u30a4\u30c0\u540d\uff1a&nbsp;gitlab\/gitlab<br>\u767a\u884c\u5143(URL)\uff1a&nbsp;https:\/\/gitlab.com\/<br>\u30aa\u30fc\u30c7\u30a3\u30a8\u30f3\u30b9\uff1a \u8a31\u53ef\u3059\u308b\u30aa\u30fc\u30c7\u30a3\u30a8\u30f3\u30b9\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c&nbsp;<code>https:\/\/gitlab.com<\/code>&nbsp;\u3092\u5165\u529b<br>\u203b \u30d7\u30ed\u30d0\u30a4\u30c0ID\u306f\u3001\u30d7\u30ed\u30d0\u30a4\u30c0\u540d\u3092\u5165\u529b\u3059\u308b\u3068\u81ea\u52d5\u3067\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002\u4eca\u56de\u306e\u8a2d\u5b9a\u3067\u306f\u3001&nbsp;<code>gitlab-gitlab<\/code>&nbsp;\u3068\u306a\u308a\u307e\u3059\u3002 \u203b \u767a\u884c\u5143\u3068\u30aa\u30fc\u30c7\u30a3\u30a8\u30f3\u30b9\u306f\u3001\u6700\u5f8c\u306e&nbsp;<code>\/<\/code>&nbsp;\u306e\u6709\u7121\u306b\u6ce8\u610f\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-dominant-color=\"fafafb\" data-has-transparency=\"true\" style=\"--dominant-color: #fafafb;\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"729\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/004-gitlab-gcp-1024x729.png\" alt=\"\" class=\"wp-image-9352 has-transparency\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/004-gitlab-gcp-1024x729.png 1024w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/004-gitlab-gcp-300x213.png 300w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/004-gitlab-gcp-768x546.png 768w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/004-gitlab-gcp-1536x1093.png 1536w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/004-gitlab-gcp-2048x1457.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<h4 class=\"wp-block-heading\" id=\"4-\u5c5e\u6027\u30de\u30c3\u30d4\u30f3\u30b0\u8a2d\u5b9a\">(4) \u5c5e\u6027\u30de\u30c3\u30d4\u30f3\u30b0\u8a2d\u5b9a<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/gitlab-gcp.html#4-%E5%B1%9E%E6%80%A7%E3%83%9E%E3%83%83%E3%83%94%E3%83%B3%E3%82%B0%E8%A8%AD%E5%AE%9A\"><\/a><\/h4>\n\n\n\n<p>\u5c5e\u6027\u306e\u30de\u30c3\u30d4\u30f3\u30b0\u8a2d\u5b9a\u3057\u307e\u3059\u3002&nbsp;<code>google.subject<\/code>&nbsp;\u3068&nbsp;<code>assertion.sub<\/code>&nbsp;\u306e\u30de\u30c3\u30d4\u30f3\u30b0\u306f\u5fc5\u9808\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img data-dominant-color=\"fafafa\" data-has-transparency=\"true\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/005-gitlab-gcp-1024x727.png\" alt=\"\" class=\"wp-image-9353 has-transparency\" style=\"--dominant-color: #fafafa; width:840px;height:596px\" width=\"840\" height=\"596\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/005-gitlab-gcp-1024x727.png 1024w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/005-gitlab-gcp-300x213.png 300w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/005-gitlab-gcp-768x545.png 768w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/005-gitlab-gcp-1536x1090.png 1536w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/005-gitlab-gcp-2048x1453.png 2048w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/figure>\n<\/div>\n\n\n<p>\u305d\u306e\u4ed6\u306e\u9805\u76ee\u306f\u3001\u4efb\u610f\u3067\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5c5e\u6027\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001GitLab\u5074\u3067\u6a29\u9650\u3092\u5229\u7528\u3067\u304d\u308b\u6761\u4ef6\u3092\u8a2d\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002 \u7279\u306b\u3001gitlab.com \u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306a\u3069\u306f\u3001\u6761\u4ef6\u3092\u8ffd\u52a0\u3057\u306a\u3044\u3068gitlab.com \u5168\u4f53\u306b\u5bfe\u3057\u3066\u8a31\u53ef\u3092\u4e0e\u3048\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u6ce8\u610f\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001\u4e0a\u8a18\u3067\u8a2d\u5b9a\u3057\u305f\u3088\u3046\u306b\u3001&nbsp;<code>attribute.project_path<\/code>&nbsp;\u3068&nbsp;<code>assertion.project_path<\/code>&nbsp;\u3092\u30de\u30c3\u30d4\u30f3\u30b0\u3057\u3001&nbsp;\u6761\u4ef6CEL\u306b\u4ee5\u4e0b\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067GitLab\u5074\u306e\u7279\u5b9a\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u9650\u5b9a\u3057\u3066\u8a31\u53ef\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>attribute.project_path == \"mygroup\/myproject\"\n<\/code><\/pre>\n\n\n\n<p>\u203b mygroup\u306f\u3001\u3054\u5229\u7528\u306eGitLab\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30b0\u30eb\u30fc\u30d7\u3002myproject\u306f\u3001\u3054\u5229\u7528\u306eGitLab\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u6307\u5b9a\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n<p><code>assertion.user_email<\/code>&nbsp;\u3092\u5229\u7528\u3059\u308b\u3068\u3001GitLab CI\u3092\u5b9f\u884c\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u306b\u9650\u5b9a\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>GitLab\u5074\u3067\u5229\u7528\u3067\u304d\u308b\u9805\u76ee\u306f\u3053\u3061\u3089\u306b\u4e00\u89a7\u8a18\u8f09\u304c\u3042\u308a\u307e\u3059\u3002<br><a href=\"https:\/\/docs.gitlab.com\/ee\/ci\/secrets\/id_token_authentication.html#token-payload\">OpenID Connect (OIDC) Authentication Using ID Tokens &#8211; Token payload<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"5-\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u306a\u308a\u3059\u307e\u3057\u6a29\u9650\u8a2d\u5b9a\">(5) \u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u306a\u308a\u3059\u307e\u3057\u6a29\u9650\u8a2d\u5b9a<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/gitlab-gcp.html#5-%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9%E3%82%A2%E3%82%AB%E3%82%A6%E3%83%B3%E3%83%88%E3%81%AB%E3%81%AA%E3%82%8A%E3%81%99%E3%81%BE%E3%81%97%E6%A8%A9%E9%99%90%E8%A8%AD%E5%AE%9A\"><\/a><\/h4>\n\n\n\n<p>GitLab\u5074\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u304cGoogle Cloud\u306e\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u306a\u308a\u3059\u307e\u3059\u305f\u3081\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5bfe\u8c61\u306e\u6a29\u9650\u3092\u8a2d\u5b9a\u3057\u305f\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u7528\u610f\u3057\u3001\u4f5c\u6210\u3057\u305fWorkload Identity\u30d7\u30fc\u30eb\u306b\u63a5\u7d9a\u3059\u308b\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"google-cloud\u5074\u3067\u6a29\u9650\u3092\u8a2d\u5b9a\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\">Google Cloud\u5074\u3067\u6a29\u9650\u3092\u8a2d\u5b9a\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/gitlab-gcp.html#google-cloud%E5%81%B4%E3%81%A7%E6%A8%A9%E9%99%90%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%99%E3%82%8B%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9%E3%82%A2%E3%82%AB%E3%82%A6%E3%83%B3%E3%83%88%E3%82%92%E4%BD%9C%E6%88%90\"><\/a><\/h4>\n\n\n\n<p>Workload Identity Federation \u306f\u3001Google Cloud\u5074\u306e\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u6a29\u9650\u3092\u501f\u7528\u3059\u308b\u5f62\u3067\u52d5\u4f5c\u3057\u307e\u3059\u3002<br>\u9023\u643a\u5c02\u7528\u306e\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3066\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u3053\u3067\u306f\u3001\u4f5c\u6210\u3057\u305f\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u4ee5\u4e0b\u306e\u6a29\u9650\u3092\u4ed8\u4e0e\u3057\u3066\u3001Cloud Soruce Repository\u3078\u306e\u66f8\u304d\u8fbc\u307f\u6a29\u9650\u306e\u307f\u3092\u4ed8\u4e0e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f5c\u6210\u3057\u305f\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u3092Workload Identity\u30d7\u30fc\u30eb\u3068\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-dominant-color=\"fafafa\" data-has-transparency=\"false\" style=\"--dominant-color: #fafafa;\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"654\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/007-gitlab-gcp-1024x654.png\" alt=\"\" class=\"wp-image-9355 not-transparent\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/007-gitlab-gcp-1024x654.png 1024w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/007-gitlab-gcp-300x192.png 300w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/007-gitlab-gcp-768x491.png 768w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/007-gitlab-gcp-1536x981.png 1536w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/007-gitlab-gcp-2048x1308.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p>\u4f5c\u6210\u3057\u305f\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u9078\u629e\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u3061\u3089\u3067\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-dominant-color=\"f7f8f9\" data-has-transparency=\"false\" style=\"--dominant-color: #f7f8f9;\" loading=\"lazy\" decoding=\"async\" width=\"1001\" height=\"1024\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/008-gitlab-gcp-1001x1024.png\" alt=\"\" class=\"wp-image-9356 not-transparent\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/008-gitlab-gcp-1001x1024.png 1001w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/008-gitlab-gcp-293x300.png 293w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/008-gitlab-gcp-768x786.png 768w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/008-gitlab-gcp.png 1206w\" sizes=\"auto, (max-width: 1001px) 100vw, 1001px\" \/><\/figure>\n<\/div>\n\n\n<p>\u3053\u308c\u3067\u3001GitLab\u5074\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3068Google Cloud\u306e\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u63a5\u7d9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u969b\u306b\u5229\u7528\u3059\u308b\u969b\u306b\u306f\u3001\u63a5\u7d9a\u8981\u4ef6\u306b\u3088\u3063\u3066\u3001\u8ffd\u52a0\u306e\u6761\u4ef6\u8a2d\u5b9a\u7b49\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002 \u5229\u7528\u3059\u308b\u969b\u306b\u306f\u3001\u6ce8\u610f\u3057\u3066\u5229\u7528\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u5229\u7528\u65b9\u6cd5\">\u5229\u7528\u65b9\u6cd5<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/gitlab-gcp.html#%E5%88%A9%E7%94%A8%E6%96%B9%E6%B3%95\"><\/a><\/h2>\n\n\n\n<p>GitLab\u793e\u306b\u3066\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002&nbsp;<a href=\"https:\/\/gitlab.com\/guided-explorations\/gcp\/configure-openid-connect-in-gcp\">Configure OpenID Connect In Google Cloud<\/a><\/p>\n\n\n\n<p>\u3053\u3061\u3089\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u3001&nbsp;<code>.gitlab-ci.yml<\/code>&nbsp;\u306b\u3066 Workload Identity Federation \u3092\u4f7f\u7528\u3057\u305f\u8a8d\u8a3c\u65b9\u6cd5\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u3061\u3089\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u306f\u3001terraform \u3067\u306e\u8a2d\u5b9a\u306a\u3069\u3082\u5165\u3063\u3066\u304a\u308a\u3068\u3066\u3082\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"cloud-source-repositories\u3078push\u3059\u308bgitlab-ci\u306e\u8a2d\u5b9a\u30b5\u30f3\u30d7\u30eb\">Cloud Source Repositories\u3078push\u3059\u308bgitlab ci\u306e\u8a2d\u5b9a\u30b5\u30f3\u30d7\u30eb<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/gitlab-gcp.html#cloud-source-repositories%E3%81%B8push%E3%81%99%E3%82%8Bgitlab-ci%E3%81%AE%E8%A8%AD%E5%AE%9A%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB\"><\/a><\/h3>\n\n\n\n<p>GitLab\u793e\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066\u3001main\u30d6\u30e9\u30f3\u30c1\u306bpush\u307e\u305f\u306f\u3001\u30de\u30fc\u30b8\u3055\u308c\u305f\u969b\u306bCloud Source Repositories\u306bpush\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><code>.gitlab-ci.yml<\/code>&nbsp;\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8f09\u3092\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-plain\"><code>gcp-gitpush:\n  image: google\/cloud-sdk:slim\n  rules:\n    - if: &#39;$CI_COMMIT_BRANCH == &quot;main&quot;&#39;\n  script:\n    - export\n    - echo ${CI_JOB_JWT_V2} &gt; .ci_job_jwt_file\n    - gcloud iam workload-identity-pools create-cred-config ${GCP_WORKLOAD_IDENTITY_PROVIDER}\n      --service-account=&quot;${GCP_SERVICE_ACCOUNT}&quot;\n      --output-file=.gcp_temp_cred.json\n      --credential-source-file=.ci_job_jwt_file\n    - gcloud auth login --cred-file=`pwd`\/.gcp_temp_cred.json\n    - gcloud auth list\n    - git config --global credential.&#39;https:\/\/source.developers.google.com&#39;.helper gcloud.sh\n    - set +e\n    - git branch -d ${CI_COMMIT_REF_NAME}\n    - git checkout -b ${CI_COMMIT_REF_NAME}\n    - git remote rm google\n    - set -e\n    - git remote add google https:\/\/source.developers.google.com\/p\/fg-gcp-trial\/r\/gcp-trial\n    - git push -f google ${CI_COMMIT_REF_NAME}<\/code><\/pre><\/div>\n\n\n\n<p>${GCP_WORKLOAD_IDENTITY_PROVIDER} \u306e\u90e8\u5206\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5f62\u5f0f\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><code>projects\/000000000000\/locations\/global\/workloadIdentityPools\/gitlab\/providers\/gitlab-gitlab<\/code><br>\u203b 000000000000\u306f\u3001\u3054\u5229\u7528\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8ID\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p><code>${GCP_SERVICE_ACCOUNT}<\/code>\u306e\u90e8\u5206\u306f\u3001\u8a2d\u5b9a\u3057\u305f\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u5f62\u5f0f\u3067\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u300cCI\u300d\u3067\u59cb\u307e\u3063\u3066\u3044\u308b\u74b0\u5883\u5909\u6570\u306f\u3001GItlab\u5074\u3067\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u74b0\u5883\u5909\u6570\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u307e\u3068\u3081\">\u307e\u3068\u3081<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/gitlab-gcp.html#%E3%81%BE%E3%81%A8%E3%82%81\"><\/a><\/h2>\n\n\n\n<p>GitLab\u306a\u3069\u5916\u90e8\u306e\u30b5\u30fc\u30d3\u30b9\u3084\u30aa\u30f3\u30d7\u30ec\u30b5\u30fc\u30d0\u30fc\u306a\u3069\u304b\u3089Google Cloud\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306b\u306f\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u591a\u304b\u3063\u305f\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u306e\u5229\u7528\u306f\u6d41\u51fa\u3057\u305f\u969b\u306e\u5371\u967a\u6027\u3092\u8003\u616e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>Workload Identity Federation\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001Google Cloud\u5074\u3067\u6a29\u9650\u3092\u5236\u5fa1\u3057\u306a\u304c\u3089\u67d4\u8edf\u306b\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002\u305c\u3072\u5c0e\u5165\u3092\u3054\u691c\u8a0e\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"p-3 mb-4 bg-light rounded-3\">    <div class=\"container-fluid\">\n      <h4 class=\"display-6 fw-bold\"><span id=\"Google_workspace\">Google Cloud\u306e\u5c0e\u5165\u306f\u5f53\u793e\u306b\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044<\/span><\/h4>\n      <p class=\"col-md-12\">IT\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30bf\u30fc\u3067\u3042\u308bTD SYNNEX\u306fGoogle Cloud\u2122 Partner Award \u3092\u53d7\u8cde\u3059\u308b\u306a\u3069\u3001\u9577\u5e74\u306b\u308f\u305f\u308aGoogle\u2122\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u8a8d\u5b9a\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30bf\u30fc\u3068\u3057\u3066\u3001\u7dcf\u5408\u7684\u306a Google\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002\u304a\u5ba2\u69d8\u306b\u3068\u3063\u3066\u6700\u9069\u306a\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306e\u63d0\u6848\u3084\u5c0e\u5165\u3001\u6d3b\u7528\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n      <a href=\"https:\/\/www.synnex.co.jp\/vender\/google\/inquiry\/\"><button class=\"btn btn-primary btn-lg\" type=\"button\">\u304a\u554f\u3044\u5408\u308f\u305b<\/button><\/a>\n    <\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>GitLab\u3068Google Cloud\u3092\u9023\u643a\u3059\u308bWorkload Identity Federation\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 \u672c\u8a18\u4e8b\u3067\u306f\u3001Google Cloud \u3068 GitLab\u306e\u9023\u643a\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 G&#8230;<\/p>\n","protected":false},"author":3,"featured_media":9454,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[169],"tags":[189,188],"class_list":["post-9348","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google","tag-gitlab","tag-google-cloud"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>GitLab\u3068Google Cloud\u3092\u9023\u643a\u3059\u308bWorkload Identity Federation &#8211; TD SYNNEX BLOG<\/title>\n<meta name=\"description\" content=\"GitLab\u3068Google Cloud\u3092\u9023\u643a\u3059\u308bWorkload Identity Federation\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 \u672c\u8a18\u4e8b\u3067\u306f\u3001Google\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GitLab\u3068Google Cloud\u3092\u9023\u643a\u3059\u308bWorkload Identity Federation &#8211; TD SYNNEX BLOG\" \/>\n<meta property=\"og:description\" content=\"GitLab\u3068Google Cloud\u3092\u9023\u643a\u3059\u308bWorkload Identity Federation\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 \u672c\u8a18\u4e8b\u3067\u306f\u3001Google\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/\" \/>\n<meta property=\"og:site_name\" content=\"TD SYNNEX BLOG\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-29T04:44:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-06T03:56:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/git-jpg.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"640\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TD SYNNEX K.K.\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"TD SYNNEX K.K.\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"16\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/\",\"url\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/\",\"name\":\"GitLab\u3068Google Cloud\u3092\u9023\u643a\u3059\u308bWorkload Identity Federation &#8211; TD SYNNEX BLOG\",\"isPartOf\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/git-jpg.webp\",\"datePublished\":\"2023-08-29T04:44:30+00:00\",\"dateModified\":\"2023-09-06T03:56:39+00:00\",\"author\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/27a28c43d8bfc7e8087223b26535d233\"},\"description\":\"GitLab\u3068Google Cloud\u3092\u9023\u643a\u3059\u308bWorkload Identity Federation\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 \u672c\u8a18\u4e8b\u3067\u306f\u3001Google\",\"breadcrumb\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/#primaryimage\",\"url\":\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/git-jpg.webp\",\"contentUrl\":\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/git-jpg.webp\",\"width\":1280,\"height\":640},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/jp.tdsynnex.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Google\",\"item\":\"https:\/\/jp.tdsynnex.com\/blog\/category\/google\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"GitLab\u3068Google Cloud\u3092\u9023\u643a\u3059\u308bWorkload Identity Federation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#website\",\"url\":\"https:\/\/jp.tdsynnex.com\/blog\/\",\"name\":\"TD SYNNEX BLOG\",\"description\":\"IT\u5c02\u9580\u5546\u793e\u304c\u5c4a\u3051\u308b\u60c5\u5831\u30e1\u30c7\u30a3\u30a2\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jp.tdsynnex.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/27a28c43d8bfc7e8087223b26535d233\",\"name\":\"TD SYNNEX K.K.\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8c78c73b44737d0e9ea65e8b304502f5d063717571c4be4b0904e52c0d3c3229?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8c78c73b44737d0e9ea65e8b304502f5d063717571c4be4b0904e52c0d3c3229?s=96&d=mm&r=g\",\"caption\":\"TD SYNNEX K.K.\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GitLab\u3068Google Cloud\u3092\u9023\u643a\u3059\u308bWorkload Identity Federation &#8211; TD SYNNEX BLOG","description":"GitLab\u3068Google Cloud\u3092\u9023\u643a\u3059\u308bWorkload Identity Federation\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 \u672c\u8a18\u4e8b\u3067\u306f\u3001Google","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/","og_locale":"ja_JP","og_type":"article","og_title":"GitLab\u3068Google Cloud\u3092\u9023\u643a\u3059\u308bWorkload Identity Federation &#8211; TD SYNNEX BLOG","og_description":"GitLab\u3068Google Cloud\u3092\u9023\u643a\u3059\u308bWorkload Identity Federation\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 \u672c\u8a18\u4e8b\u3067\u306f\u3001Google","og_url":"https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/","og_site_name":"TD SYNNEX BLOG","article_published_time":"2023-08-29T04:44:30+00:00","article_modified_time":"2023-09-06T03:56:39+00:00","og_image":[{"width":1280,"height":640,"url":"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/git-jpg.webp","type":"image\/jpeg"}],"author":"TD SYNNEX K.K.","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"TD SYNNEX K.K.","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"16\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/","url":"https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/","name":"GitLab\u3068Google Cloud\u3092\u9023\u643a\u3059\u308bWorkload Identity Federation &#8211; TD SYNNEX BLOG","isPartOf":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/#primaryimage"},"image":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/#primaryimage"},"thumbnailUrl":"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/git-jpg.webp","datePublished":"2023-08-29T04:44:30+00:00","dateModified":"2023-09-06T03:56:39+00:00","author":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/27a28c43d8bfc7e8087223b26535d233"},"description":"GitLab\u3068Google Cloud\u3092\u9023\u643a\u3059\u308bWorkload Identity Federation\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 \u672c\u8a18\u4e8b\u3067\u306f\u3001Google","breadcrumb":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/#primaryimage","url":"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/git-jpg.webp","contentUrl":"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2023\/08\/git-jpg.webp","width":1280,"height":640},{"@type":"BreadcrumbList","@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gitlab-google-cloud-connection\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/jp.tdsynnex.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Google","item":"https:\/\/jp.tdsynnex.com\/blog\/category\/google\/"},{"@type":"ListItem","position":3,"name":"GitLab\u3068Google Cloud\u3092\u9023\u643a\u3059\u308bWorkload Identity Federation"}]},{"@type":"WebSite","@id":"https:\/\/jp.tdsynnex.com\/blog\/#website","url":"https:\/\/jp.tdsynnex.com\/blog\/","name":"TD SYNNEX BLOG","description":"IT\u5c02\u9580\u5546\u793e\u304c\u5c4a\u3051\u308b\u60c5\u5831\u30e1\u30c7\u30a3\u30a2","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jp.tdsynnex.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/27a28c43d8bfc7e8087223b26535d233","name":"TD SYNNEX K.K.","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8c78c73b44737d0e9ea65e8b304502f5d063717571c4be4b0904e52c0d3c3229?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8c78c73b44737d0e9ea65e8b304502f5d063717571c4be4b0904e52c0d3c3229?s=96&d=mm&r=g","caption":"TD SYNNEX K.K."}}]}},"_links":{"self":[{"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/posts\/9348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/comments?post=9348"}],"version-history":[{"count":7,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/posts\/9348\/revisions"}],"predecessor-version":[{"id":9521,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/posts\/9348\/revisions\/9521"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/media\/9454"}],"wp:attachment":[{"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/media?parent=9348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/categories?post=9348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/tags?post=9348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}