v.23.8Improvement
Allow Restriction of Allowed Paths for Filesystem Caches
Allow to restrict allowed paths for filesystem caches. Mainly useful for dynamic disks. If in server configfilesystem_caches_pathis specified, all filesystem caches' paths will be restricted to this directory. E.g. if thepathin cache config is relative - it will be put infilesystem_caches_path; ifpathin cache config is absolute, it will be required to lie insidefilesystem_caches_path. Iffilesystem_caches_pathis not specified in config, then behaviour will be the same as in earlier versions. #53124 (Kseniia Sumarokova).
Why it matters
This feature improves security and manageability for dynamic disks by ensuring all filesystem cache paths are confined within a specified directory. It prevents unauthorized or accidental use of paths outside the designated cache area, providing better control over cache storage locations.How to use it
To enable this restriction, set thefilesystem_caches_path parameter in the ClickHouse server configuration file. Relative path values in cache configurations will be placed inside this directory, while absolute path values must lie within it. If filesystem_caches_path is not set, cache paths behave as in previous versions without restrictions.