spring-cloud / spring-cloud/spring-cloud-config
Spring Boot Cloud Config Unable to Decrypt Password even symetric key is being provided via Yml Config
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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