spring-cloud / spring-cloud/spring-cloud-config

Spring Boot Cloud Config Unable to Decrypt Password even symetric key is being provided via Yml Config

Open
#2,409 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

waiting-for-triage
Dominant language
Java
Stars
2k
Forks
1.3k
Avg merge
2d 59m
Merged PRs (30d)
16

Description

I have configured encrypt.key property in bootstrap.yml

Still I am getting this issues

Failed to bind properties under 'spring.cloud.config.password' to java.lang.String:

Property: spring.cloud.config.password
Value: "{cipher}<Text>"
Origin: class path resource [bootstrap.yml] - 11:31
Reason: java.lang.UnsupportedOperationException: No decryption for FailsafeTextEncryptor. Did you configure the keystore correctly?

It was working absolutely fine with version 2022.0.2

org.springframework.cloud
spring-cloud-dependencies
2022.0.2
pom
import

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the bootstrap.yml configuration and the Spring Cloud dependencies shown in the report, comparing the working 2022.0.2 setup with the affected version. Reproduce the encrypted spring.cloud.config.password case and trace why it uses FailsafeTextEncryptor; done means the configured symmetric key is honored and the binding no longer fails.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend, cloud, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.