portfolio-app: drop the stale Phase-2 enable_branch_bypass hints and check the plan after gh-plumbing #509/#510

Abierto Apto para principiantes
#23 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
68/100
Tipo de issue
Documentación
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
github, terraform

Línea de trabajo

Lee primero docs/en/portfolio-app.md:59, luego el bypass del ruleset (bypass_portfolio_app = true, actor_type = "Integration") en terraform/repos para ver a qué deben apuntar las pistas. Edita el comentario en terraform/portfolio-app/main.tf, la descripción de enable_branch_bypass en variables.tf y la línea comentada en terraform.example.tfvars; deja intacto el passthrough de la variable. Hecho significa que ninguna de las tres sugiere enable_branch_bypass = true, cada una nombra el bypass del ruleset, y un plan desde source scripts/portfolio-app-env.sh && terraform -chdir=terraform/portfolio-app init -upgrade && task tf:plan:portfolio-app queda registrado mostrando solo actualizaciones in-place de PORTFOLIO_APP_PRIVATE_KEY, sin replace ni destroy.

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

Descripción

docs project-config

terraform/portfolio-app consumes github.com/nolte/gh-plumbing//terraform/portfolio-app?ref=develop. Two module changes landed on gh-plumbing develop on 2026-11-21 and reach this root module at the next terraform init -upgrade. Three local hints also describe a bypass path that no longer works for this setup.

1. Stale "Phase 2" hints

These spots describe flipping enable_branch_bypass = true as the next step:

  • terraform/portfolio-app/main.tf: comment "Flip to Phase 2 once every consumer repo has the App installed …"
  • terraform/portfolio-app/variables.tf: description of enable_branch_bypass ("Phase 2 toggle. Flip to true …")
  • terraform/portfolio-app/terraform.example.tfvars: # enable_branch_bypass = true

That path is not available here:

  • In user mode (user = var.owner), the module refuses enable_branch_bypass = true at plan time since nolte/gh-plumbing#499. GitHub documents push restrictions only for organisation-owned repositories.
  • In organisation mode it additionally needs the new input app_node_id since nolte/gh-plumbing#510.
  • docs/en/portfolio-app.md:59 already says the module's bypass path is unused here, and that the App bypass lives in terraform/repos rulesets (bypass_portfolio_app = true, actor_type = "Integration").

Change: point the three hints at the ruleset bypass in terraform/repos instead of enable_branch_bypass. Keep the variable passthrough as it is.

2. Check the plan after gh-plumbing #509

nolte/gh-plumbing#509 replaced the deprecated plaintext_value with value on the secret resources and raised the module's provider floor to ~> 6.12.

  • The local lockfile already pins provider 6.12.1, so init should resolve without a version change.
  • In user mode only github_actions_secret is affected. The new github_actions_organization_secret_repositories resource is organisation-mode only.
  • Expected, not verified: one in-place update per consumer repository for PORTFOLIO_APP_PRIVATE_KEY, with no replace and no change to the variable.

Check: source scripts/portfolio-app-env.sh && terraform -chdir=terraform/portfolio-app init -upgrade && task tf:plan:portfolio-app. Confirm the plan shows only those in-place secret updates, then apply.

Optional

Since nolte/gh-plumbing#510, app_slug is optional and no longer read by the module. TF_VAR_app_slug in scripts/portfolio-app-env.sh and the app_slug passthrough can stay. They are harmless and could be removed later.

Acceptance

  • None of the three files suggests enable_branch_bypass = true as a next step. Each names the ruleset bypass in terraform/repos.
  • A plan after init -upgrade is recorded in the PR. It shows no replace and no destroy.
Lenguaje dominante
HCL
Estrellas
0
Forks
0
Merge medio
23 min
PR fusionados (30 d)
3

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 nolte/terraform-github-bootstrap

Todos los issues de nolte/terraform-github-bootstrap

Issues similares

Más issues de DevOps

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.