|
@@ -235,6 +235,7 @@ App.config = Em.Object.create({
|
|
for (var index in properties) {
|
|
for (var index in properties) {
|
|
var advancedConfig = App.configsCollection.getConfigByName(index, siteConfig.type);
|
|
var advancedConfig = App.configsCollection.getConfigByName(index, siteConfig.type);
|
|
var serviceConfigObj = advancedConfig || this.createDefaultConfig(index, serviceName, filename, false);
|
|
var serviceConfigObj = advancedConfig || this.createDefaultConfig(index, serviceName, filename, false);
|
|
|
|
+ this.restrictSecureProperties(serviceConfigObj);
|
|
|
|
|
|
if (serviceConfigObj.isRequiredByAgent !== false) {
|
|
if (serviceConfigObj.isRequiredByAgent !== false) {
|
|
var formattedValue = this.formatPropertyValue(serviceConfigObj, properties[index]);
|
|
var formattedValue = this.formatPropertyValue(serviceConfigObj, properties[index]);
|
|
@@ -252,6 +253,16 @@ App.config = Em.Object.create({
|
|
return configs;
|
|
return configs;
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * put secure properties in read-only mode
|
|
|
|
+ * @param {object} config
|
|
|
|
+ */
|
|
|
|
+ restrictSecureProperties: function (config) {
|
|
|
|
+ var isReadOnly = config.isSecureConfig && App.get('isKerberosEnabled');
|
|
|
|
+ config.isReconfigurable = !isReadOnly;
|
|
|
|
+ config.isOverridable = !isReadOnly;
|
|
|
|
+ },
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* This method sets default values for config property
|
|
* This method sets default values for config property
|
|
* These property values has the lowest priority and can be overridden be stack/UI
|
|
* These property values has the lowest priority and can be overridden be stack/UI
|