Skip to content

dbuchko/dbencrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dbencrypt

Demonstrate field level encryption using Credhub on PCF.

Based on: https://spring.io/guides/gs/accessing-data-rest/ https://sultanov.dev/blog/database-column-level-encryption-with-spring-data-jpa/

Create the following services in PCF: myappdb MySQL service instance mycredhub Credhub service broker instance with the property mysecret=super-secret-encrytion-key eg. cf create-service credhub default mycredhub -c config.json

To add a record:

curl -i -H "Content-Type:application/json" -d '{"firstName": "Frodo", "lastName": "Baggins", "piiData": "secret-data"}' http://localhost:8080/people

To fetch all the records:

curl http://localhost:8080/people

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages