rhtyd commented on a change in pull request #2239: CLOUDSTACK-9993: Securing
Agents Communications
URL: https://github.com/apache/cloudstack/pull/2239#discussion_r134770033
##########
File path: agent/src/com/cloud/agent/dao/impl/PropertiesStorage.java
##########
@@ -51,6 +51,9 @@ public synchronized String get(String key) {
@Override
public synchronized void persist(String key, String value) {
+ if (!loadFromFile(_file)) {
+ s_logger.warn("Failed to load changes and then write to them");
Review comment:
There is nobody to read the values, I refactored existing methods to allow
persisting passwords/passphrases for keystore. I can refactor this to throw an
exception, however that changes the previous implementation as persisting
changes is not mandatory, the agent reads stuff from cmdline (in systemvms)
etc. and sometimes receives information from readycommand.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services