java - Spring Cloud Config Encryption API ignores special characters at the end -
we have externalised our application config using spring cloud config. use encryption api encrypt plain text passwords before go in yaml property file.
i struggling encrypting password downstream system has special character @ end. somehow that’s been ignored cloud config encryption api. when decrypt cipher using decryption api plain text without special character @ end.
i using curl invoke api -
curl 10.102.82.1:11901/encrypt -d axizfdh4xza=
for reason special characters in middle of plain text works fine, if have @ end ignored. password hashed, still curious find out how deal this.
set explicit content-type: text/plain make sure curl encodes data correctly when there special characters
curl -h "content-type: text/plain" 10.102.82.1:11901/encrypt -d axizfdh4xza=
this specified in cloud config documentation, tip on page - http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#_encryption_and_decryption
Comments
Post a Comment