Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:NishantJoshi00/tartarus into fix/er…
…ror-container
- Loading branch information
Showing
19 changed files
with
543 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,30 @@ | ||
## Overview | ||
|
||
## locker phases | ||
|
||
### phase 1 | ||
working locker | ||
- configuration: pull configuration from toml file and environment variables | ||
- cards api: ability to perform add, retrieve, delete card actions | ||
- jwe + jws: encryption and signing middleware with keys passed in [`configuration`] | ||
- master key to be passed in configuration | ||
- key custodian: add support to decrypt the master key before starting the server | ||
|
||
### phase 2 | ||
- tenant api for adding and deleting tenants | ||
- add support for *kms* encryption on the environment variables | ||
- adding logging and metrics for locker | ||
- tenant specific jwe public key storage and utilizing key_id for identification | ||
- docker + kubernetes setup for infra deployment | ||
|
||
### phase 3 (optional) | ||
- add support for key rotation | ||
The Hyperswitch Card Vault (Tartarus) is a highly performant and a secure vault to save sensitive data such as payment card details, bank account details etc. | ||
|
||
It is designed in an polymorphic manner to handle and store any type of sensitive information making it highly scalable with extensive coverage of payment methods and processors. | ||
|
||
Tartarus is built with a GDPR compliant personal identifiable information (PII) storage and secure encryption algorithms to be fully compliant with PCI DSS requirements. | ||
|
||
Here's a quick guide to [Get Started](./docs/guides/setup.md) with setting up Tartarus. | ||
|
||
### How does Tartarus work? | ||
|
||
- Your application will communicate with Tartarus via a middleware. | ||
- All requests and responses to and from the middleware are signed and encrypted with the JWS and JWE algorithms. | ||
- The locker supports CRD APIs on the /data and /cards endpoints - <API Reference to be linked> | ||
- Cards are stored against the combination of merchant and customer identifiers. | ||
- Internal hashing checks are in place to avoid data duplication. | ||
|
||
![General Work Flow](./docs/imgs/general-block-diagram.png) | ||
|
||
### Key Hierarchy | ||
|
||
- Master Key - AES generated key to that is encrypted/decrypted by the custodian keys to run the locker and associated configurations. | ||
- Custodian Keys - AES generated key that is used to encrypt and decrypt the master key. It broken into two keys (key 1 and key 2) and available with two custodians to enhance security. | ||
|
||
![Key Hierarchy](./docs/imgs/locker-key-hierarchy.png) | ||
|
||
### Setup Guide | ||
|
||
Follow this guide to setup Tartarus - [Get Started](./docs/guides/setup.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[log.console] | ||
enabled = true # To enable logging in console | ||
level = "DEBUG" # level to be set for the logging framework | ||
log_format = "default" # format to be used for logging default | json | ||
|
||
[server] | ||
host = "127.0.0.1" # The host that the server should be exposed to | ||
port = 8080 # The port where the server should be hosted on | ||
|
||
[limit] | ||
request_count = 1 # The requests per duration | ||
duration = 60 # duration to rate limit the delete api (in sec) | ||
|
||
[database] | ||
username = "sam" # username for the database | ||
password = "damn" # password of the database | ||
host = "localhost" # the host where the database is hosted on | ||
port = 5432 # the port of the database | ||
dbname = "locker" # the name of the database where the cards are stored | ||
|
||
[secrets] | ||
tenant = "hyperswitch" # the tenant that we are currently configured for | ||
master_key = "feffe9928665731c6d6a8f9467308308feffe9928665731c6d6a8f9467308308" # master key that is used for database encryption this could be aes encrypted by key custodian | ||
|
||
tenant_public_key = "" # The tenant public key to which the communication will be established with | ||
locker_private_key = "" # the locker private key to used used and the private key present with the tenant | ||
|
||
[kms] | ||
region = "us-west-2" # the kms details needed to perform kms decryption of the above mentioned environment variables | ||
key_id = "abc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.