Run zz-ssl-ciphers when a child overlay carries the mark #7
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/buildtasks!7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/layer-ssl-ciphers-overlay"
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?
layer_child_confaddedturnkey.d/zz-ssl-ciphersto a child layer only whenone of the conf scripts the child runs mentioned
ZZ_SSL_CIPHERS, which ishow the apache conf reads it. nginx keeps the mark in an overlay file instead,
overlays/nginx/etc/nginx/snippets/ssl.conf, so a layer built on an nginxstack kept the literal string as its cipher list:
and nginx refused to start:
Measured tonight on a container assembled from the rebuilt nodebb layer: the
first boot hook that sets the forum up runs
nginx -tand fails there, so theappliance never serves. The layer built before this was only correct because
the build host was running a checkout that carried this change and had never
pushed it.
The scan moves into
layer_needs_ssl_ciphers, which checks the conf scriptsas before and then the overlays the child applies.
bt-layercomputesbuild_overlaysfirst and passes the overlays path and that list.Test plan:
tests/layer, two cases added: an overlay that carries the mark(
turnkey.d/hostname turnkey.d/zz-ssl-ciphers nginx) and one that doesnot (
turnkey.d/hostname nginx)tests/coverage.sh: bin/layer-lib 207 of 208, bt-layer 101 of 102,the other four measured files at 100; gate 99
appliance gate of keel-nodebb against the republished chain