public Map<String, String> getAmbariProperties() {

    Properties properties = readConfigFile();
    Map<String, String> ambariPropertiesMap = new HashMap<>();

    for(String key : properties.stringPropertyNames()) {
      ambariPropertiesMap.put(key, properties.getProperty(key));
    }
    return ambariPropertiesMap;
  }
@return the set of properties to mask in the api that
returns ambari.properties
ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java