Skip to content

Commit 4ae76af

Browse files
authored
Merge pull request #449 from onflow/khalil/1659-secure-grpc-support
Khalil/1659 secure grpc support
2 parents 3a01b1c + 260eafb commit 4ae76af

36 files changed

Lines changed: 464 additions & 63 deletions

docs/account-add-contract.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ Specify the hostname of the Access API that will be
9797
used to execute the command. This flag overrides
9898
any host defined by the `--network` flag.
9999
100+
### Network Key
101+
102+
- Flag: `--network-key`
103+
- Valid inputs: A valid network public key of the host in hex string format
104+
105+
Specify the network public key of the Access API that will be
106+
used to create a secure GRPC client when executing the command.
107+
100108
### Network
101109
102110
- Flag: `--network`

docs/account-remove-contract.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ Specify the hostname of the Access API that will be
8989
used to execute the command. This flag overrides
9090
any host defined by the `--network` flag.
9191

92+
### Network Key
93+
94+
- Flag: `--network-key`
95+
- Valid inputs: A valid network public key of the host in hex string format
96+
97+
Specify the network public key of the Access API that will be
98+
used to create a secure GRPC client when executing the command.
99+
92100
### Network
93101

94102
- Flag: `--network`

docs/account-staking-info.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ Specify the hostname of the Access API that will be
7171
used to execute the command. This flag overrides
7272
any host defined by the `--network` flag.
7373

74+
### Network Key
75+
76+
- Flag: `--network-key`
77+
- Valid inputs: A valid network public key of the host in hex string format
78+
79+
Specify the network public key of the Access API that will be
80+
used to create a secure GRPC client when executing the command.
81+
7482
### Network
7583

7684
- Flag: `--network`

docs/account-update-contract.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ Specify the hostname of the Access API that will be
9494
used to execute the command. This flag overrides
9595
any host defined by the `--network` flag.
9696

97+
### Network Key
98+
99+
- Flag: `--network-key`
100+
- Valid inputs: A valid network public key of the host in hex string format
101+
102+
Specify the network public key of the Access API that will be
103+
used to create a secure GRPC client when executing the command.
104+
97105
### Network
98106

99107
- Flag: `--network`

docs/build-transactions.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,14 @@ Specify the gas limit for this transaction.
156156
Specify the hostname of the Access API that will be
157157
used to execute the commands.
158158

159+
### Network Key
160+
161+
- Flag: `--network-key`
162+
- Valid inputs: A valid network public key of the host in hex string format
163+
164+
Specify the network public key of the Access API that will be
165+
used to create a secure GRPC client when executing the command.
166+
159167
### Network
160168

161169
- Flag: `--network`

docs/configuration.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ We'll walk through each property one by one.
9494
"networks": {
9595
"emulator": "127.0.0.1:3569",
9696
"mainnet": "access.mainnet.nodes.onflow.org:9000",
97-
"testnet": "access.devnet.nodes.onflow.org:9000"
97+
"testnet": "access.devnet.nodes.onflow.org:9000",
98+
"testnetSecure": {
99+
"Host": "access-001.devnet30.nodes.onflow.org:9001",
100+
"NetworkKey": "ba69f7d2e82b9edf25b103c195cd371cf0cc047ef8884a9bbe331e62982d46daeebf836f7445a2ac16741013b192959d8ad26998aff12f2adc67a99e1eb2988d"
101+
}
98102
},
99103

100104
"emulators": {
@@ -291,13 +295,28 @@ Format for networks is:
291295
...
292296
```
293297

298+
```json
299+
...
300+
"networks": {
301+
"NETWORK NAME": {
302+
"host": "ADDRESS",
303+
"key": "ACCESS NODE NETWORK KEY"
304+
}
305+
}
306+
...
307+
```
308+
294309
```json
295310
...
296311

297312
"networks": {
298313
"emulator": "127.0.0.1:3569",
299314
"mainnet": "access.mainnet.nodes.onflow.org:9000",
300-
"testnet": "access.devnet.nodes.onflow.org:9000"
315+
"testnet": "access.devnet.nodes.onflow.org:9000",
316+
"testnetSecure": {
317+
"host": "access-001.devnet30.nodes.onflow.org:9001",
318+
"key": "ba69f7d2e82b9edf25b103c195cd371cf0cc047ef8884a9bbe331e62982d46daeebf836f7445a2ac16741013b192959d8ad26998aff12f2adc67a99e1eb2988d"
319+
},
301320
}
302321

303322
...

docs/create-accounts.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,14 @@ Specify the hostname of the Access API that will be
120120
used to execute the command. This flag overrides
121121
any host defined by the `--network` flag.
122122

123+
### Network Key
124+
125+
- Flag: `--network-key`
126+
- Valid inputs: A valid network public key of the host in hex string format
127+
128+
Specify the network public key of the Access API that will be
129+
used to create a secure GRPC client when executing the command.
130+
123131
### Network
124132

125133
- Flag: `--network`

docs/deploy-project-contracts.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,14 @@ Specify the hostname of the Access API that will be
142142
used to execute the command. This flag overrides
143143
any host defined by the `--network` flag.
144144

145+
### Network Key
146+
147+
- Flag: `--network-key`
148+
- Valid inputs: A valid network public key of the host in hex string format
149+
150+
Specify the network public key of the Access API that will be
151+
used to create a secure GRPC client when executing the command.
152+
145153
### Network
146154

147155
- Flag: `--network`

docs/execute-scripts.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ Specify the hostname of the Access API that will be
8383
used to execute the command. This flag overrides
8484
any host defined by the `--network` flag.
8585

86+
### Network Key
87+
88+
- Flag: `--network-key`
89+
- Valid inputs: A valid network public key of the host in hex string format
90+
91+
Specify the network public key of the Access API that will be
92+
used to create a secure GRPC client when executing the command.
93+
8694
### Network
8795

8896
- Flag: `--network`

docs/get-accounts.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ Specify the hostname of the Access API that will be
7575
used to execute the command. This flag overrides
7676
any host defined by the `--network` flag.
7777

78+
### Network Key
79+
80+
- Flag: `--network-key`
81+
- Valid inputs: A valid network public key of the host in hex string format
82+
83+
Specify the network public key of the Access API that will be
84+
used to create a secure GRPC client when executing the command.
85+
7886
### Network
7987

8088
- Flag: `--network`

0 commit comments

Comments
 (0)