There is no way to encrypt password. I tried the code below but it does not work (spring-cloud config not use) password generated application.yml and define important bootstrap.yml I am getting the error I'm not using contrasting approach, why it is looking for keystroke pom.xml
StandardPasswordEncoder encoder = new StandardPasswordEncoder ( "eurekaserverpassword") .; String encrypted value = encoder.xcode ("password");
has placed security: user: password: '{} cipher 3da45506d8dd45b29d5db2a52c23bd6bc2e129372846cc51cdb8397e2a641eb12dfbc61757ddcf42'
encrypt Key: eurekaserverpassword
Unsupported Operation Exception: There is no decryption for FailsafeTextEncryptor. Did you configure keystore properly?
& lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Project xmlns = "http://maven.apache.org/POM/4.0.0" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schema location = "http: / /maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> & Lt; ModelVersion & gt; 4.0.0 & lt; / ModelVersion & gt; & Lt; Group & gt; Com.eureka & lt; / Group & gt; & Lt; ArtifactId & gt; Eureka-server & lt; / ArtifactId> & Lt; Version & gt; 1.0 & lt; / Edition & gt; & Lt; Packaging & gt; Jar & lt; / Packaging & gt; & Lt; Properties & gt; & Lt; Project.build.sourceEncoding & gt; UTF-8 & LT; /project.build.sourceEncoding> & Lt; Start level & gt; Com.demo.EurekaApplication & lt; / Start level & gt; & Lt; Java.version & gt; 1.7 & LT; /java.version> & Lt; Spring-cloud.version & gt; 1.0.0.RELEASE & LT; /spring-cloud.version> & Lt; / Properties & gt; & Lt; Name & gt; Eureka server & lt; / Name & gt; & Lt; Details & gt; Eureka server & lt; / Description & gt; & Lt; DependencyManagement & gt; & Lt; Dependency & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.springframework.cloud & lt; / Group & gt; & Lt; ArtifactId & gt; Spring-cloud-starter parents & lt; / ArtifactId> & Lt; Version & gt; $ {Spring-cloud.version} & lt; / Edition & gt; & Lt; Type & gt; Pom & lt; / Type & gt; & Lt; Scope & gt; Import & lt; / Scope & gt; & Lt; / Dependencies & gt; & Lt; / Dependencies & gt; & Lt; / DependencyManagement & gt; & Lt; Dependency & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.springframework.boot & lt; / Group & gt; & Lt; ArtifactId & gt; Spring-boot starter-badge & lt; / ArtifactId> & Lt; Scope & gt; Provided & lt; / Scope & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.springframework.cloud & lt; / Group & gt; & Lt; ArtifactId & gt; Spring-claude-starter-eureka-server & lt; / ArtifactId> & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.springframework.boot & lt; / Group & gt; & Lt; ArtifactId & gt; Spring-boot starter-protection & lt; / ArtifactId> & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.springframework.security & lt; / Group & gt; & Lt; ArtifactId & gt; Spring-safety-RSA & lt; / ArtifactId> & Lt; / Dependencies & gt; & Lt; / Dependencies & gt; & Lt; Construction & gt; & Lt; Plugins & gt; & Lt; Plugin & gt; & Lt; Group & gt; Org.springframework.boot & lt; / Group & gt; & Lt; ArtifactId & gt; Spring-boot-Maven-plugin & lt; / ArtifactId> & Lt; Version & gt; 1.2.1.RELEASE & lt; / Edition & gt; & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; Goals & gt; & Lt; Goal & gt; Repackage & lt; / Target & gt; & Lt; / Targets & gt; & Lt; / Execution & gt; & Lt; / Hanging & gt; & Lt; Configuration & gt; & Lt; RequiredUnpack & gt; & Lt; Dependency & gt; & Lt; Group & gt; Com.netflix.eureka & lt; / Group & gt; & Lt; ArtifactId & gt; Eureka Cor & lt; / ArtifactId> & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Com.netflix.eureka & lt; / Group & gt; & Lt; ArtifactId & gt; Eureka-Client & lt; / ArtifactId> & Lt; / Dependencies & gt; & Lt; / RequireUnpack & gt; & Lt; / Configuration & gt; & Lt; / Plugin & gt; & Lt; / Plugins & gt; & Lt; / Create & gt; & Lt; / Project & gt;
Monday, 15 September 2014
spring cloud - Encrypting Eureka Server Password -
It has to be solved. First, I have to encrypt your password using the configured server and then use the key store details Eureka-server Butstrapkaimel the config server (Butstrapkaimel).
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment