зеркало из https://github.com/microsoft/CCF.git
Switch to Open Enclave 0.17.0 rc1 (#2701)
This commit is contained in:
Родитель
1795848fde
Коммит
5d8f46a92c
|
@ -7,7 +7,7 @@ trigger:
|
|||
|
||||
jobs:
|
||||
- job: build_and_publish_docs
|
||||
container: ccfciteam/ccf-ci:oe0.16.1
|
||||
container: ccfciteam/ccf-ci:oe0.17.0-rc1
|
||||
pool:
|
||||
vmImage: ubuntu-18.04
|
||||
|
||||
|
|
|
@ -27,11 +27,11 @@ schedules:
|
|||
resources:
|
||||
containers:
|
||||
- container: nosgx
|
||||
image: ccfciteam/ccf-ci:oe0.16.1
|
||||
image: ccfciteam/ccf-ci:oe0.17.0-rc1
|
||||
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --cap-add SYS_PTRACE -v /dev/shm:/tmp/ccache -v /lib/modules:/lib/modules:ro
|
||||
|
||||
- container: sgx
|
||||
image: ccfciteam/ccf-ci:oe0.16.1
|
||||
image: ccfciteam/ccf-ci:oe0.17.0-rc1
|
||||
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --device /dev/sgx:/dev/sgx -v /dev/shm:/tmp/ccache -v /lib/modules:/lib/modules:ro
|
||||
|
||||
variables:
|
||||
|
|
|
@ -23,11 +23,11 @@ schedules:
|
|||
resources:
|
||||
containers:
|
||||
- container: nosgx
|
||||
image: ccfciteam/ccf-ci:oe0.16.1
|
||||
image: ccfciteam/ccf-ci:oe0.17.0-rc1
|
||||
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --cap-add SYS_PTRACE -v /dev/shm:/tmp/ccache
|
||||
|
||||
- container: sgx
|
||||
image: ccfciteam/ccf-ci:oe0.16.1
|
||||
image: ccfciteam/ccf-ci:oe0.17.0-rc1
|
||||
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --device /dev/sgx:/dev/sgx -v /dev/shm:/tmp/ccache
|
||||
|
||||
jobs:
|
||||
|
|
|
@ -9,7 +9,7 @@ on:
|
|||
jobs:
|
||||
checks:
|
||||
runs-on: ubuntu-18.04
|
||||
container: ccfciteam/ccf-ci:oe0.16.1
|
||||
container: ccfciteam/ccf-ci:oe0.17.0-rc1
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
|
|
@ -16,7 +16,7 @@ pr:
|
|||
resources:
|
||||
containers:
|
||||
- container: sgx
|
||||
image: ccfciteam/ccf-ci:oe0.16.1
|
||||
image: ccfciteam/ccf-ci:oe0.17.0-rc1
|
||||
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --device /dev/sgx:/dev/sgx -v /dev/shm:/tmp/ccache
|
||||
|
||||
jobs:
|
||||
|
|
|
@ -21,7 +21,7 @@ schedules:
|
|||
resources:
|
||||
containers:
|
||||
- container: sgx
|
||||
image: ccfciteam/ccf-ci:oe0.16.1
|
||||
image: ccfciteam/ccf-ci:oe0.17.0-rc1
|
||||
options: --publish-all --cap-add NET_ADMIN --cap-add NET_RAW --device /dev/sgx:/dev/sgx -v /dev/shm:/tmp/ccache
|
||||
|
||||
jobs:
|
||||
|
|
|
@ -30,7 +30,7 @@ if((NOT ${IS_VALID_TARGET}))
|
|||
endif()
|
||||
|
||||
# Find OpenEnclave package
|
||||
find_package(OpenEnclave 0.16.1 CONFIG REQUIRED)
|
||||
find_package(OpenEnclave 0.17.0 CONFIG REQUIRED)
|
||||
# As well as pulling in openenclave:: targets, this sets variables which can be
|
||||
# used for our edge cases (eg - for virtual libraries). These do not follow the
|
||||
# standard naming patterns, for example use OE_INCLUDEDIR rather than
|
||||
|
|
|
@ -20,7 +20,7 @@ endif()
|
|||
|
||||
# CPack variables for Debian packages
|
||||
set(CPACK_DEBIAN_PACKAGE_DEPENDS
|
||||
"open-enclave (>=0.16.1), libuv1 (>= 1.18.0), libc++1-8, libc++abi1-8"
|
||||
"open-enclave (>=0.16.9), libuv1 (>= 1.18.0), libc++1-8, libc++abi1-8"
|
||||
)
|
||||
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
oe_ver: "0.16.1"
|
||||
oe_ver: "0.17.0-rc1"
|
||||
# Usually the same, except for rc, where ver is -rc and ver_ is _rc
|
||||
oe_ver_: "0.16.1"
|
||||
oe_ver_: "0.17.0_rc1"
|
||||
|
||||
# Source install
|
||||
workspace: "/tmp/"
|
||||
|
|
|
@ -228,10 +228,12 @@ namespace ccf
|
|||
if (expected_claim_val_hex != actual_claim_val_hex)
|
||||
{
|
||||
LOG_FAIL_FMT(
|
||||
"{}: JWKS kid {} has a mismatching {} SGX claim",
|
||||
"{}: JWKS kid {} has a mismatching {} SGX claim: {} != {}",
|
||||
log_prefix,
|
||||
jwk.kid,
|
||||
claim_name);
|
||||
claim_name,
|
||||
expected_claim_val_hex,
|
||||
actual_claim_val_hex);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -112,11 +112,30 @@ def test_jwt_without_key_policy(network, args):
|
|||
return network
|
||||
|
||||
|
||||
def make_attested_cert(network, args):
|
||||
keygen = os.path.join(args.binary_dir, "keygenerator.sh")
|
||||
oeutil = os.path.join(args.oe_binary, "oeutil")
|
||||
infra.proc.ccall(
|
||||
keygen, "--name", "attested", "--gen-enc-key", path=network.common_dir
|
||||
).check_returncode()
|
||||
privk = os.path.join(network.common_dir, "attested_enc_privk.pem")
|
||||
pubk = os.path.join(network.common_dir, "attested_enc_pubk.pem")
|
||||
der = os.path.join(network.common_dir, "oe_cert.der")
|
||||
infra.proc.ccall(
|
||||
oeutil, "generate-evidence", "-f", "cert", privk, pubk, "-o", der
|
||||
).check_returncode()
|
||||
pem = os.path.join(network.common_dir, "oe_cert.pem")
|
||||
infra.proc.ccall(
|
||||
"openssl", "x509", "-inform", "der", "-in", der, "-out", pem
|
||||
).check_returncode()
|
||||
return pem
|
||||
|
||||
|
||||
@reqs.description("JWT with SGX key policy")
|
||||
def test_jwt_with_sgx_key_policy(network, args):
|
||||
primary, _ = network.find_nodes()
|
||||
oe_cert_path = make_attested_cert(network, args)
|
||||
|
||||
oe_cert_path = os.path.join(this_dir, "oe_cert.pem")
|
||||
with open(oe_cert_path) as f:
|
||||
oe_cert_pem = f.read()
|
||||
|
||||
|
@ -125,7 +144,7 @@ def test_jwt_with_sgx_key_policy(network, args):
|
|||
|
||||
matching_key_policy = {
|
||||
"sgx_claims": {
|
||||
"signer_id": "ca9ad7331448980aa28890ce73e433638377f179ab4456b2fe237193193a8d0a",
|
||||
"signer_id": "0db06a8126015c16dcad0f63b5bad4eb031e00fc2d08e2c11cbde3d30071f696",
|
||||
"attributes": "0300000000000000",
|
||||
}
|
||||
}
|
||||
|
@ -200,7 +219,7 @@ def test_jwt_with_sgx_key_policy(network, args):
|
|||
def test_jwt_with_sgx_key_filter(network, args):
|
||||
primary, _ = network.find_nodes()
|
||||
|
||||
oe_cert_path = os.path.join(this_dir, "oe_cert.pem")
|
||||
oe_cert_path = make_attested_cert(network, args)
|
||||
with open(oe_cert_path) as f:
|
||||
oe_cert_pem = f.read()
|
||||
|
||||
|
@ -409,8 +428,9 @@ def run(args):
|
|||
) as network:
|
||||
network.start_and_join(args)
|
||||
network = test_jwt_without_key_policy(network, args)
|
||||
network = test_jwt_with_sgx_key_policy(network, args)
|
||||
network = test_jwt_with_sgx_key_filter(network, args)
|
||||
if args.enclave_type != "virtual":
|
||||
network = test_jwt_with_sgx_key_policy(network, args)
|
||||
network = test_jwt_with_sgx_key_filter(network, args)
|
||||
network = test_jwt_key_auto_refresh(network, args)
|
||||
|
||||
# Check that auto refresh also works on backups
|
||||
|
|
|
@ -1,116 +0,0 @@
|
|||
-----BEGIN CERTIFICATE-----
|
||||
MIIVUTCCFDmgAwIBAgIBATANBgkqhkiG9w0BAQsFADA8MRkwFwYDVQQDDBBPcGVu
|
||||
IEVuY2xhdmUgU0RLMRIwEAYDVQQKDAlPRVNESyBUTFMxCzAJBgNVBAYTAlVTMCAX
|
||||
DTE5MDUwMTAwMDAwMFoYDzIwNTAxMjMxMjM1OTU5WjA8MRkwF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GlpQT09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
|
||||
ADANBgkqhkiG9w0BAQsFAAOCAQEAdB2EcAp3gXfjlZTNN6vKmm5owWWqqk2fqxga
|
||||
2Oq6LvRO5ERKga8x8a8ynNZ49w0v2Hter+Bu5kjTr2fICdev+a8F6KOJB6nje7DE
|
||||
VLHFIfGUkf/GTaryis1VQ6O2qx/hhNT5N81miIf4wr3xvsHkVogDk6kDkYbz7K7t
|
||||
rw1SQ5iP0khU7d9XyyRfLtVdXPm7UocbtggKDoZgVxDUC8p4kNY4Svlg6EaQV8FO
|
||||
K/PdHQmhTZEmRYBv+MTubJUVmN42aBTbYLW3hiORdobUiZQ3/AqGfv3+EDo0IfL8
|
||||
XqKSFbmNW1SVZbQgk0mPyS875kyyGSXeE8Voua4awkCIg1TwDQ==
|
||||
-----END CERTIFICATE-----
|
|
@ -1,32 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the Apache 2.0 License.
|
||||
set -e
|
||||
|
||||
if [ -z "$OE_BUILD_DIR" ]; then
|
||||
echo "OE_BUILD_DIR must be set to the build folder of OE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
OECERT_TOOL="$OE_BUILD_DIR/tests/tools/oecert/host/oecert"
|
||||
OECERT_ENCL="$OE_BUILD_DIR/tests/tools/oecert/enc/oecert_enc"
|
||||
|
||||
if [ ! -f "$OECERT_TOOL" ]; then
|
||||
echo "$OECERT_TOOL not found, did you build with -DBUILD_TESTS=ON?"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -x
|
||||
|
||||
openssl genrsa -out oe_cert_key.priv 2048
|
||||
openssl rsa -in oe_cert_key.priv -outform PEM -pubout -out oe_cert_key.pub
|
||||
|
||||
"$OECERT_TOOL" "$OECERT_ENCL" \
|
||||
--cert oe_cert_key.priv oe_cert_key.pub \
|
||||
--out oe_cert.der
|
||||
|
||||
openssl x509 -inform DER -in oe_cert.der -out oe_cert.pem
|
||||
openssl x509 -inform DER -in oe_cert.der -text
|
||||
echo "New attested certificate written to oe_cert.pem"
|
||||
|
||||
rm oe_cert_key.priv oe_cert_key.pub oe_cert.der
|
Загрузка…
Ссылка в новой задаче