jwadolowski / cookbook-cq

Chef cookbook for Adobe CQ (aka AEM)
Other
20 stars 23 forks source link

Support for encrypted properties in AEM 6.3 and 6.4 #63

Closed jwadolowski closed 6 years ago

jwadolowski commented 6 years ago

Since AEM 6.3 master key is no longer located in the JCR repository, hence it can't be downloaded from /etc/key/master. It's been moved to filesystem and its location can be determined by checking com.adobe.granite.crypto.file bundle ID.

This PR changes the way master key is loaded (both approaches are supported to provide backwards compatibility). Additionally the way decryption process dependencies are extracted from primary JAR file got reimplemented to handle new AEM versions gracefully.

Details: http://www.nateyolles.com/blog/2017/05/sharing-crypto-keys-in-aem-63