Skip to content

feat(upgradoor): controller config file values, opt-in SSH login history - #623

Merged
pk910 merged 1 commit into
masterfrom
pk910/upgradoor-config-file
Nov 28, 2026
Merged

pk910 merged 1 commit into
masterfrom
pk910/upgradoor-config-file

Conversation

@pk910

@pk910 pk910 commented Nov 28, 2026

Copy link
Copy Markdown
Member

generate_kubernetes_config

  • The upgradoor values render one config: block for the new controller config file (chart 0.2.0, ethereum-helm-charts#534) instead of the removed chart values and --ui-* extraArgs: server/public URLs, network and beacon endpoints, validator ranges URL, signer public key, controller seed path, auth provider, pandamenu script/integrity/origin as ui.*, ui.pprof, registry auth path, store.auditRetention, store.sshLoginRetention, settingDefaults.
  • New defaults: gen_kubernetes_config_upgradoor_pprof: false, gen_kubernetes_config_upgradoor_audit_retention: "0s", gen_kubernetes_config_upgradoor_ssh_login_retention: "0s".
  • Chart dependency 0.1.0 → 0.2.0.

upgradoor_agent

  • Opt-in SSH login history: upgradoor_agent_ssh_logins: false, upgradoor_agent_ssh_login_users (default: the entry user), upgradoor_agent_ssh_login_backlog: 168h.
  • When on: the upgradoor user joins systemd-journal (also in the unit's SupplementaryGroups), upgradoor ssh-keymap runs as root every play to map authorized_keys fingerprints (# github:<user> blocks, key comments) to identities in /etc/upgradoor/ssh-keys.json, and agent.yaml gets the sshLogins block. When off, all of it is removed again.
  • Molecule verify covers on and off.

Needs the upgradoor release with the config file and SSH login support; rolled out together with ethereum-helm-charts#534.

@redpandabot redpandabot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renders the upgradoor controller values into the new chart-0.2.0 config file (matching ethereum-helm-charts#534's config/mount contract: server, network, agents.controllerSeedFile, auth.providerUrl, images.registryAuthFile, store.dataDir, settingDefaults) and adds an opt-in SSH login-history path to upgradoor_agent (journal group, ssh-keymap file, sshLogins in agent.yaml, unit SupplementaryGroups) with a matching teardown. The gating is symmetric (each on-step has an off-step, the cleanup list includes the key map, and the getent/gpasswd guard handles a missing entry and the [x, gid, members] fact shape), and the value nesting matches the chart's new defaults. I could not verify the not-yet-published upgradoor release's field/CLI names (ui.pprof, store.*Retention, ssh-keymap flags) since they are not in the public upgradoor repo, but the default path (ssh_logins: false) is unaffected by that gap.


Reviewed 9 changed file(s) @ 2c41518c — no blocking issues found.
"Worse is better." — Richard Gabriel

@pk910
pk910 merged commit edf34a6 into master Nov 28, 2026
6 checks passed
@pk910
pk910 deleted the pk910/upgradoor-config-file branch November 28, 2026 03:25
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