fix: apache2ctl configtest at first boot, not in the build #15
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Keel-Linux/keel-wordpress!15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/configtest-at-first-boot"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On common 19.x
conf.d/mainfailed atapache2ctl configtest:wordpress.conf(443 vhost) andmods-available/ssl.confname/etc/ssl/private/cert.pem, which common'sremovelists-finalnow takes out of every layer (keel-core#8). The parent layer arrives without it, so the check could only fail.firstboot.d/40wordpressrunsapache2ctl configtestafter 15regen-sslcert and before restarting Apache. A failure is fatal to 40wordpress, which then does not restart Apache; inithooks logs it and runs the next hook. Same place keel-nodebb runsnginx -t(its 40nodebb hook); keel-lamp runs configtest in its boot test.conf.d/maindrops the build time configtest and asserts it left nocert.pemorcert.key.bt_shared_keys_verdictreads the assembled rootfs before the first boot and fails on any certificate or private key from common's removelist (TLS pair, snakeoil, miniserv.pem, turnkey-ssl copies, SSH host keys), dangling symlinks included;bt_configtest_verdictreads the inithooks log for the passing configtest line.Required check expected to fail:
appliance / boot-published-layeris required by branch protection, and it boots the layer the mirror publishes, not this branch. That layer carries 8 private keys (cert.pem,cert.key,miniserv.pem, the turnkey-ssl pair, 3 SSH host keys) plus 3 SSH host.pubfiles, which the new verdict names. It clears only once a layer built from this fix is published, which is an attended release by the maintainer.Test plan
bats tests/all pass,COVERAGE_THRESHOLD=97 tests/coverage.shpassesView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.