[
https://issues.apache.org/jira/browse/CLOUDSTACK-7221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14085762#comment-14085762
]
Rajani Karuturi commented on CLOUDSTACK-7221:
---------------------------------------------
I added Secure config using the new ConfigDepot and ConfigKey in the commit
https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=cd2f27a .
It is not working as expected for encrypted fields. In the inner layers, when
it gets the value of the key it tries to do decrypt if its a secure or hidden
field. But, it doesn’t encrypt while saving the config.
Here is code snippet from ConfigurationVO:
{code:title=ConfigurationVO.java}
@Override
public String getValue() {
return (("Hidden".equals(getCategory()) ||
"Secure".equals(getCategory())) ? DBEncryptionUtil.decrypt(value) : value);
}
public void setValue(String value) {
this.value = value;
}
{code}
I think we should make the getter and setter consistent. Otherwise, you won’t
be able to introduce any new secure/hidden configs unless you put the encrypted
value in the db before.
(I created a defect for the same CLOUDSTACK-7242 )
For now, I changed the field to Advanced as it is just the ldap read timeout
configuration. (commit:
https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=fca41bf )
> [Automation] Failed to start ManagementServer with latest 4.5 build
> -------------------------------------------------------------------
>
> Key: CLOUDSTACK-7221
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7221
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Management Server
> Affects Versions: 4.5.0
> Reporter: Rayees Namathponnan
> Assignee: Rajani Karuturi
> Priority: Blocker
> Fix For: 4.5.0
>
> Attachments: management-server.log
>
>
> Create RPM build from master branch, install, and start MS
> Management server failed to start with below error
> 2014-07-31 21:50:29,382 INFO [o.a.c.e.o.NetworkOrchestrator] (main:null)
> Network Manager is configured.
> 2014-07-31 21:50:29,387 DEBUG [c.c.a.m.AgentManagerImpl] (main:null)
> Registering listener StorageCapacityListener with id 3
> 2014-07-31 21:50:29,388 DEBUG [c.c.a.m.AgentManagerImpl] (main:null)
> Registering listener ComputeCapacityListener with id 4
> 2014-07-31 21:50:29,396 INFO [o.a.c.s.SecondaryStorageManagerImpl]
> (main:null) Start configuring secondary storage vm manager :
> PremiumSecondaryStorageManagerImpl
> 2014-07-31 21:50:29,701 DEBUG [c.c.u.c.DBEncryptionUtil] (main:null) Error
> while decrypting: 1000
> 2014-07-31 21:50:42,531 INFO [c.c.u.c.ComponentContext] (main:null)
> Configuring
> com.cloud.bridge.persist.dao.CloudStackAccountDaoImpl_EnhancerByCloudStack_4f69b2af
> 2014-07-31 21:50:42,546 INFO [c.c.u.c.ComponentContext] (main:null)
> Configuring
> com.cloud.bridge.persist.dao.OfferingDaoImpl_EnhancerByCloudStack_e4742209
> 2014-07-31 21:50:42,547 INFO [c.c.u.c.ComponentContext] (main:null)
> Configuring
> com.cloud.bridge.persist.dao.SMetaDaoImpl_EnhancerByCloudStack_11b1201
> 2014-07-31 21:50:42,547 INFO [c.c.u.c.ComponentContext] (main:null)
> Configuring
> com.cloud.bridge.persist.dao.MultipartMetaDaoImpl_EnhancerByCloudStack_e88394c0
> 2014-07-31 21:50:42,547 INFO [c.c.u.c.ComponentContext] (main:null)
> Configuring
> com.cloud.bridge.persist.dao.UserCredentialsDaoImpl_EnhancerByCloudStack_a21cdd20
> 2014-07-31 21:50:42,548 INFO [c.c.u.c.ComponentContext] (main:null)
> Configuring
> com.cloud.bridge.persist.dao.CloudStackConfigurationDaoImpl_EnhancerByCloudStack_104f24de
> 2014-07-31 21:50:42,552 INFO [c.c.u.c.ComponentContext] (main:null)
> Configuring
> com.cloud.bridge.persist.dao.BucketPolicyDaoImpl_EnhancerByCloudStack_67e98ea3
> 2014-07-31 21:50:42,552 INFO [c.c.u.c.ComponentContext] (main:null)
> Configuring
> com.cloud.bridge.persist.dao.SObjectItemDaoImpl_EnhancerByCloudStack_4bfc466c
> 2014-07-31 21:50:42,553 INFO [c.c.u.c.ComponentContext] (main:null)
> Configuring
> com.cloud.bridge.persist.dao.MHostMountDaoImpl_EnhancerByCloudStack_a0ff7a7b
--
This message was sent by Atlassian JIRA
(v6.2#6252)