フィーチャーverify-mr-enclave-enableにおける抜け漏れ対応 - #657
Conversation
cipepser
left a comment
There was a problem hiding this comment.
default-featuresがfalseじゃないときにビルドできない気がしました。
例えば、frame-enclaveではframe-runtimeが常にdefault-features = falseになってしまっているので、いざverify-mr-enclave-enableを有効にしたいときに
frame-enclave→verify-mr-enclave-enable有効
frame-runtime→verify-mr-enclave-enable無効
となって整合性が取れなくなってしまうかと。
具体的な解決策としては、frame-enclaveのCargo.tomlを以下のようにする感じですかね〜
verify-mr-enclave-enable = [
"frame-runtime/verify-mr-enclave-enable"
]
※frame-enclave以外もあるので、全体的に整合性取る必要あり
|
確かに例のあのリポジトリの方では下記のような形でOn/Offをしてました Cargo.toml |
cipepser
left a comment
There was a problem hiding this comment.
質問
tests/integration以下はfeaturesを設定しない設計ですかね?
対応漏れ
example/encrypted-sql-ops/enclave/Cargo.tomlmodules/encrypted-sql-ops-enclave/Cargo.toml- tests.shのmakeで
FEATURE_FLAGS
| frame-config = { path = "../config", default-features = false, features = ["sgx"] } | ||
| frame-common = { path = "../common", default-features = false, features = ["sgx"] } | ||
| frame-mra-tls = { path = "../../frame/mra-tls" } | ||
| frame-mra-tls = { path = "../../frame/mra-tls", default-features = false } |
There was a problem hiding this comment.
features に /verify-mr-enclave-enable が必要そう
| frame-treekem = { path = "../treekem", default-features = false, optional = true } | ||
| frame-mra-tls = { path = "../mra-tls", optional = true } | ||
| frame-mra-tls = { path = "../mra-tls", default-features = false, optional = true } |
There was a problem hiding this comment.
treekemとmra-tls、featuresに設定必要ですね
tests/integrationの方は元々 |
Issueへのリンク
やったこと
やらないこと
動作検証
参考