PKG-1433: Bake PPG package-test snapshots on Hetzner (Rocky, Alma, OL) - #4323
Open
nogueiraanderson wants to merge 4 commits into
Open
PKG-1433: Bake PPG package-test snapshots on Hetzner (Rocky, Alma, OL)#4323nogueiraanderson wants to merge 4 commits into
nogueiraanderson wants to merge 4 commits into
Conversation
EvgeniyPatlan
requested changes
Aug 7, 2026
nogueiraanderson
force-pushed
the
PKG-1433-hetzner-image-factory
branch
2 times, most recently
from
August 7, 2026 13:45
331d12b to
abb4792
Compare
- ppg/packer-hetzner: packer-plugin-hcloud refresh + seed templates, 12-combo design (7 active x86 rows until OL8/10 seeds and CAX stock), label-selector lineage chaining requiring source=factory + smoke=passed - fresh-boot smoke via shared smoke-run.sh: sentinel pair gates candidate deletion to genuine provisioner failures, smoke=passed labeled pre-promote - promote.sh with fail-closed role/env guard, prune.sh keep-4 retention with a two-tier stale sweep, janitor with namespaced selectors and honest failure semantics - GHA workflows: tokenless PR check, bake matrix, weekly cron + self-prune, 6h-apply janitor cron with Slack alerts, environment-scoped token jobs, setup-hcloud composite action, prod-serialized concurrency - OL base bootstrap (rescue-mode qcow2 upload, auto raw+xz conversion, EL10-safe cloud-init check) - molecule consumer vars (delegated driver, fail-closed selector) and the ppg-hetzner-poc pilot job (param validation, scoped credentials, per-workspace pinned collections with the hcloud datacenter guard)
nogueiraanderson
force-pushed
the
PKG-1433-hetzner-image-factory
branch
from
August 7, 2026 13:46
abb4792 to
3ce1216
Compare
- smoke-run.sh: fail-closed identity guard (promote.sh pattern) before the boot and again before the candidate delete, so a wrong or relabeled snapshot ID is never booted or deleted - refresh/smoke templates: ssh_keys_labels on the packer temp keys; janitor sweeps the two new roles so keys from killed runs cannot leak forever - tests/: stubbed hcloud+packer suites for both behaviors, run by check.sh
- Bake, prune, and janitor jobs assume a master-pinned GitHub-OIDC AWS role and read the Hetzner token from the /ppg/hcloud-factory-token SSM parameter, so no Hetzner credential lives in GitHub and a branch-ref dispatch fails at AssumeRole - Role + parameter are Terraform in percona-cd-platform (iam-gha-ppg-hcloud-factory.tf) - README token section updated; comment trims
- Tool-setup actions run before authentication; AWS credentials and the Hetzner token never enter the job env (step outputs, wired explicitly into each consuming step) - Janitor Slack alert moves to a credential-free job fed by sweep outputs - Fetch step rejects the SSM placeholder, role sessions capped at 900s, checkouts set persist-credentials: false - Bake gate is an explicit event allowlist, mutable role-ARN override dropped
This was referenced Aug 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Feature
Why
Tickets