You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/kms/aws_kms_how_to.md
+4-8Lines changed: 4 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ kms:CreateAlias
15
15
kms:Verify
16
16
```
17
17
18
-
3. Create an AWS KMS key, see [here](https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html) for more details. or, you can use the `/wallet/create` to create a key.
18
+
3. Create an AWS KMS key, see [here](https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html) for more details. or, you can use the `/backend-wallet/create` to create a key.
19
19
20
20
NOTE:
21
21
@@ -27,17 +27,13 @@ Key Spec: ECC_SECG_P256K1
27
27
Key Usage: Sign and verify
28
28
```
29
29
30
-
Once you create the key above, you can use `/wallet/add` and send details on the end-point to create the wallet
31
-
32
30
### Set up Web3-API with AWS KMS
33
31
34
32
If you are on the `latest` or `nightly` version of Web3-API, then you can use the below steps to set up AWS KMS:
35
33
36
34
1. Make sure your Engine is running with the environment variables setup, see [here](../1-user-guide.md) for more details.
37
35
2. Open `http://localhost:3005` in your browser to see the Swagger UI.
38
-
3. Copy the `THIRDWEB_API_SECRET_KEY` and use it in the `Authorization` header. On Swagger UI click on `Authorize` on top-righ corner and paste the `THIRDWEB_API_SECRET_KEY` in the `value` field and click `Authorize`.
39
-
4. Open `Configurations Tab`
40
-
5. Click on `POST /configuration/wallets` and paste the below body:
36
+
3. Open `Configurations Tab` and use the AWS Access Key ID, AWS Access Secret Key & AWS Region to setup AWS KMS.
41
37
42
38
```js
43
39
{
@@ -48,11 +44,11 @@ If you are on the `latest` or `nightly` version of Web3-API, then you can use th
48
44
}
49
45
```
50
46
51
-
6. Click `execute` & the AWS KMS Config will be added to Engine.
47
+
4. Click `create` & the AWS KMS Config will be added to Engine.
52
48
53
49
Now you can Create or Import AWS KMS Wallets using the `/backend-wallet/create` or `/backend-wallet/import` endpoints.
54
50
55
-
For Engine Version below `v0.0.3`, use the below:
51
+
#### For Engine Version below `v0.0.3`, use the below:
56
52
57
53
Create a `.env` file in the root directory of the project and add the below details.
5. Click `Add Key` -> Create new Key -> select `JSON` & download the JSON file. This JSON file details will be used to authenticate google auth while using Google Cloud KMS.
18
18
6. Create a keyring in Google KMS, see [here](https://cloud.google.com/kms/docs/create-key-ring) for more details.
19
19
20
-
Optional: Create a key in the keyring, see [here](https://cloud.google.com/kms/docs/create-key) for more details. or, you can use the `/wallet/create` to create a key in the keyring.
20
+
Optional: Create a key in the keyring, see [here](https://cloud.google.com/kms/docs/create-key) for more details. or, you can use the `/backend-wallet/create` to create a key in the keyring.
21
21
22
22
### Set up with Google KMS
23
23
24
24
If you are on the `latest` or `nightly` version of Web3-API, then you can use the below steps to set up AWS KMS:
25
25
26
26
1. Make sure your Engine is running with the environment variables setup, see [here](../1-user-guide.md) for more details.
27
-
2. Open `http://localhost:3005` in your browser to see the Swagger UI.
28
-
3. Copy the `THIRDWEB_API_SECRET_KEY` and use it in the `Authorization` header. On Swagger UI click on `Authorize` on top-righ corner and paste the `THIRDWEB_API_SECRET_KEY` in the `value` field and click `Authorize`.
29
-
4. Open `Configurations Tab`
30
-
5. Click on `POST /configuration/wallets` and paste the below body:
27
+
2. Open [thirdweb Engine Dashboard](https://thirdweb.com/dashboard/engine) and add your local Engine URL `https://localhost:3005`
28
+
3. Open `Configurations Tab` and use the details from the JSON file downloaded to setup GCP KMS.
0 commit comments