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
This is the role of the user that wants to run an oracle service for the Antithesis platform. There will be only one token and so there will be only one oracle service running at a time, but we document it here for completeness.
3
+
This is the role of the user that wants to run a service to control access to the Antithesis platform. There will be only one token and so there will be only one oracle service running at a time, but we document it here for completeness.
4
4
5
-
## Creating the anti token (only for testing)
5
+
## Creating the anti token (only once)
6
+
7
+
Oracle operations needs a wallet. Given the role aside setting the `ANTI_WALLET_FILE` environment variable to point to the wallet file, you also wanto to set th `ANTI_WALLET_PASSPHRASE` environment variable to encrypt it.
8
+
9
+
You can create a wallet with the `anti wallet create` command.
To create the Antithesis token, you can use the `anti oracle token create` command.
8
30
@@ -12,19 +34,43 @@ anti oracle token boot
12
34
13
35
It will create the Antithesis token. This token is a unique identifier for the Antithesis platform and will be used by all users to interact with the platform. You have to distribute it so that users can set the `ANTI_TOKEN_ID` environment variable to point to it.
14
36
15
-
To test the role change the ANTI_TOKEN_ID environment variable to the new create token id
16
-
17
37
You can review the token info anytime with
18
38
39
+
```bash
40
+
antij token | jq .state
41
+
```
42
+
43
+
Critically the owner matches the wallet owner.
44
+
45
+
## Publishing the oracle configuration
46
+
47
+
Before requesters can request test-runs, the oracle should select the agent identity and in general expose validation parameters so that the requesters and the agent can pre-validate their requests.
48
+
49
+
This is done with the `anti oracle config set` command.
50
+
19
51
20
52
```bash
21
-
anti token | jq '.result'
53
+
anti oracle config set --min-test-duration MIN_TEST_HOURS --max-test-duration MAX_TEST_HOURS --agent-pkh PUBLIC_KEY_HASH
22
54
```
23
-
In the requests field you will notice the `validation` field, which will be set to `validated` for all requests that have been validated .
24
55
56
+
This will end up in a fact and so we can inspect it with the `anti facts` command.
57
+
58
+
```bash
59
+
antij facts config
60
+
```
25
61
26
62
## Updating the anti token
27
63
64
+
The main responsibility of the oracle is to include change requests in the Antithesis token.
65
+
66
+
Pending change requests can be queried with the `antij token` command.
67
+
68
+
```bash
69
+
antij token | jq '.requests'
70
+
```
71
+
72
+
In the requests field you will notice the `validation` field, which will be set to `validated` for all requests that have been validated .
73
+
28
74
Once you decided what to include in the Antithesis token, you can commit the requests to the token.
29
75
30
76
Updating the token with new requests is done with the `anti oracle token update` command. As with retract you have to provide the `outputRefId` of the request you want to update. Multiple requests can be updated at once, so you can provide multiple `-o` options.
@@ -33,10 +79,10 @@ Updating the token with new requests is done with the `anti oracle token update`
33
79
anti oracle token update -o b6fc7cca5bcae74e6a5983f7922d0e0985285f1f19e62ccc9cb9fd4d3766a81b-0
34
80
```
35
81
36
-
## Deleting the anti token (only for testing)
82
+
## Deleting the anti token (DANGEROUS)
37
83
38
84
To delete the Antithesis token, you can use the `anti oracle token delete` command.
0 commit comments