Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AWS KMS support #4

Merged
merged 3 commits into from
Jul 3, 2024
Merged

Add AWS KMS support #4

merged 3 commits into from
Jul 3, 2024

Conversation

ishantiw
Copy link
Member

@ishantiw ishantiw commented Jun 12, 2024

Description

Resolves #2

  • Add AWS KMS and AWS S3 dependency
  • Create AWS KMS util handling file retrieval from S3 and decrypting the content
  • Add related env variable
  • Update signer to also include key provided via AWS KMS

How to test

AWSKMS_CONFIG='{"mainnet":{"relayerKey": {"keyID": "","accessKeyId": "","secretAccessKey": "","region": ""}} }'
AWS_S3_STORAGE_CONFIG='{"bucket": "<BUCKET_NAME>", "key": "ENCRYPTED_FILE_NAME}'
  • SEND_RELAYS=true yarn relay --wallet awskms --keys "relayerKey"

@ishantiw ishantiw self-assigned this Jun 12, 2024
@ishantiw ishantiw changed the title 🌱 Add AWS KMS support Add AWS KMS support Jun 12, 2024
@ishantiw ishantiw marked this pull request as ready for review June 28, 2024 14:50
@ishantiw ishantiw force-pushed the 2-add-aws-kms branch 2 times, most recently from ead1231 to ae63c68 Compare June 28, 2024 16:00
@ishantiw ishantiw requested review from shuse2 and Incede June 28, 2024 16:12
@ishantiw ishantiw changed the base branch from master to 3-update-workflow July 1, 2024 09:35
src/utils/AwskmsUtils.ts Outdated Show resolved Hide resolved
@ishantiw ishantiw requested a review from shuse2 July 1, 2024 18:05
Base automatically changed from 3-update-workflow to master July 3, 2024 07:45
@ishantiw ishantiw merged commit 88444cf into master Jul 3, 2024
1 check passed
@ishantiw ishantiw deleted the 2-add-aws-kms branch July 3, 2024 07:45
ishantiw added a commit that referenced this pull request Jul 17, 2024
## Description

- Add AWS KMS and AWS S3 dependency
- Create AWS KMS util handling file retrieval from S3 and decrypting the
content
- Add related env variable
- Update signer to also include key provided via AWS KMS

## How to test
- Set env file following
https://docs.across.to/relayers/running-a-relayer#configuration and then
add 2 env var for AWS as below
```ts
AWSKMS_CONFIG='{"mainnet":{"relayerKey": {"keyID": "","accessKeyId": "","secretAccessKey": "","region": ""}} }'
AWS_S3_STORAGE_CONFIG='{"bucket": "<BUCKET_NAME>", "key": "ENCRYPTED_FILE_NAME}'
```
- `SEND_RELAYS=true yarn relay --wallet awskms --keys "relayerKey"`
ishantiw added a commit that referenced this pull request Jul 17, 2024
## Description

- Add AWS KMS and AWS S3 dependency
- Create AWS KMS util handling file retrieval from S3 and decrypting the
content
- Add related env variable
- Update signer to also include key provided via AWS KMS

## How to test
- Set env file following
https://docs.across.to/relayers/running-a-relayer#configuration and then
add 2 env var for AWS as below
```ts
AWSKMS_CONFIG='{"mainnet":{"relayerKey": {"keyID": "","accessKeyId": "","secretAccessKey": "","region": ""}} }'
AWS_S3_STORAGE_CONFIG='{"bucket": "<BUCKET_NAME>", "key": "ENCRYPTED_FILE_NAME}'
```
- `SEND_RELAYS=true yarn relay --wallet awskms --keys "relayerKey"`
ishantiw added a commit that referenced this pull request Aug 7, 2024
## Description

- Add AWS KMS and AWS S3 dependency
- Create AWS KMS util handling file retrieval from S3 and decrypting the
content
- Add related env variable
- Update signer to also include key provided via AWS KMS

## How to test
- Set env file following
https://docs.across.to/relayers/running-a-relayer#configuration and then
add 2 env var for AWS as below
```ts
AWSKMS_CONFIG='{"mainnet":{"relayerKey": {"keyID": "","accessKeyId": "","secretAccessKey": "","region": ""}} }'
AWS_S3_STORAGE_CONFIG='{"bucket": "<BUCKET_NAME>", "key": "ENCRYPTED_FILE_NAME}'
```
- `SEND_RELAYS=true yarn relay --wallet awskms --keys "relayerKey"`
ishantiw added a commit that referenced this pull request Aug 7, 2024
## Description

