AEM S3 configuration for binaryless replication (what is secret setting?) | Community
Skip to main content
Level 3
August 30, 2018
Solved

AEM S3 configuration for binaryless replication (what is secret setting?)

  • August 30, 2018
  • 7 replies
  • 4362 views

We are building out some instances using S3 as our datastore.  We are now getting to the point where we want to spin up the publish instances and make use of binaryless replication.

In the documentation [linked] Configuring node stores and data stores in AEM 6  it mentions a secret value for binaryless replication as part of the config settings in the org.apache.jackrabbit.oak.plugins.blob.datastore.S3DataStore.config file.

  • secret: Only to be used if using binaryless replication for shared datastore setup.

What should the value of this parameter be set to , or how do we go about getting such a value?

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by wimsymonsvrt

Just any value you want. It just needs to be the same  on all instances connected to that shared data store.

7 replies

smacdonald2008
Level 10
August 30, 2018

This is not an AEM value.

This is documented here - https://aws.amazon.com/blogs/security/wheres-my-secret-access-key/

Level 3
August 30, 2018

Thanks,

From the AEM documentation it mentions two entries that contain the word secret; one secretKey which I believe is the value you mentioned in your earlier reply from AWS and is paired with accessKey and secret. It is this value in the .config file that I would like to know where to find the correct value to use.

You can use the configuration file with the following options:

  • accessKey: The AWS access key.
  • secretKey: The AWS secret access key. Note: Alternatively, IAM roles can be used for authentication. If you are using IAM roles you no longer need to specify the accessKey and secretKey.
  • s3Bucket: The bucket name.
  • s3Region: The bucket region.
  • path: The path of the data store. The default is <AEM install folder>/repository/datastore
  • minRecordLength: The minimum size of an object that should be stored in the data store. The minimum/default is 16KB.
  • maxCachedBinarySize: Binaries with size less than or equal to this size will be stored in memory cache. The size is in bytes. The default is 17408 (17 KB).
  • cacheSize: The size of the cache. The value is specified in bytes. The default is 64GB.
  • secret: Only to be used if using binaryless replication for shared datastore setup.
wimsymonsvrtAccepted solution
Level 4
August 31, 2018

Just any value you want. It just needs to be the same  on all instances connected to that shared data store.

Level 3
August 31, 2018

Thanks - that works perfectly now.

smacdonald2008
Level 10
August 31, 2018

I am glad to hear it working.

May 2, 2019

Hey, would you mind explaining why and what this value is actually used for?

Level 4
May 3, 2019

My guess is that it used by the replication agent to check whether or not you are connected to the correct shared datastore. If the secret matches with the one in the datastore, binaryless replication is allowed. If it doesn't match, binaryless replication is denied.