Skip to content

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

Closed

Description

@digitalresistor

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

Activity

  1. added
    Bug
    Security
    Priority - High
    Level of Effort - Low
    Scope - Module
    Scope - Blueprint
    on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugLevel of Effort - LowPriority - HighScope - BlueprintScope - ModuleSecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions