We are delighted to announce the availability of Chef Infra Client 19.4.46.
Improvements
- Removed the experimental tag and warning message when running Chef Infra Client in Agentless Mode.
(#16088) - Deferred loading
stringioinchef-utilsuntil transport connections are opened in Agentless Mode, reducing gem load time by ~43% across all standard executions.
(#16335) - The
chef_client_configresource now accepts two new properties:directory_specslets you configure permissions (owner, group, mode, and Windows rights and inherits) for each Chef-managed directory (:config,:client_d,:logs,:cache, and:backups), andclient_rb_modelets you set the file mode of the generatedclient.rbfile (defaults to"0640").
(#16019) - The
apt_repositoryresource now supports anignore_failureproperty on the internalapt_updateresource execution, allowing you to treat repository update failures as blocking when adding repositories.
(#16262) - Added relative directory caching to
CookbookManifest#parse_file_from_root_pathsto accelerate manifest generation during cookbook synchronization.
(#16207) - The
chef_client_hab_ca_certresource now automatically accepts the Habitat license when discovering certificate package paths, preventing execution failures on newly provisioned nodes, and now supports Habitat installations in non-standard locations such as macOS's/opt/habdirectory.
(#16312) - Template error messages now include the cookbook name and template filename, and are truncated to 10,000 characters to prevent exposing large node attribute data in logs.
(#16073) - Sensitive properties---passwords, auth tokens, and private key passphrases---are now correctly masked in logs and run reports across 20 Chef Infra resources, including
chocolatey_installer,chocolatey_package,habitat_package,habitat_sup,openssl_ec_private_key, andopenssl_rsa_private_key.
(#16107) - Lowered the "No key detected" log message from standard output (
puts) toChef::Log.debug, reducing unnecessary console noise.
(#16222) - Added Target Mode support to the Solaris
mountprovider, including converting its file I/O toTargetIO::Fileso it correctly operates against the remote target instead of the local host.
(#16383)
Bug fixes
- Updated the
sysctlresource to usesysctl --systeminstead ofsysctl -pfor applying kernel settings, preventing failures on Debian 13 and other distributions where/etc/sysctl.confis no longer present by default.
(#16304) - Fixed idempotency in the
sysctlresource so that it no longer reports a spurious change when the kernel parameter is already at the correct value.
(#16035) - Fixed
restore_security_contextso it only passes-R(recursive) torestoreconwhen recursive restoration is requested, preventing failures on NFS-mounted files where recursive restore operations are unsupported.
(#16302) - Restored standard Windows system directories (
System32,Windows,System32\Wbem) in the Habitat runtime environment and setenforce_default_pathsto default totrueon Windows so resources such aspowershell_scriptandexecutelocate system binaries correctly.
(#16310) - Fixed the
umaskproperty inChef::Resourceto accept Integer values without raising aNoMethodErrororTypeError.
(#16260) - Fixed a multi-threaded race condition in Windows certificate authentication during concurrent cookbook synchronization by generating unique temporary filenames with
GetRandomFileName()and ensuring guaranteed cleanup.
(#16091) - Corrected
Chef::ReservedNames::Win32::Security.set_security_descriptor_daclto be a class method, fixingNoMethodErrorexceptions when setting security descriptor DACLs on Windows.
(#16290) - Initialized
@http_output_locations_clientsin the Data Collector handler, resolvingNoMethodErrorexceptions when reporting to HTTP URL destinations configured withdata_collector.output_locations[:urls].
(#16289) - Fixed a bug in the
chocolatey_installerresource where the installer was always downloaded from Chocolatey's default URL, ignoring a custom URL option. The resource now constructs a full file path forInvoke-WebRequest -OutFile, which PowerShell 5.1 requires.
(#16036) - Fixed
chef_client_*resources to correctly converge in non-Habitat builds.
(#16089) - Fixed an issue in Agentless Mode where
Dir.tmpdirresolved the local host's temp directory instead of the remote target's temp directory.
(#16354) - Fixed an issue where
homebrew_tapfailed after Homebrew enforced Tap Trust, because the tap wasn't trusted before it was added. The resource now trusts the tap first.
(#16367) - Fixed the
dsclgroup provider so it no longer mutatesnew_resource.gidas a side effect of managing group membership on macOS.
(#16326) - Fixed
homebrew_packageso it respects thetimeoutproperty instead of ignoring it.
(#16328) - Fixed an undefined method error (
mode_to_s) inTargetIO::TrainCompat::FileUtils.chmod_Rthat occurred during Agentless Mode runs.
(#16355) - Fixed
windows_update_settingsso it no longer writes WSUS registry values that weren't explicitly set.
(#16331)
Security
- Updated the
jsongem to 2.21.2 to fix a heap-use-after-free vulnerability inJSON::ResumableParser(CVE-2026-71847).
(#16349) - Fixed a path traversal vulnerability in the
archive_fileresource. Extraction now rejects archive entries containing..sequences, absolute paths, and unsafe symlinks.
(#16095) - Updated
mixlib-archiveto 1.3.6. This fixes a path traversal vulnerability inmixlib-archive's pure-Ruby Tar extraction backend, where a GNU@LongLinklong-name entry could bypass path traversal checks and write files outside the extraction destination.
(#16381) - Constrained
concurrent-rubyto>= 1.3.7to prevent loading versions with known vulnerabilities.
(#16216) - Configured
OPENSSL_CONFat runtime on Linux to point to Habitat's OpenSSL configuration with the activated FIPS provider, ensuring FIPS-approved digest operations like SHA256 and SHA512 function properly when FIPS mode is enabled.
(#16221) - Updated
faradayto 2.14.3 to address GHSA-98m9-hrrm-r99r and GHSA-5rv5-xj5j-3484.
(#16132) - Fixed an issue where sensitive properties could leak their values in logs and run reports when resource validation failed.
(#16300) - Updated
rubyzipfrom 2.4.1 to 3.7.0 andchef-winrm-fsfrom 1.4.2 to 1.4.4 to remove a transitive dependency on a vulnerable version ofrubyzip.
(#16402)
Compliance Phase
- Updated InSpec,
inspec-core, andinspec-core-binto 7.2.1.
(#16345)
Packaging
- Added Habitat build plans and packaging for macOS ARM (
aarch64-darwin). Chef Infra Client Habitat packages are now released natively for Apple Silicon.
(#16115) - Certified the Effortless packaging pattern for Chef Infra Client 19 on Linux x86_64, Linux ARM, and Windows x86_64 by updating
scaffolding-chef-infrato usecore/ruby3_4and resolve packages from thebase-2025channel.
(chef/effortless#307)
Dependency updates
- Updated Ruby to 3.4.10 and OpenSSL to 3.5.8.
(#16242) - Updated
aws-sdk-s3from 1.222.0 to 1.227.0.
(#16028, #16113, #16189) - Updated
aws-sdk-secretsmanagerfrom 1.130.0 to 1.133.0.
(#16026, #16079) - Updated
chef-vaultfrom 4.2.9 to 4.2.12.
(#16127) - Updated
faradayfrom 2.14.1 to 2.14.3.
(#16132) - Updated
mixlib-archivefrom 1.3.3 to 1.3.6.
(#16381) - Updated
rubyzipfrom 2.4.1 to 3.7.0 andchef-winrm-fsfrom 1.4.2 to 1.4.4.
(#16402) - Excluded the broken
ffi-yajl3.0.0 release (allocator issue on Ruby 3.2+) while allowing other 2.x and 3.x releases up to 4.0 (>= 2.2, != 3.0.0, < 4.0).
(#16152, #16240) - Updated Ohai from 19.1.31 to 19.1.40.
(#16023, #16117, #16128, #16140) - Updated
webmockfrom 3.26.2 to 3.26.3.
(#16313)
Bundled components
This release uses:
- Ruby version: 3.4.10
- OpenSSL version: 3.5.8
- Ohai version: 19.1.40
- Chef InSpec version: 7.2.1