- Add AWS KMS and AWS S3 dependency
- Create AWS KMS util handling file retrieval from S3 and decrypting the
content
- Add related env variable
- Update signer to also include key provided via AWS KMS

## How to test
- Set env file following
https://docs.across.to/relayers/running-a-relayer#configuration and then
add 2 env var for AWS as below
```ts
AWSKMS_CONFIG='{"mainnet":{"relayerKey": {"keyID": "","accessKeyId": "","secretAccessKey": "","region": ""}} }'
AWS_S3_STORAGE_CONFIG='{"bucket": "<BUCKET_NAME>", "key": "ENCRYPTED_FILE_NAME}'
```
- `SEND_RELAYS=true yarn relay --wallet awskms --keys "relayerKey"`
sameersubudhi pushed a commit that referenced this pull request Sep 6, 2024
## Description

- Add AWS KMS and AWS S3 dependency
- Create AWS KMS util handling file retrieval from S3 and decrypting the
content
- Add related env variable
- Update signer to also include key provided via AWS KMS

## How to test
- Set env file following
https://docs.across.to/relayers/running-a-relayer#configuration and then
add 2 env var for AWS as below
```ts
AWSKMS_CONFIG='{"mainnet":{"relayerKey": {"keyID": "","accessKeyId": "","secretAccessKey": "","region": ""}} }'
AWS_S3_STORAGE_CONFIG='{"bucket": "<BUCKET_NAME>", "key": "ENCRYPTED_FILE_NAME}'
```
- `SEND_RELAYS=true yarn relay --wallet awskms --keys "relayerKey"`
sameersubudhi pushed a commit that referenced this pull request Sep 10, 2024
## Description

- Add AWS KMS and AWS S3 dependency
- Create AWS KMS util handling file retrieval from S3 and decrypting the
content
- Add related env variable
- Update signer to also include key provided via AWS KMS

## How to test
- Set env file following
https://docs.across.to/relayers/running-a-relayer#configuration and then
add 2 env var for AWS as below
```ts
AWSKMS_CONFIG='{"mainnet":{"relayerKey": {"keyID": "","accessKeyId": "","secretAccessKey": "","region": ""}} }'
AWS_S3_STORAGE_CONFIG='{"bucket": "<BUCKET_NAME>", "key": "ENCRYPTED_FILE_NAME}'
```
- `SEND_RELAYS=true yarn relay --wallet awskms --keys "relayerKey"`
sameersubudhi pushed a commit that referenced this pull request Sep 10, 2024
## Description

- Add AWS KMS and AWS S3 dependency
- Create AWS KMS util handling file retrieval from S3 and decrypting the
content
- Add related env variable
- Update signer to also include key provided via AWS KMS

## How to test
- Set env file following
https://docs.across.to/relayers/running-a-relayer#configuration and then
add 2 env var for AWS as below
```ts
AWSKMS_CONFIG='{"mainnet":{"relayerKey": {"keyID": "","accessKeyId": "","secretAccessKey": "","region": ""}} }'
AWS_S3_STORAGE_CONFIG='{"bucket": "<BUCKET_NAME>", "key": "ENCRYPTED_FILE_NAME}'
```
- `SEND_RELAYS=true yarn relay --wallet awskms --keys "relayerKey"`
sameersubudhi pushed a commit that referenced this pull request Sep 10, 2024
## Description

- Add AWS KMS and AWS S3 dependency
- Create AWS KMS util handling file retrieval from S3 and decrypting the
content
- Add related env variable
- Update signer to also include key provided via AWS KMS

## How to test
- Set env file following
https://docs.across.to/relayers/running-a-relayer#configuration and then
add 2 env var for AWS as below
```ts
AWSKMS_CONFIG='{"mainnet":{"relayerKey": {"keyID": "","accessKeyId": "","secretAccessKey": "","region": ""}} }'
AWS_S3_STORAGE_CONFIG='{"bucket": "<BUCKET_NAME>", "key": "ENCRYPTED_FILE_NAME}'
```
- `SEND_RELAYS=true yarn relay --wallet awskms --keys "relayerKey"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add AWS KMS for wallet used for signer
3 participants