Svetoslav Neykov created JCLOUDS-1321:
-----------------------------------------
Summary: Per-compute-service credential store
Key: JCLOUDS-1321
URL: https://issues.apache.org/jira/browse/JCLOUDS-1321
Project: jclouds
Issue Type: Bug
Components: jclouds-core
Affects Versions: 2.0.2
Reporter: Svetoslav Neykov
With a shared credential store (the current default) the configuration of one
compute service leaks in all others, causing the wrong credentials to be used
when not overridden.
The particular problem this fixes - [Azure sets default username/password for
images|https://github.com/jclouds/jclouds-labs/blob/master/azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/AzureComputeProviderMetadata.java#L98]
which leaks to other providers (through
[GetLoginForProviderFromPropertiesAndStoreCredentialsOrReturnNull|https://github.com/jclouds/jclouds/blob/master/compute/src/main/java/org/jclouds/compute/config/GetLoginForProviderFromPropertiesAndStoreCredentialsOrReturnNull.java#L51]),
causing the wrong username/password to be used.
Even if the credentials are scoped to a specific provider in the map, it still
will cause cross-talk between differently configured compute services. The
cache should only apply to the current compute service.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)