Repository navigation
feat(upgradoor): controller config file values, opt-in SSH login history - #623
Conversation
There was a problem hiding this comment.
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
generate_kubernetes_config
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 asui.*,ui.pprof, registry auth path,store.auditRetention,store.sshLoginRetention,settingDefaults.gen_kubernetes_config_upgradoor_pprof: false,gen_kubernetes_config_upgradoor_audit_retention: "0s",gen_kubernetes_config_upgradoor_ssh_login_retention: "0s".upgradoor_agent
upgradoor_agent_ssh_logins: false,upgradoor_agent_ssh_login_users(default: the entry user),upgradoor_agent_ssh_login_backlog: 168h.upgradooruser joinssystemd-journal(also in the unit'sSupplementaryGroups),upgradoor ssh-keymapruns 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 thesshLoginsblock. When off, all of it is removed again.Needs the upgradoor release with the config file and SSH login support; rolled out together with ethereum-helm-charts#534.