You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using oracle JCE to encyrypt username and password. We are using Spring boot 2.0.0.M3 and spring cloud Finchley.M1
I followed the required steps to encrypt username and password (replacing security files and generating the encrypted values).
I stored the encrypted username and password in the properties file specific to my application
spring.data.cassandra.username={cipher}385f2e77d912e4027dc6f0dd9e9b875cb190927cbe8cbab9c4712c0d85b158ee
spring.data.cassandra.password={cipher}385f2e77d912e4027dc6f0dd9e9b875cb190927cbe8cbab9c4712c0d85b158ee
From client I was able to connect to database implying that the encryption and decryption was working fine.
However, I was still able to see the username and password in the nonencrypted form when i hit the config servr url http://localhost:1010/product-microservice/default/develop so i tried to set the spring.cloud.config.server.encrypt.enabled=false at the config server application-local.properties it didn't work
I provided the variable through the command line param -Dspring.cloud.config.server.encrypt.enabled=false and then it started showing the values in encrypted form as expected ...
"spring.data.cassandra.port": "9042",
"spring.data.cassandra.keyspace-name": "try_deo",
"spring.data.cassandra.username": "{cipher}385f2e77d912e4027dc6f0dd9e9b875cb190927cbe8cbab9c4712c0d85b158ee",
"spring.data.cassandra.password": "{cipher}385f2e77d912e4027dc6f0dd9e9b875cb190927cbe8cbab9c4712c0d85b158ee",
After this i included in the cloud config client entry below
org.springframework.security
spring-security-rsa
But, still i see that the properties are picked up in the encrypted format at the client side -
Caused by: com.datastax.driver.core.exceptions.AuthenticationException: Authentication error on host /192.168.33.10:9042: Provided username {cipher}385f2e77d912e4027dc6f0dd9e9b8
at com.datastax.driver.core.Connection$8.apply(Connection.java:390) ~[cassandra-driver-core-3.3.0.jar!/:
Please let me know if there is something wrong at my end?
The text was updated successfully, but these errors were encountered:
The Finchley milestones have been fairly unstable due to all of the not changes. M2 is the latest, please try that. You should not be using this in production.
hello
I am using oracle JCE to encyrypt username and password. We are using Spring boot 2.0.0.M3 and spring cloud Finchley.M1
I followed the required steps to encrypt username and password (replacing security files and generating the encrypted values).
I stored the encrypted username and password in the properties file specific to my application
spring.data.cassandra.username={cipher}385f2e77d912e4027dc6f0dd9e9b875cb190927cbe8cbab9c4712c0d85b158ee
spring.data.cassandra.password={cipher}385f2e77d912e4027dc6f0dd9e9b875cb190927cbe8cbab9c4712c0d85b158ee
From client I was able to connect to database implying that the encryption and decryption was working fine.
However, I was still able to see the username and password in the nonencrypted form when i hit the config servr url http://localhost:1010/product-microservice/default/develop so i tried to set the spring.cloud.config.server.encrypt.enabled=false at the config server application-local.properties it didn't work
I provided the variable through the command line param -Dspring.cloud.config.server.encrypt.enabled=false and then it started showing the values in encrypted form as expected ...
"spring.data.cassandra.port": "9042",
"spring.data.cassandra.keyspace-name": "try_deo",
"spring.data.cassandra.username": "{cipher}385f2e77d912e4027dc6f0dd9e9b875cb190927cbe8cbab9c4712c0d85b158ee",
"spring.data.cassandra.password": "{cipher}385f2e77d912e4027dc6f0dd9e9b875cb190927cbe8cbab9c4712c0d85b158ee",
After this i included in the cloud config client entry below
org.springframework.security spring-security-rsaBut, still i see that the properties are picked up in the encrypted format at the client side -
Caused by: com.datastax.driver.core.exceptions.AuthenticationException: Authentication error on host /192.168.33.10:9042: Provided username {cipher}385f2e77d912e4027dc6f0dd9e9b8
at com.datastax.driver.core.Connection$8.apply(Connection.java:390) ~[cassandra-driver-core-3.3.0.jar!/:
Please let me know if there is something wrong at my end?
The text was updated successfully, but these errors were encountered: