Manage the RSKj node config so upgrades can't mis-network nodes #715

Merged
raucao merged 1 commits from fix/rsk-manage-node-config into master 2026-11-30 06:00:10 +00:00
1 Commits
Author SHA1 Message Date
raucao 1dcc1c538c Manage the RSKj node config so upgrades can't mis-network nodes
The rskj package owns /etc/rsk/node.conf: its postinst re-asks the
`shared/config` debconf question on every configure and re-points node.conf at
the selected network's shipped config. That debconf state is not reliably
preserved across upgrades. After the plain 9.0.1 -> 9.0.5 upgrade, the question
fell back to the template default ("mainnet"), the service was restarted, and
rsk-testnet-6 started syncing the mainnet chain from genesis into a fresh
database while its real testnet data sat idle.

Stop relying on debconf: template our own node config (with the RPC bind/CORS
settings the openresty proxies need) and manage the node.conf symlink from Chef,
after the package has been configured. The restart then happens with the correct
config, and a package upgrade can no longer flip the network.

Bump the cookbook to 0.6.1 and extend the InSpec test to assert the managed
config and the symlink target.
2026-11-30 09:56:33 +04:00