Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Bug] third-party-solutions/gitlab: the Cloud SQL database gets no private network, because psa_configs is not a cloudsql-instance attribute

クローズ 初心者向け
#313 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@digitalresistor がすでに取り組んでいます。

2026年10月20日 から。

  • #311 @digitalresistor による — オープン
  • #339 @huong8373tt-beep による — マージ済み

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
gcp, terraform
領域
cloud

調査の方向性

blueprints/third-party-solutions/gitlab/services.tf の接続引数と、modules/cloudsql-instance/variables.tf の network_config の型を比較します。呼び出し元を変更して、宣言済みの psa_config 属性を使用するようにします。その後、GitLab blueprint に対して terraform plan を実行し、データベースインスタンスがプライベートネットワーク構成を受け取ることを確認します。

索引モデルが issue の本文から書いたものです。

説明

Bug Level of Effort - Low Priority - High Scope - Blueprint Scope - Module Security

Bug Description

The blueprints/third-party-solutions/gitlab/services.tf file passes network_config.connectivity.psa_configs, a list, to the modules/cloudsql-instance module. The module declares psa_config, a single object, so Terraform silently discards the list and the GitLab database has no private services access connection.

Environment and Deployment Context

  • Stellar Engine Version/Commit: main at commit 2b112119e
  • Deployment Type:
    • US Region Restricted (e.g., Access Policy constraint)
    • FedRAMP Moderate
    • FedRAMP High
    • DoD IL4
    • DoD IL5
    • Stand-alone / Custom
  • FAST Stage (if applicable):
    • Stage 0 (Bootstrap)
    • Stage 1 (Resource Management)
    • Stage 2 (Network Creation)
    • Stage 3 (Security and Audit)
  • Affected Component: blueprints/third-party-solutions/gitlab, modules/cloudsql-instance
  • Terraform Version: any; static analysis of the configuration
  • GCP Provider Version: any

Steps to Reproduce

  1. Read blueprints/third-party-solutions/gitlab/services.tf, lines 37 to 43.
  2. Compare the network_config.connectivity type in modules/cloudsql-instance/variables.tf, which declares psa_config but no psa_configs.
  3. Run terraform plan for the blueprint and inspect google_sql_database_instance settings.ip_configuration.private_network.

Expected Behavior

The instance attaches to var.network_config.network_self_link through private services access, so GitLab reaches the database over the VPC.

Actual Behavior

The private network attribute stays unset. With public_ipv4 at its default of false, the instance has no IP address configuration, so the apply fails or GitLab cannot reach the database.

Relevant Logs and Errors

No error appears, because Terraform discards object attributes that a variable type does not declare.

Additional Context

  • Replace psa_configs = [{ private_network = ... }] with psa_config = { private_network = ... }.
  • The upstream sync in #311 keeps the same attribute name, so the fix applies before and after it.
  • Found while migrating module callers in #311.
主要言語
HCL
スター
58
フォーク
25
平均マージ
1日 17時間
マージ済み PR(30日)
60

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

google/stellar-engine のほかの issue

google/stellar-engine の issue をすべて見る

似ている issue

Cloud の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。