Skip to content

Commit

Permalink
Ensure we get all secure config opts we need
Browse files Browse the repository at this point in the history
  • Loading branch information
AO-StreetArt committed Dec 3, 2018
1 parent a5b8b8b commit d687299
Showing 1 changed file with 23 additions and 15 deletions.
38 changes: 23 additions & 15 deletions src/app/include/ivan_application.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,30 +146,38 @@ class CrazyIvan: public Poco::Util::ServerApplication {
}

// Add secure opts
std::vector<std::string> secure_ops;
secure_ops.push_back(config.get_cluster_name() + \
config.add_secure_opt(config.get_cluster_name() + \
std::string(".transaction.security.auth.user"));
secure_ops.push_back(config.get_cluster_name() + \
config.add_secure_opt(config.get_cluster_name() + \
std::string(".transaction.security.auth.password"));
secure_ops.push_back(config.get_cluster_name() + \
config.add_secure_opt(config.get_cluster_name() + \
std::string(".transaction.security.hash.password"));
secure_ops.push_back(config.get_cluster_name() + \
config.add_secure_opt(config.get_cluster_name() + \
std::string(".event.security.out.aes.key"));
secure_ops.push_back(config.get_cluster_name() + \
config.add_secure_opt(config.get_cluster_name() + \
std::string(".event.security.out.aes.iv"));
config.add_secure_opt(config.get_cluster_name() + \
std::string(".event.security.out.aes.password"));
config.add_secure_opt(config.get_cluster_name() + \
std::string(".event.security.out.aes.salt"));
secure_ops.push_back(config.get_cluster_name() + \
config.add_secure_opt(config.get_cluster_name() + \
std::string(".event.security.registration.aes.key"));
secure_ops.push_back(config.get_cluster_name() + \
config.add_secure_opt(config.get_cluster_name() + \
std::string(".event.security.registration.aes.salt"));
secure_ops.push_back(config.get_cluster_name() + \
config.add_secure_opt(config.get_cluster_name() + \
std::string(".event.security.registration.aes.password"));
config.add_secure_opt(config.get_cluster_name() + \
std::string(".event.security.registration.aes.iv"));
config.add_secure_opt(config.get_cluster_name() + \
std::string(".event.security.in.aes.key"));
secure_ops.push_back(config.get_cluster_name() + \
config.add_secure_opt(config.get_cluster_name() + \
std::string(".event.security.in.aes.salt"));
secure_ops.push_back(std::string("neo4j.auth.un"));
secure_ops.push_back(std::string("neo4j.auth.pw"));
for (std::string op: secure_ops) {
config.add_secure_opt(op);
}
config.add_secure_opt(config.get_cluster_name() + \
std::string(".event.security.in.aes.iv"));
config.add_secure_opt(config.get_cluster_name() + \
std::string(".event.security.in.aes.password"));
config.add_secure_opt(std::string("neo4j.auth.un"));
config.add_secure_opt(std::string("neo4j.auth.pw"));

// Set default values for configuration
config.add_opt(std::string("adrestia"), \
Expand Down

0 comments on commit d687299

Please sign in to comment.