Skip to content

Commit

Permalink
Remove username and password from IndexerConnector after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
pereyra-m committed Nov 28, 2024
1 parent a090048 commit 2157bda
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/engine/source/conf/include/conf/keys.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ constexpr std::string_view KVDB_PATH = "/kvdb/path";

constexpr std::string_view INDEXER_INDEX = "/indexer/index";
constexpr std::string_view INDEXER_HOST = "/indexer/host";
constexpr std::string_view INDEXER_USER = "/indexer/user";
constexpr std::string_view INDEXER_PASSWORD = "/indexer/password";
constexpr std::string_view INDEXER_SSL_CA_LIST = "/indexer/ssl/certificate_authorities";
constexpr std::string_view INDEXER_SSL_CERTIFICATE = "/indexer/ssl/certificate";
constexpr std::string_view INDEXER_SSL_KEY = "/indexer/ssl/key";
Expand Down
2 changes: 0 additions & 2 deletions src/engine/source/conf/src/conf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ Conf::Conf(std::shared_ptr<IApiLoader> apiLoader)
// Indexer connector
addUnit<std::string>(key::INDEXER_INDEX, "WAZUH_INDEXER_INDEX", "wazuh-alerts-5x");
addUnit<std::vector<std::string>>(key::INDEXER_HOST, "WAZUH_INDEXER_HOST", {"http://127.0.0.1:9200"});
addUnit<std::string>(key::INDEXER_USER, "WAZUH_INDEXER_USER", "admin");
addUnit<std::string>(key::INDEXER_PASSWORD, "WAZUH_INDEXER_PASSWORD", "WazuhEngine5+");
addUnit<std::vector<std::string>>(key::INDEXER_SSL_CA_LIST, "WAZUH_INDEXER_SSL_CA_LIST", {});
addUnit<std::string>(key::INDEXER_SSL_CERTIFICATE, "WAZUH_INDEXER_SSL_CERTIFICATE", "");
addUnit<std::string>(key::INDEXER_SSL_KEY, "WAZUH_INDEXER_SSL_KEY", "");
Expand Down
2 changes: 0 additions & 2 deletions src/engine/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,6 @@ int main(int argc, char* argv[])
IndexerConnectorOptions icConfig {};
icConfig.name = confManager.get<std::string>(conf::key::INDEXER_INDEX);
icConfig.hosts = confManager.get<std::vector<std::string>>(conf::key::INDEXER_HOST);
icConfig.username = confManager.get<std::string>(conf::key::INDEXER_USER);
icConfig.password = confManager.get<std::string>(conf::key::INDEXER_PASSWORD);
icConfig.sslOptions.cacert = confManager.get<std::vector<std::string>>(conf::key::INDEXER_SSL_CA_LIST);
icConfig.sslOptions.cert = confManager.get<std::string>(conf::key::INDEXER_SSL_CERTIFICATE);
icConfig.sslOptions.key = confManager.get<std::string>(conf::key::INDEXER_SSL_KEY);
Expand Down

0 comments on commit 2157bda

Please sign in to comment.