Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions parts/linux/cloud-init/artifacts/ci-syslog-watcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ status=$(cat /var/run/mdsd-ci/update.status)

if [ "$status" = "add" ]; then
echo "Status changed to $status."
# By design: the rsyslog config dropped here is not content-validated before being
# copied into /etc/rsyslog.d and loaded via `systemctl restart rsyslog` below. The
# trust boundary for this script is the /var/run/mdsd-ci directory itself, which is
# populated by the privileged Container Insights (mdsd/AMA) add-on via a hostPath
# mount - a component deployed and access-controlled outside this repo. Anything
# capable of writing into that directory already has node-level privilege equivalent
# to what this script could additionally restrict, so adding content validation here
# would not meaningfully reduce risk; the real control point is that add-on's
# hostPath/RBAC configuration, not this script.
Comment on lines +15 to +19
[ -f "/var/run/mdsd-ci/70-rsyslog-forward-mdsd-ci.conf" ] && cp /var/run/mdsd-ci/70-rsyslog-forward-mdsd-ci.conf /etc/rsyslog.d
elif [ "$status" = "remove" ]; then
echo "Status changed to $status."
Expand Down
Loading