ClickHouse/programs/server
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
..
config.d Added config.d file for development 2020-09-14 22:44:20 +03:00
data Updated gitignore-files. 2020-08-06 18:05:32 -07:00
metadata Updated gitignore-files. 2020-08-06 18:05:32 -07:00
users.d Added a test 2020-06-14 00:13:52 +03:00
.gitignore Fixed .gitignore to exclude tests-generated data. 2020-08-25 16:41:23 -07:00
clickhouse-server.cpp Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
CMakeLists.txt Preparation to enable clickhouse install on Mac and FreeBSD 2020-08-10 02:58:09 +03:00
config.xml Secure inter-cluster query execution (with initial_user as current query user) [v3] 2020-09-15 01:36:28 +03:00
embedded.xml Embed configs into binary 2020-08-08 06:42:42 +03:00
MetricsTransmitter.cpp Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
MetricsTransmitter.h Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
Server.cpp better resolv.conf, add DNSCacheUpdater logs 2020-09-02 11:07:46 +03:00
Server.h Split programs/server into actual program and library (#11186) 2020-05-27 20:52:52 +03:00
users.xml Expect <ldap_servers> in main config.xml 2020-06-11 02:48:15 +04:00
ya.make Fix "Arcadia" 2020-09-08 01:14:13 +03:00