Spring-cloud-config: Encryption Issue: No Key was installed for encryption service

Created on 26 Sep 2017  路  6Comments  路  Source: spring-cloud/spring-cloud-config

Referring to #767
We are not using dalston but milestone release below. I am using windows and ran in to the same issue. Is this an issue with 2.0.0.M3Finchley.M1 too.

1.8
UTF-8
UTF-8
2.0.0.M3
Finchley.M1
Elmhurst.BUILD-SNAPSHOT

Please confirm.
I got the error below http://localhost:1010/encrypt/
{
"description": "No key was installed for encryption service",
"status": "NO_KEY"
}

I am setting the key correctly
java -Xmx512m -Dconfiguration.store.path=D:/configuration-store -DENCRYPT_KEY=123xxxx -jar target/configuration-server-2.0.1.jar --spring.profiles.active=local

Most helpful comment

In Spring Cloud Edgware.RELEASE version锛宨f the encrypt.key in application.yml the error is still exist锛寃hen i move the encrypt.key into bootstrap.yml is ok

All 6 comments

Spring boot 2 compatibility is a work in progress

thanks for prompt reply. So as i understand this is a known issue. Am i right?

Yes, actuator endpoints are broken

Will encryption/decryption JCE work fine though for Cloud config or is that also not supported as of now. Considering i can get encrypt keys of format {cipher}AQCLJG5FvxQrLAC6Q9iDmkegrIh1yJ4K2BeRzNdu3PkMZXv1cMSJ/C3 below through some other source.

In Spring Cloud Edgware.RELEASE version锛宨f the encrypt.key in application.yml the error is still exist锛寃hen i move the encrypt.key into bootstrap.yml is ok

That is the documented place for it

Was this page helpful?
0 / 5 - 0 ratings