ClickHouse/src/Storages
Azat Khuzhin 0159c74f21 Secure inter-cluster query execution (with initial_user as current query user) [v3]
Add inter-server cluster secret, it is used for Distributed queries
inside cluster, you can configure in the configuration file:

  <remote_servers>
      <logs>
          <shard>
              <secret>foobar</secret> <!-- empty -- works as before -->
              ...
          </shard>
      </logs>
  </remote_servers>

And this will allow clickhouse to make sure that the query was not
faked, and was issued from the node that knows the secret. And since
trust appeared it can use initial_user for query execution, this will
apply correct *_for_user (since with inter-server secret enabled, the
query will be executed from the same user on the shards as on initator,
unlike "default" user w/o it).

v2: Change user to the initial_user for Distributed queries if secret match
v3: Add Protocol::Cluster package
v4: Drop Protocol::Cluster and use plain Protocol::Hello + user marker
v5: Do not use user from Hello for cluster-secure (superfluous)
2020-09-15 01:36:28 +03:00
..
Distributed Secure inter-cluster query execution (with initial_user as current query user) [v3] 2020-09-15 01:36:28 +03:00
Kafka Fix code style, and update docs for Kafka engine 2020-09-06 11:17:19 +08:00
LiveView Merge pull request #14604 from vitlibar/no-detach-threads-2 2020-09-12 02:07:46 +03:00
MergeTree Merge pull request #11948 from CurtizJ/fsync-parts 2020-09-14 22:37:14 +04:00
RabbitMQ Tiny fixes, better tests 2020-09-07 14:48:50 +00:00
System Add merge_algorithm to system.merges 2020-09-13 10:00:03 +08:00
tests Fix build useless binary 2020-09-03 17:38:56 +03:00
AlterCommands.cpp Revert accident changes 2020-09-11 20:07:00 +03:00
AlterCommands.h Revert accident changes 2020-09-11 20:07:00 +03:00
CheckResults.h Fix half of typos 2020-08-08 03:47:03 +03:00
CMakeLists.txt
ColumnCodec.h
ColumnDefault.cpp
ColumnDefault.h
ColumnDependency.h Fix half of typos 2020-08-08 03:47:03 +03:00
ColumnsDescription.cpp Remove Join from ExpressionActions. 2020-09-08 13:40:53 +03:00
ColumnsDescription.h Add ability to specify Default codec for columns (#14049) 2020-08-28 20:40:45 +03:00
CompressionCodecSelector.h Add ability to specify Default codec for columns (#14049) 2020-08-28 20:40:45 +03:00
ConstraintsDescription.cpp Refactoring: extract TreeOptimizer from SyntaxAnalyzer (#12645) 2020-07-22 20:13:05 +03:00
ConstraintsDescription.h Make metadata single structure 2020-06-05 20:29:40 +03:00
DataDestinationType.h
extractKeyExpressionList.cpp Better naming 2020-05-28 16:09:03 +03:00
extractKeyExpressionList.h Better naming 2020-05-28 16:09:03 +03:00
getStructureOfRemoteTable.cpp Fix tests 2020-07-14 11:19:39 +03:00
getStructureOfRemoteTable.h
IndicesDescription.cpp Refactoring: extract TreeOptimizer from SyntaxAnalyzer (#12645) 2020-07-22 20:13:05 +03:00
IndicesDescription.h Check arguments of bloom filter index 2020-07-10 11:13:21 +03:00
IStorage_fwd.h
IStorage.cpp Merge branch 'master' into refactor-pipes-3 2020-08-10 10:50:17 +03:00
IStorage.h Merge branch 'master' into refactor-pipes-3 2020-08-10 10:50:17 +03:00
KeyDescription.cpp Fix half of typos 2020-08-08 03:47:03 +03:00
KeyDescription.h Slightly better interfaces and comments 2020-06-12 12:37:52 +03:00
MarkCache.h
MutationCommands.cpp
MutationCommands.h Fix half of typos 2020-08-08 03:47:03 +03:00
PartitionCommands.cpp Merge branch 'master' into refactor-pipes-3 2020-08-04 11:32:34 +03:00
PartitionCommands.h Merge branch 'master' into refactor-pipes-3 2020-08-04 11:32:34 +03:00
ReadInOrderOptimizer.cpp Refactoring: extract TreeOptimizer from SyntaxAnalyzer (#12645) 2020-07-22 20:13:05 +03:00
ReadInOrderOptimizer.h Refactoring: extract TreeOptimizer from SyntaxAnalyzer (#12645) 2020-07-22 20:13:05 +03:00
registerStorages.cpp COS (Tencent Cloud Object Storage) integration 2020-07-10 15:26:55 +08:00
registerStorages.h COS (Tencent Cloud Object Storage) integration 2020-07-10 15:26:55 +08:00
SelectQueryDescription.cpp fix missed database name when altering mv 2020-09-09 22:59:34 +03:00
SelectQueryDescription.h Make metadata single structure 2020-06-05 20:29:40 +03:00
SelectQueryInfo.h Refactoring: extract TreeOptimizer from SyntaxAnalyzer (#12645) 2020-07-22 20:13:05 +03:00
StorageBuffer.cpp Refactor Pipe [part 6] 2020-08-06 15:24:05 +03:00
StorageBuffer.h Support parallel INSERT for more table engines 2020-08-26 19:41:30 +03:00
StorageDictionary.cpp Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageDictionary.h Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageDistributed.cpp Update StorageDistributed.cpp 2020-09-03 04:39:36 +03:00
StorageDistributed.h Optimize queries with LIMIT/LIMIT BY/ORDER BY for distributed with GROUP BY sharding_key 2020-09-03 00:52:51 +03:00
StorageFactory.cpp
StorageFactory.h
StorageFile.cpp Refactor Pipe [part 6] 2020-08-06 15:24:05 +03:00
StorageFile.h Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageGenerateRandom.cpp Refactor Pipe [part 6] 2020-08-06 15:24:05 +03:00
StorageGenerateRandom.h Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageHDFS.cpp Refactor Pipe [part 6] 2020-08-06 15:24:05 +03:00
StorageHDFS.h Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageInMemoryMetadata.cpp First working test 2020-09-01 13:49:53 +03:00
StorageInMemoryMetadata.h Recompress TTLs in memory metadata 2020-08-31 15:12:51 +03:00
StorageInput.cpp Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageInput.h Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageJoin.cpp Merge branch 'master' into refactor-pipes-3 2020-08-04 11:32:34 +03:00
StorageJoin.h Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageLog.cpp Merge branch 'master' into refactor-pipes-3 2020-08-10 10:50:17 +03:00
StorageLog.h Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageLogSettings.cpp
StorageLogSettings.h
StorageMaterializedView.cpp Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageMaterializedView.h Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageMaterializeMySQL.cpp ISSUES-4006 try fix build 2020-08-17 18:11:50 +08:00
StorageMaterializeMySQL.h Fix build after merge 2020-08-14 08:28:26 +03:00
StorageMemory.cpp Fix tests. 2020-09-04 11:36:47 +03:00
StorageMemory.h Fix tests. 2020-09-04 11:36:47 +03:00
StorageMerge.cpp Add new query processing stage WithMergeableStateAfterAggregation 2020-09-03 00:51:08 +03:00
StorageMerge.h Refactor Pipe [part 6] 2020-08-06 15:24:05 +03:00
StorageMergeTree.cpp Some comments 2020-09-04 13:08:09 +03:00
StorageMergeTree.h Fix race condition in DETACH and background merge 2020-08-15 08:21:02 +03:00
StorageMongoDB.cpp Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageMongoDB.h Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageMySQL.cpp Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageMySQL.h Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageNull.cpp Better locks in Storages 2020-06-18 19:10:47 +03:00
StorageNull.h Support parallel INSERT for more table engines 2020-08-26 19:41:30 +03:00
StorageReplicatedMergeTree.cpp minor changes to comment 2020-09-10 09:09:48 -07:00
StorageReplicatedMergeTree.h Add fixed size of Merge TTLS 2020-09-03 16:00:13 +03:00
StorageS3.cpp Merge pull request #13337 from ClickHouse/refactor-pipes-3 2020-08-14 04:12:22 +03:00
StorageS3.h Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageS3Settings.cpp Tiny fixes for storage s3 2020-06-04 16:48:20 +03:00
StorageS3Settings.h Add default credentials and custom headers for s3 table functions. 2020-06-02 20:48:49 +03:00
StorageSet.cpp Better naming 2020-06-19 18:39:41 +03:00
StorageSet.h Better locks in Storages 2020-06-18 19:10:47 +03:00
StorageStripeLog.cpp Merge branch 'master' into refactor-pipes-3 2020-08-10 10:50:17 +03:00
StorageStripeLog.h Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageTinyLog.cpp Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageTinyLog.h Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageURL.cpp Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageURL.h Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageValues.cpp Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageValues.h Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageView.cpp TableFunction view. 2020-09-02 16:02:10 +08:00
StorageView.h Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageXDBC.cpp Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
StorageXDBC.h Refactor Pipe [part 2]. 2020-08-03 16:54:14 +03:00
TableLockHolder.h Better comments 2020-06-22 12:49:21 +03:00
transformQueryForExternalDatabase.cpp Refactoring: extract TreeOptimizer from SyntaxAnalyzer (#12645) 2020-07-22 20:13:05 +03:00
transformQueryForExternalDatabase.h
TTLDescription.cpp Less comments 2020-09-04 17:19:41 +03:00
TTLDescription.h Add recompression TTL parser 2020-08-31 14:35:53 +03:00
TTLMode.h Add recompression TTL parser 2020-08-31 14:35:53 +03:00
VirtualColumnUtils.cpp Refactoring: extract TreeOptimizer from SyntaxAnalyzer (#12645) 2020-07-22 20:13:05 +03:00
VirtualColumnUtils.h Hotfix for pushdown with StorageMerge (#13679) 2020-08-14 12:38:18 +03:00
ya.make Merge pull request #14705 from amosbird/misc1 2020-09-14 09:58:30 +03:00
ya.make.in Fix "Arcadia" 2020-09-08 01:14:13 +03:00