Skip to content

vgs-samples/okta-pii-demo

Repository files navigation

VGS Logo

Redact PII from Okta

This application demonstrates how placing VGS between an application's front end and back end can intercept PII before the back end can send it on to Okta, while still allowing the user to view it later on in the front end.

Requirements

  • A VGS vault
  • Docker
  • nGrok
  • An Okta account, where users have a custom attribute called "ssn"

Running the Application

  • Add your Okta URL and API token to server/app.py.
  • Add your VGS inbound vault URL to client/src/proerties.js
  • In your terminal, run docker-compose up -d --force-recreate
  • Next, run ngrok http 5000

VGS Dashboard Configuration

Set your route's upsteam host to your nGrok URL. Add two filters:

One to readact the SSN before it reaches the server Redact Filter

One to reveal the SSN to the front end upon retrieval from the server Reveal Filter

For a quick start, you can use the config.yaml in this project to import a sample route. Using vgs-cli, run vgs --tenant=VAULT_ID route --sync-all < my-route-file.yaml

Try it out

Note: This app is intended to demonstrate VGS's capabilities and is not intended to securely handle live data. Do not input a real Social Security Number or any other piece of sensitive data at any point.

  • Open http://0.0.0.0:3000/ in your browser
  • First, try creating a user without routing the request through VGS.

Create Without VGS

  • As desired, the user profile displays the SSN you entered.

User Profile

  • If you look up the user you created in the Okta user directory, you'll notice that the SSN you entered appears unmodified. This is an issue because both your server and Okta have received sensitive data without needing it. Let's fix this.

Okta Profile Unredacted

  • Back in your app, click the "Delete User" button
  • Create the user again, this time routing through VGS.

Create With VGS

  • As before, the user profile displays the SSN you entered. This is because of the reveal filter we added in the VGS configuration.

User Profile

  • However, in the Okta directory, the SSN has been replaced by a VGS token. The redact filter intercepted the real SSN before it made it to the server and replaced it with an alias. The server sent this alias to Okta. Both your server and Okta are now spared the burden of handling sensitive data.

Okta Profile Redacted

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •