POST to /encrypt always comes back with KeyNotInstalledException
See original GitHub issueHi,
I’m using the Spring Cloud Config (Dalston.SR2) to use a git repo to get the application properties. All works fine till i try and use the /encrypt endpoint. With Dalston.SR2, the call to /encrypt ALWAYS comes back with a
{
"description": "No key was installed for encryption service",
"status": "NO_KEY"
}
I’ve made sure that the environment variable ENCRYPT_KEY is set properly.
If I change the version to Camden.SR5. The same configuration works fine and I can use both the /encrypt & /decrypt endpoints. I’m not sure if there’s anything else that I need to do apart from
- Copy the JCE 8 files to <JDK>\jre\lib\security
- Set the environment variable ENCRYPT_KEY
- Hit the /encrypt endpoint with a POST request
Here’s a copy of my pom xml.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.photolove</groupId>
<artifactId>pl-config-server</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>pl-config-server</name>
<description>Application Config Server</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.6.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<spring-cloud.version>Dalston.SR2</spring-cloud.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Any help is greatly appreciated. 😃
Cheers Kunal
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Always Encrypted - SQL Server - Microsoft Learn
Always Encrypted uses two types of keys: Column encryption keys. Column master keys. A column encryption key is used to encrypt data in...
Read more >Encrypt log data in CloudWatch Logs using AWS Key ...
Log group data is always encrypted in CloudWatch Logs. By default, CloudWatch Logs uses server-side encryption for the log data at rest.
Read more >Encrypt Mac data with FileVault - Apple Support
After the encryption process is complete, you can turn off FileVault. If you have an iMac Pro or another Mac with a T2...
Read more >What is the difference between GET and POST encryption?
Always use POST over HTTPS if you want to securely transfer information. If you're using an encryption library to encrypt the data then...
Read more >End-to-end encryption - Why HTTPS is not enough - Tozny
Simple, right? Data is secure on your user's mobile phone, it's secure in transit, and it's secure on your server…so it appears that...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Needs to be in bootstrap.properties
@Fydon unfortunately we did not release spring cloud config for Dalston.SR3, it was a mistake on our part. The fix will be included in Dalston.SR4, sorry about that.