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

go/worker/keymanager: Show current key manager policy in the node status #5079

Merged
merged 1 commit into from
Nov 30, 2022

Conversation

peternose
Copy link
Contributor

Before first init request:

> keymanager-0 oasis-node control status
{
  "keymanager": {
    "signed_policy": null,
    "policy_checksum": null
  }
}

After first init request:

> keymanager-0 oasis-node control status
{
  "keymanager": {
    "signed_policy": null,
    "policy_checksum": ""
  }
}

With (sample) policy:

> keymanager-0 oasis-node control status
{
  "keymanager": {
    "signed_policy": {
      "policy": {
        "serial": 1,
        "id": "c000000000000000ffffffffffffffffffffffffffffffffffffffffffffffff",
        "enclaves": {
          "yaWJhRsfNWJxd/1wN47XeBcPc3YR5N+/C20lvf9VtHR9MQZkeAkxrhA6swqQFxwgGvOFpydXu0aDV4/evemt9Q==": {
            "may_query": {
              "8000000000000000000000000000000000000000000000000000000000000000": [
                "GCVveDwHFSG+LaBBzZNHtb21qO9Y+zRlhXGm4Uzx/LDkgEnR3g6zM1I5kWcabJO5fdZbzwknPVtr/oJi3JaOxw=="
              ]
            },
            "may_replicate": [
              "dW6vdvVILFNFgIserM3Vxg+GS7KqLSuHDfAM5DWvTiM1l6L/B0MBbyjl1+EpME7hxD29rj26lOGc7jVJA4paMg=="
            ]
          }
        }
      },
      "signatures": []
    },
    "policy_checksum": "BR0LqY6VQbk/xGezjRGk+tnb8gsGZT5wK24OkXlZmAE="
  }
}

@codecov
Copy link

codecov bot commented Nov 30, 2022

Codecov Report

Merging #5079 (a4ed204) into master (2e9b0ff) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5079      +/-   ##
==========================================
- Coverage   67.22%   67.21%   -0.01%     
==========================================
  Files         501      501              
  Lines       53265    53269       +4     
==========================================
- Hits        35805    35803       -2     
  Misses      13128    13128              
- Partials     4332     4338       +6     
Impacted Files Coverage Δ
go/worker/keymanager/api/api.go 32.43% <ø> (ø)
go/worker/keymanager/status.go 83.33% <100.00%> (+0.72%) ⬆️
go/worker/keymanager/worker.go 65.65% <100.00%> (+0.79%) ⬆️
...onsensus/tendermint/apps/beacon/state/state_vrf.go 73.33% <0.00%> (-13.34%) ⬇️
go/worker/beacon/tx_retry.go 90.47% <0.00%> (-4.77%) ⬇️
go/scheduler/api/api.go 53.26% <0.00%> (-4.35%) ⬇️
go/sentry/api/grpc.go 40.62% <0.00%> (-3.13%) ⬇️
go/worker/keymanager/watcher.go 64.17% <0.00%> (-2.99%) ⬇️
go/runtime/host/multi/multi.go 75.00% <0.00%> (-2.21%) ⬇️
go/p2p/peermgmt/connector.go 98.16% <0.00%> (-1.84%) ⬇️
... and 29 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@peternose peternose marked this pull request as ready for review November 30, 2022 12:04
@peternose peternose merged commit d649c80 into master Nov 30, 2022
@peternose peternose deleted the peternose/feature/km-policy-status branch November 30, 2022 12:04
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.

2 participants