Skip to content

bcgov/jag-pci-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jag-pci-gateway

Maintainability Test Coverage Integration Tests

Build

run

mvn clean install -f src/pci-gateway/pom.xml

Package application

mvn clean package -f src/pci-gateway/pom.xml

Run

java -Djasypt.encryptor.password=<yoursecret> -jar pci-gateway-0.0.1-SNAPSHOT.jar --spring.config.location=file:application.yml

Logging

Log files

Configure the following in the application yml

logging:
 path: ./logs

Splunk

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

Encryted Parameters

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)