vgs-rails-insurance-sample
Integration of Ruby on Rails 5 app with VGS
This version of application uses mock api insurance service
- Go to VGS-Dashboard, create a new organization, create a new vault.
- Select your vault, go to
Integration
page - Copy your proxy URL, it should be in format:
http://<user>:<password>@<tenant>.SANDBOX.verygoodproxy.com:8080
- Clone repository and go to project directory
- Install gems with
./bin/bundle
- Run ngrok for mock service with
ngrok http 5000
- Start server and mock service by putting provided ngrok https address into
NGROK_HTTPS_LINK
withdocker-compose build && API_URL=<NGROK_HTTPS_LINK> docker-compose up
- Run ngrok for applcation with
ngrok http 3000
- Copy provided address
https://<some_id>.ngrok.io
- Go to VGS dashboard
- Go to
Secure traffic
->Inbound
- Put ngrok url to upstream
- Application should be available by
https://<tenant>.sandbox.verygoodproxy.com/
- Fill forms in app, submit payment data
- Open VGS dashboard, go to
Logs
- Ensure that logger is recording payloads
- Find the request with account data, click on it
- Click on
Secure this payload
- Select fields, click
Secure
- Go to VGS dashboard
- Go to
Secure traffic
->Outbound
- Switch to the application, press
Calculate
for one of the accounts - Go back to VGS dashboard, it should detect the outbound connection, click on
Secure data
- Find the request to mock API (ngrok call), click on it
- Click on
Secure this payload
- Select fields, click
Secure
- Done, you outbound secure route has been created
Want to just jump right in? Check out our getting started guide.
Very Good Security (VGS) allows you to enhance your security standing while maintaining the utility of your data internally and with third-parties. As an added benefit, we accelerate your compliance certification process and help you quickly obtain security-related compliances that stand between you and your market opportunities.
To learn more, visit us at https://www.verygoodsecurity.com/
This project is licensed under the MIT license. See the LICENSE file for details.