27 Commits
Author SHA1 Message Date
Antonio AndelicandClaude Opus 5.5 52e14f769c Document that show_named_collections_secrets also controls overrides
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 14:17:05 +00:00
Alexey MilovidovandClaude Opus 5 b40982f941 Document show_named_collections_secrets in the default configs
The `default` user in the `users.xml` file that ships with ClickHouse has
`access_management` and `named_collection_control` enabled, but not
`show_named_collections_secrets`, so it does not have the complete set of
privileges. A user can only grant the privileges that they have themselves,
so `GRANT ALL ON *.* TO clickhouse_admin WITH GRANT OPTION` - the query the
documentation tells you to run when bootstrapping a SQL administrator - is
rejected with:

    Not enough privileges. To execute this query, it's necessary to have the
    grant ALL ON *.* WITH GRANT OPTION.
    (Missing permissions: SHOW NAMED COLLECTIONS SECRETS ON *)

Add `show_named_collections_secrets` commented out next to the other two
settings in `programs/server/users.xml` and `programs/server/embedded.xml`,
explaining both why it is disabled and what it costs, so that the setting is
discoverable where people look for it. The behaviour is unchanged: reading
back the credentials that are already stored in named collections stays a
separate privilege from managing the collections.

Also fix the documentation, which asks for a `show_named_collections`
setting that `UsersConfigParser` does not read - it was folded into
`NAMED COLLECTION ADMIN` - and which claimed that SQL-driven access control
is disabled by default for every user, and add reference sections for
`named_collection_control` and `show_named_collections_secrets`.

Closes: https://github.com/ClickHouse/ClickHouse/issues/47092

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-05 17:58:29 +00:00
Alexey MilovidovandClaude Fable 5 219320efce Address review: update docs about the empty user name and prometheus handlers
The comments in `users.xml`, `users.yaml.example` and the user settings doc said
that an omitted user name always falls back to `default`, which is now governed by
the `default_session_user` server setting. The composable protocols doc implied that
`default_session_user` applies to all `prometheus` handlers, while the metrics
exposition endpoints (including Keeper metrics-only endpoints) never authenticate
and ignore the setting.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 15:42:52 +00:00
vdimir 312fa82006 Merge branch 'master' into vdimir/totp 2026-01-29 13:29:20 +00:00
vdimir c42eb803e6 totp as second factor 2026-01-27 16:49:38 +00:00
vdimirandDenis Kamenskii d618c7cf1d Support TOTP for authentification
Co-authored-by: Denis Kamenskii <dekamenskii@mail.ru>
2026-01-22 09:58:04 +00:00
Arsen Muk 4c5de7fe31 Added context for background operations, +tests 2026-01-20 19:06:06 +00:00
Azat Khuzhin bafa45a7b1 Fix applying async_insert from server (via apply_settings_from_server)
The problem is that async_insert is checked during parsing, to know what
to send to the server, even before server settings available. And this
leads to "Unknown packet 11 from server" errors.

So, first approach will be to simply ignore async_insert for
apply_settings_from_server, but this setting is interesting to apply
from the server (since this may have performance impact).

Another is to detect what part of the query we should after server
settings had been received, this patch follows this approach.
2025-04-10 16:37:26 +02:00
Alexey Milovidov 356ae52e9b Enable access and named collections control by default 2023-11-11 08:46:10 +01:00
Oleg V. Kozlyuk e341d8cea3 Add example to users.xml 2023-11-08 03:01:42 +03:00
Alexey Milovidov 5802c2fdd2 Merge pull request #40713 from ClickHouse/remove-useless-line
Remove one line from XML, because we do not care
2022-09-11 09:53:30 +03:00
Alexey Milovidov 51dc796275 Remove trash 2022-09-06 02:04:57 +02:00
Alexey Milovidov b7bdd38e41 Revert "Remove trash"
This reverts commit 494dfff73c.
2022-09-06 02:04:36 +02:00
Alexey Milovidov 494dfff73c Remove trash 2022-09-06 02:04:18 +02:00
Alexey Milovidov b42d26acfe Remove one line from XML, because we do not care 2022-08-28 02:44:02 +02:00
mergify[bot] bc882ded42 Merge branch 'master' into enable-memory-overcommit 2022-04-05 14:46:18 +00:00
Dmitry Novik b4fed414e3 Enable memory overcommit 2022-04-04 14:28:05 +00:00
Alexey Milovidov 17107cb1dc Update examples and remove obsolete embedded dictionaries from configs 2022-04-03 01:21:48 +02:00
Alexey Milovidov e513a5db32 Change <yandex> to <clickhouse> in configs 2021-09-20 01:38:53 +03:00
Alexey Milovidov 91faa6d03a Add more comments to users.xml #27750 2021-08-17 05:01:03 +03:00
Denis Glazachev 290a6d273e Add Kerberos support for authenticating existing users when accessing over HTTP 2021-03-11 23:41:10 +03:00
Alexey Milovidov 4d650a2a56 Adjust config 2021-02-11 16:41:21 +03:00
Alexey Milovidov 063360511a Remove obsolete "incl" from /etc/metrika.xml; correct links in config 2021-01-04 21:01:17 +03:00
Denis Glazachev 848330b37a Expect <ldap_servers> in main config.xml 2020-06-11 02:48:15 +04:00
Denis Glazachev d74f1357d4 Add LDAP authentication support 2020-05-28 01:06:33 +04:00
Vitaly Baranov b71ff6160a Add the "access_management" option to users.xml which enables a user to manage access rights.
The option is turned off by default.
2020-04-07 23:31:54 +03:00
Ivan 97f2a2213e Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00