From df4f1236de55b67c1376043f94d63de202a4a9df Mon Sep 17 00:00:00 2001 From: Greg Karekinian Date: Mon, 13 Jul 2026 16:57:24 +0200 Subject: [PATCH] Clean up white list attributes in client.rb Both old and new styles. We define our allow list in the client.d file --- site-cookbooks/kosmos-base/recipes/default.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site-cookbooks/kosmos-base/recipes/default.rb b/site-cookbooks/kosmos-base/recipes/default.rb index 089c527..9acdbe8 100644 --- a/site-cookbooks/kosmos-base/recipes/default.rb +++ b/site-cookbooks/kosmos-base/recipes/default.rb @@ -6,8 +6,9 @@ ruby_block "cleanup client.rb" do block do fe = Chef::Util::FileEdit.new("/etc/chef/client.rb") - # Delete old attributes, replaced by allow_*_attributes + # Delete whitelist attribute definitions, everything is defined in attributes.rb fe.search_file_delete_line(/^.*_attribute_whitelist.*/) + fe.search_file_delete_line(/^allowed_.*_attributes.*/) fe.write_file end end