Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Cerrado Apto para principiantes
#313 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@digitalresistor ya está trabajando en esto.

Desde el 20/10/2026.

  • #311 de @digitalresistor — abierto
  • #339 de @huong8373tt-beep — fusionado

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
82/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
gcp, terraform
Área
cloud

Línea de trabajo

Compara el argumento de conectividad en blueprints/third-party-solutions/gitlab/services.tf con el tipo de network_config en modules/cloudsql-instance/variables.tf. Cambia la llamada para que use el atributo declarado psa_config. Luego ejecuta terraform plan para el blueprint de GitLab y confirma que la instancia de base de datos recibe la configuración de red privada.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
HCL
Estrellas
55
Forks
21
Merge medio
1 d 16 h
PR fusionados (30 d)
59

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de google/stellar-engine

Todos los issues de google/stellar-engine

Issues similares

Más issues de Cloud

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.