spring-cloud-config icon indicating copy to clipboard operation
spring-cloud-config copied to clipboard

Encryption Issue: No Key was installed for encryption service

Open heyitsaakash opened this issue 9 years ago • 6 comments

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.

<java.version>1.8</java.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <spring.boot.version>2.0.0.M3</spring.boot.version> <spring.cloud.version>Finchley.M1</spring.cloud.version> <spring.cloud.stream.version>Elmhurst.BUILD-SNAPSHOT</spring.cloud.stream.version>

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

heyitsaakash avatar Sep 26 '17 11:09 heyitsaakash

Spring boot 2 compatibility is a work in progress

spencergibb avatar Sep 26 '17 11:09 spencergibb

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

heyitsaakash avatar Sep 26 '17 11:09 heyitsaakash

Yes, actuator endpoints are broken

spencergibb avatar Sep 26 '17 11:09 spencergibb

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.

heyitsaakash avatar Sep 26 '17 11:09 heyitsaakash

In Spring Cloud Edgware.RELEASE version,if the encrypt.key in application.yml the error is still exist,when i move the encrypt.key into bootstrap.yml is ok

steveguoshao avatar Dec 19 '17 06:12 steveguoshao

That is the documented place for it

spencergibb avatar Dec 19 '17 07:12 spencergibb