Skip to content

Order legacy apt key removal after new keyring and source - #85

Merged
bernd merged 3 commits into
mainfrom
fix-apt-keyring-ordering
Dec 3, 2026
Merged

bernd merged 3 commits into
mainfrom
fix-apt-keyring-ordering

Conversation

@bernd

@bernd bernd commented Dec 3, 2026

Copy link
Copy Markdown
Member

Only remove /etc/apt/trusted.gpg.d/graylog-keyring.gpg once the new keyring and the signed-by source are in place. Otherwise, a failed run on an upgraded host could leave the Graylog repo without any key.

Fix the server.conf spec, which compared regexes against the redacted Sensitive value, by wrapping the expectations in sensitive().

bernd added 3 commits December 3, 2026 17:31
Only remove /etc/apt/trusted.gpg.d/graylog-keyring.gpg once the new
keyring and the signed-by source are in place. Otherwise a failed run
on an upgraded host could leave the Graylog repo without any key.

Fix the server.conf spec, which compared regexes against the redacted
Sensitive value, by wrapping the expectations in sensitive().
The unit specs were not run in CI, so a broken server.conf spec went
unnoticed. Run pdk test unit next to pdk validate on every push.
@bernd
bernd force-pushed the fix-apt-keyring-ordering branch from 45907cc to d416172 Compare December 3, 2026 16:44
@bernd
bernd merged commit 2ed932e into main Dec 3, 2026
3 checks passed
@bernd
bernd deleted the fix-apt-keyring-ordering branch December 3, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant