mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 12:32:04 +00:00
acl check
This commit is contained in:
parent
b4f750ed66
commit
297d566600
@ -314,6 +314,9 @@ KeeperStorage::ResponseForSession KeeperStateMachine::processReconfiguration(
|
|||||||
return { session_id, std::move(res) };
|
return { session_id, std::move(res) };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (!storage->checkACL(keeper_config_path, Coordination::ACL::Write, session_id, true))
|
||||||
|
return bad_request(ZNOAUTH);
|
||||||
|
|
||||||
KeeperDispatcher& dispatcher = *keeper_context->getDispatcher();
|
KeeperDispatcher& dispatcher = *keeper_context->getDispatcher();
|
||||||
if (!dispatcher.reconfigEnabled())
|
if (!dispatcher.reconfigEnabled())
|
||||||
return bad_request(ZUNIMPLEMENTED);
|
return bad_request(ZUNIMPLEMENTED);
|
||||||
|
@ -183,7 +183,8 @@ private:
|
|||||||
|
|
||||||
KeeperSnapshotManagerS3 * snapshot_manager_s3;
|
KeeperSnapshotManagerS3 * snapshot_manager_s3;
|
||||||
|
|
||||||
KeeperStorage::ResponseForSession processReconfiguration(const KeeperStorage::RequestForSession& request_for_session);
|
KeeperStorage::ResponseForSession processReconfiguration(
|
||||||
|
const KeeperStorage::RequestForSession& request_for_session)
|
||||||
|
TSA_REQUIRES(storage_and_responses_lock);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user