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

keymanager: Support policies in unsafe builds #5215

Merged

Conversation

peternose
Copy link
Contributor

The key manager settings configured in the policy can now be tested on non-SGX builds as well. This will simplify tests, as default values can be configured in the test fixtures (e.g. master secret rotation period).

@peternose peternose marked this pull request as ready for review March 8, 2023 09:50
@peternose peternose added the c:testing Category: testing label Mar 8, 2023
@codecov
Copy link

codecov bot commented Mar 8, 2023

Codecov Report

Merging #5215 (4ba2bc0) into master (9e3c06f) will increase coverage by 0.23%.
The diff coverage is 68.12%.

❗ Current head 4ba2bc0 differs from pull request most recent head 2490d26. Consider uploading reports for the commit 2490d26 to get more accurate results

@@            Coverage Diff             @@
##           master    #5215      +/-   ##
==========================================
+ Coverage   61.30%   61.53%   +0.23%     
==========================================
  Files         512      512              
  Lines       54246    54243       -3     
==========================================
+ Hits        33256    33381     +125     
+ Misses      16754    16633     -121     
+ Partials     4236     4229       -7     
Impacted Files Coverage Δ
go/worker/keymanager/worker.go 64.76% <64.73%> (+1.69%) ⬆️
go/worker/keymanager/init.go 63.79% <95.65%> (+1.97%) ⬆️
go/oasis-node/cmd/keymanager/keymanager.go 47.38% <100.00%> (ø)
go/worker/keymanager/watcher.go 63.63% <100.00%> (-0.55%) ⬇️
go/p2p/dispatch.go 46.10% <0.00%> (-20.78%) ⬇️
go/storage/api/metrics.go 71.66% <0.00%> (-5.00%) ⬇️
go/worker/compute/executor/committee/p2p.go 52.38% <0.00%> (-4.77%) ⬇️
go/p2p/error/error.go 95.45% <0.00%> (-4.55%) ⬇️
go/storage/mkvs/lookup.go 72.91% <0.00%> (-2.09%) ⬇️
go/p2p/peermgmt/connector.go 98.16% <0.00%> (-1.84%) ⬇️
... and 26 more

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

Runtime int `json:"runtime"`
Entity int `json:"entity"`
Policy int `json:"policy"`
SkipPolicy bool `json:"skip_policy"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
SkipPolicy bool `json:"skip_policy"`
SkipPolicy bool `json:"skip_policy,omitempty"`

The key manager settings configured in the policy can now be tested on non-SGX
builds as well. This will simplify tests, as default values can be configured
in the test fixtures (e.g. master secret rotation period).
@peternose peternose force-pushed the peternose/internal/allow_policies_in_insecure_builds branch from 4ba2bc0 to 2490d26 Compare March 8, 2023 12:03
@peternose peternose enabled auto-merge March 8, 2023 12:03
@peternose peternose merged commit 353dc1e into master Mar 8, 2023
@peternose peternose deleted the peternose/internal/allow_policies_in_insecure_builds branch March 8, 2023 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:testing Category: testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants