Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

AEM Granite Workflow Secrets

Avatar

Level 1

Hello!

I have developed a custom granite workflow using Java for AEM 6.5 which uses the AWS SDK for Java to invalidate Amazon CloudFront cache for a page the workflow runs on. I am required to pass in authentication secret tokens to use this SDK. What is the best way to pass in secrets to an AEM granite workflow so that the credentials do not get compromised?

Any help would be appreciated, thanks!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
2 Replies

Avatar

Correct answer by
Community Advisor

@dbenam Please check this out on how to use the crypto support to store the secrets

 

https://hashouttech.com/blog/How-to-encrypt-Plain-text-and-decrypt-Protected-text-in-Adobe-Experienc...

 

 

Avatar

Level 1

Thanks Saravanan! I just implemented this on my workflow and it's working great. Much appreciated!