Skip to content

feat: seed cmd_and_ctrl bug-report PAT via cloud-init (TF_VAR wiring)#49

Open
krakenhavoc wants to merge 2 commits into
mainfrom
feat/cmdctrl-bugreport-secret
Open

feat: seed cmd_and_ctrl bug-report PAT via cloud-init (TF_VAR wiring)#49
krakenhavoc wants to merge 2 commits into
mainfrom
feat/cmdctrl-bugreport-secret

Conversation

@krakenhavoc

Copy link
Copy Markdown
Owner

New sensitive variable cmd_and_ctrl_github_token adds an optional CMDCTRL_GITHUB_TOKEN line to the game server's cloud-init env file, so a rebuilt VM boots with the in-app bug-report feature live (cmd_and_ctrl ADR 0017). Wired through the existing secret path: CMD_AND_CTRL_GITHUB_TOKEN environment secret (lab) -> lab-deploy -> terraform-ci TF_VAR, exactly like the admin/tunnel tokens. The steady-state host copy is synced by the cmd_and_ctrl repo's own CD from that repo's CMDCTRL_GITHUB_TOKEN Actions secret, which stays hand-managed: a Terraform github provider (and its credential) wasn't justified for one secret. Empty variable (default) is a verified no-op — rendered cloud-init is byte-identical to HEAD.

Hook-equivalents run out-of-band (sandbox couldn't exec the hl-venv interpreter): terraform fmt/validate/tflint clean, trivy config scan 0 findings, workflow YAML parses. CI pre-commit re-checks on the PR.

New sensitive variable cmd_and_ctrl_github_token adds an optional CMDCTRL_GITHUB_TOKEN line to the game server's cloud-init env file, so a rebuilt VM boots with the in-app bug-report feature live (cmd_and_ctrl ADR 0017). Wired through the existing secret path: CMD_AND_CTRL_GITHUB_TOKEN environment secret (lab) -> lab-deploy -> terraform-ci TF_VAR, exactly like the admin/tunnel tokens. The steady-state host copy is synced by the cmd_and_ctrl repo's own CD from that repo's CMDCTRL_GITHUB_TOKEN Actions secret, which stays hand-managed: a Terraform github provider (and its credential) wasn't justified for one secret. Empty variable (default) is a verified no-op — rendered cloud-init is byte-identical to HEAD.

Hook-equivalents run out-of-band (sandbox couldn't exec the hl-venv interpreter): terraform fmt/validate/tflint clean, trivy config scan 0 findings, workflow YAML parses. CI pre-commit re-checks on the PR.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Terraform Plan Summary (lab)

Action Count
➕ Create 2
🔁 Update 1
❌ Destroy 2

Workspace: lab | Path: terraform/deployments/lab

The disk was grown to 100G out-of-band; config had drifted at 50. bpg/proxmox only ever grows disks in-place, so aligning config to the actual size is non-destructive — the plan should show an in-place size update (or nothing after refresh).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Terraform Plan Summary (lab)

No changes. Infrastructure matches configuration.

Workspace: lab | Path: terraform/deployments/lab

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Terraform Plan Summary (shared)

Action Count
➕ Create 1
🔁 Update 0
❌ Destroy 1

Workspace: shared | Path: terraform/deployments/shared

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Terraform Plan Summary (frontends-dev)

Action Count
➕ Create 0
🔁 Update 1
❌ Destroy 0

Workspace: frontends-dev | Deployment: terraform/deployments/frontends

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Terraform Plan Summary (nfs-prd)

Action Count
➕ Create 0
🔁 Update 1
❌ Destroy 0

Workspace: nfs-prd | Path: terraform/deployments/nfs

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Terraform Plan Summary (nfs-dev)

Action Count
➕ Create 0
🔁 Update 1
❌ Destroy 0

Workspace: nfs-dev | Path: terraform/deployments/nfs

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Terraform Plan Summary (plex-dev)

Action Count
➕ Create 0
🔁 Update 1
❌ Destroy 0

Workspace: plex-dev | Path: terraform/deployments/plex

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Terraform Plan Summary (plex-prd)

Action Count
➕ Create 0
🔁 Update 1
❌ Destroy 0

Workspace: plex-prd | Path: terraform/deployments/plex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant