run
mvn clean install -f src/pci-gateway/pom.xml
mvn clean package -f src/pci-gateway/pom.xml
java -Djasypt.encryptor.password=<yoursecret> -jar pci-gateway-0.0.1-SNAPSHOT.jar --spring.config.location=file:application.yml
Configure the following in the application yml
logging:
path: ./logs
Package the application with the splunk profile enabled
mvn clean package -f src/pci-gateway/pom.xml -P splunk
Configure the following in the application yml
splunk:
url: http://localhost:8080
token: token
source: pci-gateway
Download the jasypt-1.9.3 binary
To encrypt parameters run:
java -cp <yourjasyptlocation>/jasypt-1.9.3/lib/jasypt-1.9.3.jar org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI input="somevalue" password=somepassword algorithm=PBEWithMD5AndDES
Add secret in run command and in application.yml wrap the encrypted value: ENC(xyz123==)
ex:
myproperty: ENC(your-encripted-string)