You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jclouds.apache.org by Svetoslav Neykov <sv...@cloudsoft.io> on 2017/07/17 13:21:47 UTC

Making the credential store scoped to individual compute service instances

There's a discussion currently going on in PR#1119 [1] about whether the credential store should be shared between different compute service instances.
That's in response to an unexpected behaviour where the configuration of one compute service will reflect on all remaining compute services even if for different providers (same login password used for all nodes).

If you are relying on the existing behaviour and have a good reason for it to stay please share in this mail thread or in the PR. Otherwise keep in mind this email as a heads up for the change.

It's still possible to keep the old behaviour by configuring the compute service with a credential store override:

public static final Map<String, ByteSource> SHARED_CREDENTIAL_STORE = new ConcurrentHashMap<String, ByteSource>();
...
Module sharedCredStore = new CredentialStoreModule(SHARED_CREDENTIAL_STORE);

ContextBuilder.newBuilder("provider")
   .modules(ImmutableSet.of(sharedCredStore, ...))
...

Best,
Svet.

[1] https://github.com/jclouds/jclouds/pull/1119