Skip to content

Commit 67a22cc

Browse files
authored
Merge pull request #584 from ionut-arm/audit-update
Updates for Release Candidate 2
2 parents 796a6a2 + 09f2217 commit 67a22cc

File tree

16 files changed

+132
-90
lines changed

16 files changed

+132
-90
lines changed

.cargo/audit.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[advisories]
2-
ignore = []
2+
ignore = ["RUSTSEC-2020-0159", # Issue has been documented here: https://github.com/parallaxsecond/parsec/security/advisories/GHSA-45w3-v3g4-54pm
3+
"RUSTSEC-2020-0071"] # Issue has been documented here: https://github.com/parallaxsecond/parsec/security/advisories/GHSA-45w3-v3g4-54pm
34
informational_warnings = ["unmaintained"] # warn for categories of informational advisories
45
severity_threshold = "low" # CVSS severity ("none", "low", "medium", "high", "critical")
56

@@ -19,7 +20,6 @@ show_tree = true # Show inverse dependency trees along with advisories
1920

2021
# Target Configuration
2122
[target]
22-
arch = "x86_64" # Ignore advisories for CPU architectures other than this one
2323
os = "linux" # Ignore advisories for operating systems other than this one
2424

2525
[packages]

Cargo.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pkcs11-provider = ["cryptoki", "picky-asn1-der", "picky-asn1", "picky-asn1-x509"
7070
tpm-provider = ["tss-esapi", "picky-asn1-der", "picky-asn1", "picky-asn1-x509", "hex"]
7171
cryptoauthlib-provider = ["rust-cryptoauthlib"]
7272
trusted-service-provider = ["psa-crypto", "bindgen", "prost-build", "prost"]
73-
all-providers = ["tpm-provider", "pkcs11-provider", "mbed-crypto-provider", "cryptoauthlib-provider", "trusted-service-provider"]
73+
all-providers = ["tpm-provider", "pkcs11-provider", "mbed-crypto-provider", "trusted-service-provider"]
7474

7575
# Authenticators
7676
direct-authenticator = []

SECURITY.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,23 @@ disclosure of security problems are greatly appreciated and your contributions w
99
Currently only the most recent version of the Parsec service is eligible for patching. This could
1010
change in the future.
1111

12-
| Version | Supported |
13-
|-----------------|-----------|
14-
| 0.7.0 ||
15-
| 0.6.0 and lower ||
12+
| Version | Supported |
13+
|------------------|-----------|
14+
| 0.7.0 and higher ||
15+
| 0.6.0 and lower ||
16+
17+
## Our disclosure policy
18+
19+
All security vulnerabilities affecting the Parsec service - including those reported using the steps
20+
highlighted below, those discovered during routine testing, and those found in our dependency tree
21+
either through `cargo-audit` or otherwise - will receive [security
22+
advisories](https://github.com/parallaxsecond/parsec/security/advisories) in a timely manner. The
23+
advisories should include sufficient information about the cause, effect, and possible mitigations
24+
for the vulnerability. If any information is missing, or you would like to raise a question about
25+
the advisories, please open an issue in [our repo](https://github.com/parallaxsecond/parsec).
26+
27+
Efforts to mitigate for the reported vulnerabilities will be tracked using Github issues linked to
28+
the corresponding advisories.
1629

1730
## Reporting a vulnerability
1831

e2e_tests/docker_image/parsec-service-test-cross-compile.Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,26 @@
22
# SPDX-License-Identifier: Apache-2.0
33
FROM ghcr.io/parallaxsecond/parsec-service-test-all
44

5+
# Install aarch64-none-linux-gnu cross compilation toolchain
6+
RUN wget https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz?revision=61c3be5d-5175-4db6-9030-b565aae9f766 -O aarch64-gcc.tar.xz
7+
RUN tar --strip-components=1 -C /usr/ -xvf aarch64-gcc.tar.xz
8+
RUN rm aarch64-gcc.tar.xz
9+
10+
# Install Trusted Services lib compiled for aarch64
11+
# Setup git config for patching dependencies
12+
RUN git config --global user.email "[email protected]"
13+
RUN git config --global user.name "Parsec Team"
14+
RUN git clone https://git.trustedfirmware.org/TS/trusted-services.git --branch integration \
15+
&& cd trusted-services \
16+
&& git reset --hard 389b50624f25dae860bbbf8b16f75b32f1589c8d
17+
# Install correct python dependencies
18+
RUN pip3 install -r trusted-services/requirements.txt
19+
RUN cd trusted-services/deployments/libts/arm-linux/ \
20+
&& cmake . \
21+
&& make \
22+
&& cp libts.so* /usr/local/lib/
23+
RUN rm -rf trusted-services
24+
525
# Install cross-compilers
626
RUN apt install -y gcc-multilib
727
RUN apt install -y gcc-arm-linux-gnueabihf

e2e_tests/provider_cfg/all/config.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,13 @@ user_pin = "123456"
4040
# The slot_number mandatory field is going to replace the following line with a valid number
4141
# slot_number
4242

43-
[[provider]]
44-
provider_type = "CryptoAuthLib"
45-
key_info_manager = "sqlite-manager"
46-
device_type = "always-success"
47-
iface_type = "test-interface"
43+
44+
# CAL provider and hardware abstraction crate are unmaintained; See #585
45+
# [[provider]]
46+
# provider_type = "CryptoAuthLib"
47+
# key_info_manager = "sqlite-manager"
48+
# device_type = "always-success"
49+
# iface_type = "test-interface"
4850
# wake_delay = 1500
4951
# rx_retries = 20
5052
# # i2c parameters for i2c-pseudo proxy

e2e_tests/provider_cfg/all/on-disk-kim-all-providers.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ user_pin = "123456"
4040
# The slot_number mandatory field is going to replace the following line with a valid number
4141
# slot_number
4242

43-
[[provider]]
44-
provider_type = "CryptoAuthLib"
45-
key_info_manager = "on-disk-manager"
46-
device_type = "always-success"
47-
iface_type = "test-interface"
43+
# CAL provider and hardware abstraction crate are unmaintained; See #585
44+
# [[provider]]
45+
# provider_type = "CryptoAuthLib"
46+
# key_info_manager = "on-disk-manager"
47+
# device_type = "always-success"
48+
# iface_type = "test-interface"
4849
# wake_delay = 1500
4950
# rx_retries = 20
5051
# # i2c parameters for i2c-pseudo proxy

e2e_tests/tests/all_providers/config/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ fn list_providers() {
6262
Uuid::parse_str("1c1139dc-ad7c-47dc-ad6b-db6fdb466552").unwrap(), // Mbed crypto provider
6363
Uuid::parse_str("1e4954a4-ff21-46d3-ab0c-661eeb667e1d").unwrap(), // Tpm provider
6464
Uuid::parse_str("30e39502-eba6-4d60-a4af-c518b7f5e38f").unwrap(), // Pkcs11 provider
65-
Uuid::parse_str("b8ba81e2-e9f7-4bdd-b096-a29d0019960c").unwrap(), // CryptoAuthLib provider
65+
// CAL provider and hardware abstraction crate are unmaintained; See #585
66+
// Uuid::parse_str("b8ba81e2-e9f7-4bdd-b096-a29d0019960c").unwrap(), // CryptoAuthLib provider
6667
Uuid::parse_str("47049873-2a43-4845-9d72-831eab668784").unwrap(), // Core provider
6768
]
6869
);
@@ -78,7 +79,8 @@ fn list_providers() {
7879
Uuid::parse_str("30e39502-eba6-4d60-a4af-c518b7f5e38f").unwrap(), // Pkcs11 provider
7980
Uuid::parse_str("1c1139dc-ad7c-47dc-ad6b-db6fdb466552").unwrap(), // Mbed crypto provider
8081
Uuid::parse_str("1e4954a4-ff21-46d3-ab0c-661eeb667e1d").unwrap(), // Tpm provider
81-
Uuid::parse_str("b8ba81e2-e9f7-4bdd-b096-a29d0019960c").unwrap(), // CryptoAuthLib provider
82+
// CAL provider and hardware abstraction crate are unmaintained; See #585
83+
// Uuid::parse_str("b8ba81e2-e9f7-4bdd-b096-a29d0019960c").unwrap(), // CryptoAuthLib provider
8284
Uuid::parse_str("47049873-2a43-4845-9d72-831eab668784").unwrap(), // Core provider
8385
]
8486
);

e2e_tests/tests/all_providers/config/tomls/list_providers_1.toml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,15 @@ user_pin = "123456"
3434
# The slot_number mandatory field is going to replace the following line with a valid number
3535
# slot_number
3636

37-
[[provider]]
38-
provider_type = "CryptoAuthLib"
39-
key_info_manager = "sqlite-manager"
40-
device_type = "always-success"
41-
iface_type = "test-interface"
42-
wake_delay = 1500
43-
rx_retries = 20
44-
# i2c parameters for i2c-pseudo proxy
45-
slave_address = 0xc0
46-
bus = 1
47-
baud = 400000
37+
# CAL provider and hardware abstraction crate are unmaintained; See #585
38+
# [[provider]]
39+
# provider_type = "CryptoAuthLib"
40+
# key_info_manager = "sqlite-manager"
41+
# device_type = "always-success"
42+
# iface_type = "test-interface"
43+
# wake_delay = 1500
44+
# rx_retries = 20
45+
# # i2c parameters for i2c-pseudo proxy
46+
# slave_address = 0xc0
47+
# bus = 1
48+
# baud = 400000

e2e_tests/tests/all_providers/config/tomls/list_providers_2.toml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,15 @@ key_info_manager = "sqlite-manager"
3434
tcti = "mssim"
3535
owner_hierarchy_auth = "tpm_pass"
3636

37-
[[provider]]
38-
provider_type = "CryptoAuthLib"
39-
key_info_manager = "sqlite-manager"
40-
device_type = "always-success"
41-
iface_type = "test-interface"
42-
wake_delay = 1500
43-
rx_retries = 20
44-
# i2c parameters for i2c-pseudo proxy
45-
slave_address = 0xc0
46-
bus = 1
47-
baud = 400000
37+
# CAL provider and hardware abstraction crate are unmaintained; See #585
38+
# [[provider]]
39+
# provider_type = "CryptoAuthLib"
40+
# key_info_manager = "sqlite-manager"
41+
# device_type = "always-success"
42+
# iface_type = "test-interface"
43+
# wake_delay = 1500
44+
# rx_retries = 20
45+
# # i2c parameters for i2c-pseudo proxy
46+
# slave_address = 0xc0
47+
# bus = 1
48+
# baud = 400000

0 commit comments

Comments
 (0)