Commit Graph

137 Commits

Author SHA1 Message Date
Andrey Zvonov
86eb3d6425 Revive #42537
Co-authored-by: Enmk <V.Nemkov@gmail.com>

fix memory access
2024-11-19 09:53:27 +00:00
Nikita Mikhaylov
57fde54f10
Merge pull request #71250 from cwurm/missing_sources_grants
Add missing sources grants for Kafka, NATS and RabbitMQ
2024-11-01 15:08:19 +00:00
Sergei Trifonov
2760f283a1
Revert "Revert "SQL syntax for workload and resource management"" 2024-10-30 16:18:35 +01:00
Alexander Tokmakov
4a821e81a1
Revert "SQL syntax for workload and resource management" 2024-10-30 12:48:13 +01:00
Christoph Wurm
486f4512d1 Add missing sources grants for Kafka, NATS and RabbitMQ. 2024-10-30 10:53:54 +00:00
Sergei Trifonov
4316e9a8b6
Merge branch 'master' into sql-for-workload-management 2024-10-09 00:24:54 +02:00
pufit
a89b81852c
Merge branch 'master' into pufit/fix-implicit-grants 2024-10-08 09:45:02 +08:00
serxa
8ad2ab6ac5 Merge branch 'master' into sql-for-workload-management 2024-10-07 11:45:59 +00:00
Konstantin Bogdanov
67c1e89d90
Apply linter changes 2024-10-06 12:29:20 +02:00
Sergei Trifonov
d489419c1b
Merge branch 'master' into sql-for-workload-management 2024-10-05 15:53:43 +02:00
pufit
2a107e3429 Add WITH IMPLICIT, fix error with implicit grants 2024-10-02 23:20:33 -04:00
pufit
1cfa8f6546 Better message for ACCESS_DENIED error. 2024-09-27 17:22:47 -04:00
pufit
2b142ca0e5 Merge branch 'master' into pufit/radix-grants
# Conflicts:
#	src/Access/Common/AccessRightsElement.h
#	src/Parsers/Access/ASTGrantQuery.cpp
2024-09-25 12:24:37 -04:00
serxa
9076446617 add interpreters for CREATE WORKLOAD and RESOURCE queries 2024-09-01 18:11:42 +00:00
pufit
2cd45cc2e6 Tests fixes, more tests, review fixes 2024-07-19 19:19:26 -04:00
jsc0218
d084123a9e Merge remote-tracking branch 'origin/master' into ClearExceptionMsgTableEngineGrant 2024-07-03 14:53:55 +00:00
pufit
f55061ffab Merge branch 'master' into pufit/radix-grants
# Conflicts:
#	src/Access/ContextAccess.cpp
#	src/Access/ContextAccess.h
2024-07-03 00:00:42 -04:00
jsc0218
57818990f2 fix the test 2024-07-02 20:41:08 +00:00
jsc0218
c998ec1e4f add test and better naming 2024-06-29 02:40:22 +00:00
jsc0218
a2ee0668f1 fix 2024-06-19 02:20:22 +00:00
jsc0218
f7e81e1ae2 fix 2024-06-18 21:59:07 +00:00
jsc0218
e348186ba2 clear hint in table engine and sources 2024-06-18 21:30:37 +00:00
Alex Katsman
ca0da7a481 Add query privileges information to the query log.
Introduced two additional columns in the system.query_log:
used_privileges and missing_privileges. Used_privileges is populated
with the privileges that were checked during query execution, and
missing_privileges contains required privileges that are missing.
2024-06-18 15:39:21 +00:00
pufit
0fb239cd7f Wildcard grants 2024-06-14 19:11:24 -04:00
Alexander Gololobov
2056ed8ee8 Capture weak_ptr for safety 2024-06-10 13:54:46 +02:00
Alexey Milovidov
c53c8eb6d1 Fix slow suggest 2024-05-07 01:36:20 +02:00
jsc0218
80fa1ab89a fix 2024-04-17 00:31:15 +00:00
jsc0218
02eca8b0be avoid grant twice for source access types and table engines 2024-04-03 02:35:49 +00:00
jsc0218
afa7a95c8c add backward compatibility 2024-02-20 02:11:31 +00:00
Maksim Kita
2a327107b6 Updated implementation 2024-01-25 14:31:49 +03:00
Bharat Nallan Chakravarthy
3e8439a78b add to context access and suggest 2023-12-30 20:38:35 -08:00
Robert Schulze
71faa8b198
Improve checks 2023-10-19 22:16:17 +00:00
Robert Schulze
48cff2fcec
Add diagnostic checks for issue 55041 2023-10-19 18:04:49 +00:00
Alexey Milovidov
93a10980e9 Fix review comments 2023-08-06 16:27:45 +02:00
Alexey Milovidov
ce2fcc8f33 Fix wording 2023-08-06 14:48:20 +02:00
Alexey Gerasimchuck
e58b3cfd32 Implemented max sessions for user 2023-07-30 22:09:03 +00:00
Vitaly Baranov
fff1ae7369 Use default destructor for ContextAccess. 2023-07-17 17:14:00 +02:00
Vitaly Baranov
0e4b75a282 Avoid keeping lock Context::getLock() while calculating access rights when a user logs in. 2023-07-17 14:59:14 +02:00
Vitaly Baranov
018546a57d Avoid keeping lock Context::getLock() while recalculating access rights of a connected user. 2023-07-17 14:59:14 +02:00
Vitaly Baranov
2311dd9b5d Use TSA_GUARDED_BY() macro in the definition of ContextAccess. 2023-06-30 15:18:54 +02:00
Alexey Milovidov
b19b87a3e5 Whitespaces 2023-06-18 20:42:27 +02:00
kssenii
75624c52f7 Merge remote-tracking branch 'upstream/master' into named-collections-granular-access 2023-03-20 16:38:14 +01:00
Roman Vasin
b5bb2eb3dc Add new grant CREATE ARBITRARY TEMPORARY TABLE 2023-03-06 07:20:05 +00:00
kssenii
0555ca2724 Review fixes 2023-02-24 14:44:47 +01:00
kssenii
0c53f33e6f Make code more common: add GlobalWithParameter level 2023-02-15 16:59:43 +01:00
kssenii
9e04e57949 Allow to give access only to certain named collections 2023-02-09 17:22:57 +01:00
Alexander Tokmakov
3744fa2c63 format more messages 2023-01-25 21:16:42 +01:00
Alexander Tokmakov
3f6594f4c6 forbid old ctor of Exception 2023-01-23 22:18:05 +01:00
Alexander Tokmakov
70d1adfe4b
Better formatting for exception messages (#45449)
* save format string for NetException

* format exceptions

* format exceptions 2

* format exceptions 3

* format exceptions 4

* format exceptions 5

* format exceptions 6

* fix

* format exceptions 7

* format exceptions 8

* Update MergeTreeIndexGin.cpp

* Update AggregateFunctionMap.cpp

* Update AggregateFunctionMap.cpp

* fix
2023-01-24 00:13:58 +03:00
Vitaly Baranov
6bc8b544ce
Merge branch 'master' into correct-error-message-after-dropping-current-user 2022-11-10 13:36:52 +01:00