Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Getting base64 encrypted KMS key value - version 5.1.2 #124

Open
swapnilgangrade01 opened this issue Jul 13, 2021 · 0 comments
Open

Comments

@swapnilgangrade01
Copy link

I am getting bs64 encrypted data even when I am using [plain] explicitly in application.yml.

Input -
secretKey: '{cipher}[output=plain]AQICAHgIQjiUCcEmiMlQkpKpQm9t6LVNLprl4kMCtLSOzmhW0wEiJ4yCAocdNg7/Le7BPvdAAAAAqzCBqAYJKoZIhvcNAQcGoIGaMIGXAgEAMIGRBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDFzlVJm3QRa5UVy9MQIBEIBkYkARHFeY+/l7MFbN2NfVwwIpuQoMHNAp+FruHPwBU6G8tK9OCLbo7TR0+3XrfQayxnHK447kQmRLJ+AyQHEm6VmHeAx+k9YgNk+eTLPCbPW8U5I+csZoDmFYrf9FLzJW0BKW0w=='

output -
49ef6c32-cc8c-409c-aeb0-0392f405802b:c7bfc9c4-8a64-44e5-b2fa-fec172ad4da9

pom.xml details

<java.version>1.8</java.version>
<spring-cloud.version>Hoxton.SR5</spring-cloud.version>
<aws-java-sdk.version>1.11.774</aws-java-sdk.version>
<spring-cloud-config-aws-kms.version>5.1.2</spring-cloud-config-aws-kms.version>

Compared with AWS command line cli decrypt the key with output as bs64 I am getting the same output as the application is giving.
Command -
aws kms decrypt --ciphertext-blob fileb:///tmp/cipherblob --output text --query Plaintext | base64 -d

49ef6c32-cc8c-409c-aeb0-0392f405802b:c7bfc9c4-8a64-44e5-b2fa-fec172ad4da9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant