title: Spring boot with KMS
body: <p>My Spring boot microservice is running in a docker container. It requires an encryption key for encrypting the incoming payload. I thought of using AWS KMS for storing the keys. Reading them at runtime, and encrypt the payload.</p>
  <p>I was trying to find out the libraries that can be used for accessing the AWS KMS from Spring boot microservice. Searching on the google results in below github projects.</p>
  <ul>
  <li><a href="https://github.com/zalando/spring-cloud-config-aws-kms" rel="nofollow noreferrer">https://github.com/zalando/spring-cloud-config-aws-kms</a></li>
  <li><a href="https://github.com/kinow/spring-boot-aws-kms-configuration" rel="nofollow noreferrer">https://github.com/kinow/spring-boot-aws-kms-configuration</a></li>
  </ul>
  <p>There is an SDK from AWS as well.</p>
  <ul>
  <li><a href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/java-example-code.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/java-example-code.html</a></li>
  </ul>
  <p>I am little confused on which one I should use? The two github projects seems to be more open approach than using AWS SDK to me. Also, the &quot;zalando&quot; project was last updated on May 2020.. so they appears to be active.</p>