v.23.5New Feature
Add Server Settings for Displaying Secrets and User Privilege Control
Add server and format settingsdisplay_secrets_in_show_and_selectfor displaying secrets of tables, databases, table functions, and dictionaries. Add privilegedisplaySecretsInShowAndSelectcontrolling which users can view secrets. #46528 (Mike Kot).
Why it matters
This feature addresses the need to securely manage and selectively display secret information in metadata queries (SHOW and SELECT) for various database objects. It enhances security by allowing administrators to restrict or grant visibility of sensitive data to authorized users only.How to use it
To enable secret visibility, set the server or format settingdisplay_secrets_in_show_and_select to true. Assign the displaySecretsInShowAndSelect privilege to users who should have access to view secrets. For example, to grant the privilege use:GRANT displaySecretsInShowAndSelect TO <user>;and configure settings in the client or server configuration accordingly.