Skip to content

Commit

Permalink
ensure we add the secure config opts before setting them
Browse files Browse the repository at this point in the history
  • Loading branch information
AO-StreetArt committed Jul 8, 2018
1 parent dbdde79 commit bbb0f8b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aossl/profile/include/tiered_app_profile.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ class TieredApplicationProfile: public SafeApplicationProfile{
if (d.IsObject()) {
const rapidjson::Value& token_val = d["data"]["data"][key.c_str()];
data.assign(token_val.GetString());
config_record.push_back(std::string("Retrieved Record: ") + data \
+ std::string(" for key: ") + key + std::string(" from Vault"));
config_record.push_back(std::string("Retrieved Record for key: ") \
+ key + std::string(" from Vault"));
}
return_buf.val.assign(data);
}
Expand Down Expand Up @@ -649,7 +649,9 @@ class TieredApplicationProfile: public SafeApplicationProfile{
//! 3. Vault Secret Values
inline void add_secure_opt(std::string& key) {
std::string final_key = configuration_key_start + key;
std::string blank_val;
secure_opt_keys.push_back(final_key);
KeyValueStore::add_opt(final_key, blank_val);
}

//! Get the Cluster Name
Expand Down

0 comments on commit bbb0f8b

Please sign in to comment.