-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2022.0.4 : No decryption for FailsafeTextEncryptor. Did you configure the keystore correctly? #2330
Comments
Hi, Just updated to 2023.0.1 but the error still remains. What works to have symmetric OK, is exporting the env var, ie,
Whereas the doc seems to indicate that the property should be ok : https://docs.spring.io/spring-cloud-config/docs/current/reference/html/#_key_management I have updated the repositories from OP to latest versions. |
Try adding
and set encrypt.key in bootstrap.properties. It is needed during bootstrap and that is why the environment variable works. |
Sure, this used to work (and will work) like prior the introduction of Also the documentation still states this point
This notice is in the documentation too :
If we reintroduce the Something has changed somewhere in SC, but i don't know where. Thanks for your feedback |
So i have tested with reintroducing But once gain, it has been broken exactly from |
I believe I have a way where we can support this, but technically your use case here is not valid. Having the key and the encrypted value in the same file is insecure. |
Don't get me wrong. If the behavior that used to work, and does not work anymore, is intended, no need to workaround with it, please. We'll change on our side. I was just surprised when it stopped to work because it worked for years without any notice, and is documented as is. Thanks again. |
I think there might be some other valid scenarios that may also not work so I think the fix is needed |
Related to spring-cloud/spring-cloud-config#2330 Co-authored-by: Ryan Baxter <[email protected]>
…roperties (#2399) Fixes #2330 Co-authored-by: Ryan Baxter <[email protected]>
Hello,
Describe the bug
Spring Boot
3.1.4
, Spring Cloud2022.0.4
Run this Config Server : https://github.com/mpalourdio/ConfigServer
Run this Spring Cloud Gateway : https://github.com/mpalourdio/ProxyServer
This fails with
Sample
See above, clone both and
mvn spring-boot:run
Observations
Going back to
2022.0.2
as version in https://github.com/mpalourdio/ProxyServer works. Fails with2022.0.3
too.The text was updated successfully, but these errors were encountered: