Enable HTTPS oracle in chain #29

Merged
alexvanin merged 1 commit from alexvanin/frostfs-aio:feature/oracle into master 2023-11-01 11:18:14 +00:00
3 changed files with 19 additions and 1 deletions

2
.env
View file

@ -1,3 +1,3 @@
FROSTFS_HUB_IMAGE=truecloudlab/frostfs FROSTFS_HUB_IMAGE=truecloudlab/frostfs
AIO_IMAGE=truecloudlab/frostfs-aio AIO_IMAGE=truecloudlab/frostfs-aio
AIO_VERSION=1.2.8 AIO_VERSION=1.2.9

View file

@ -88,6 +88,17 @@ s3cred-custom:
--container-placement-policy "REP 1" \ --container-placement-policy "REP 1" \
--bearer-rules $(S3_BEARER_RULES) --bearer-rules $(S3_BEARER_RULES)
enable-oracle:
@docker exec aio neo-go contract invokefunction -r http://localhost:30333 \
--wallet-config /config/node-config.yaml \
--out /config/tx.json 49cf4e5378ffcd4dec034fd98a174c5491e395e2 designateAsRole \
int:8 [ bytes:02b3622bf4017bdfe317c58aed5f4c753f206b7db896046fa7d774bbc4bf7f8dc2 ] \
-- NfgHwwTi3wHAS8aFAN243C5vGbkYDpqLHP
@docker exec aio neo-go wallet sign --in /config/tx.json \
-r http://localhost:30333 \
--wallet-config /config/node-config.yaml \
-a NfgHwwTi3wHAS8aFAN243C5vGbkYDpqLHP
# Tick new epoch in side chain # Tick new epoch in side chain
tick.epoch: tick.epoch:
@docker exec aio /usr/bin/frostfs-adm --config /config/frostfs-adm.yml morph force-new-epoch @docker exec aio /usr/bin/frostfs-adm --config /config/frostfs-adm.yml morph force-new-epoch

View file

@ -52,3 +52,10 @@ ApplicationConfiguration:
UnlockWallet: UnlockWallet:
Path: "/config/node-wallet.json" Path: "/config/node-wallet.json"
Password: "one" Password: "one"
Oracle:
Review

Shouldn't we specify application type?

Shouldn't we specify application type?
Review

If no application provided, then everything is allowed:
8ed6d97085/pkg/services/oracle/request.go (L273)

If no application provided, then everything is allowed: https://github.com/nspcc-dev/neo-go/blob/8ed6d97085d3229d4faf56a47bbd6cf73c132a76/pkg/services/oracle/request.go#L273
Enabled: true
Nodes:
- http://127.0.0.1:30333
UnlockWallet:
Path: "/config/node-wallet.json"
Password: "one"