SHA256
1
0
forked from pool/parsec

Accepting request 882567 from home:Guillaume_G:branches:security

- Make 'parsec' user part of 'tss' group to access /dev/tpm* devices

- Update to 0.7.2:
  * Changelog: https://github.com/parallaxsecond/parsec/compare/0.6.0...0.7.2

- Recommends 'softhsm' as it is used by PKCS#11 backend
- Recommends 'opensc' as it is used to initialize HSM keys (PKCS#11 backend)
- Add PKCS#11 template (disabled) in config.toml
- Disable Tpm backend by default in config.toml

OBS-URL: https://build.opensuse.org/request/show/882567
OBS-URL: https://build.opensuse.org/package/show/security/parsec?expand=0&rev=5
This commit is contained in:
Guillaume GARDET 2021-04-01 13:00:44 +00:00 committed by Git OBS Bridge
parent 55c56f76c2
commit b023bfab1c
9 changed files with 58 additions and 26 deletions

View File

@ -1,5 +1,6 @@
<services> <services>
<service name="cargo_vendor" mode="disabled"> <service name="cargo_vendor" mode="disabled">
<param name="compression">xz</param> <param name="compression">xz</param>
<param name="srcdir">parsec-0.7.2</param>
</service> </service>
</services> </services>

View File

@ -3,6 +3,3 @@ replace-with = "vendored-sources"
[source.vendored-sources] [source.vendored-sources]
directory = "vendor" directory = "vendor"
[term]
verbose = true

View File

@ -1,4 +1,4 @@
# See a more complete example in /usr/shar/doc/parsec/config.toml # See a more complete example in /usr/share/doc/packages/parsec/config.toml
[core_settings] [core_settings]
[listener] [listener]
@ -13,12 +13,19 @@ name = "on-disk-manager"
manager_type = "OnDisk" manager_type = "OnDisk"
[[provider]] [[provider]]
# provider_type: `MbedCrypto`, `Pkcs11`, `Tpm`
provider_type = "MbedCrypto" provider_type = "MbedCrypto"
key_info_manager = "on-disk-manager" key_info_manager = "on-disk-manager"
[[provider]] #[[provider]]
provider_type = "Tpm" #provider_type = "Pkcs11"
key_info_manager = "on-disk-manager" #key_info_manager = "on-disk-manager"
tcti = "device:/dev/tpmrm0" #library_path = "/usr/lib64/pkcs11/libsofthsm2.so"
owner_hierarchy_auth = "" #slot_number = 123456789
#user_pin = "123456"
#software_public_operations = false
#[[provider]]
#provider_type = "Tpm"
#key_info_manager = "on-disk-manager"
#tcti = "device:/dev/tpmrm0"
#owner_hierarchy_auth = ""

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0c2585eb41c0667851223c99280142e05924338b937054967516df19a9c3e6dc
size 815830

3
parsec-0.7.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:baa114fe0cadffccca3e8a29702c8482691e5ad44e823e317e04d33e7ef41c47
size 837424

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Thu Apr 1 10:19:21 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Make 'parsec' user part of 'tss' group to access /dev/tpm* devices
-------------------------------------------------------------------
Wed Mar 31 16:02:31 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Update to 0.7.2:
* Changelog: https://github.com/parallaxsecond/parsec/compare/0.6.0...0.7.2
-------------------------------------------------------------------
Tue Mar 30 13:20:44 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Recommends 'softhsm' as it is used by PKCS#11 backend
- Recommends 'opensc' as it is used to initialize HSM keys (PKCS#11 backend)
- Add PKCS#11 template (disabled) in config.toml
- Disable Tpm backend by default in config.toml
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Nov 13 14:19:05 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org> Fri Nov 13 14:19:05 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>

View File

@ -1,7 +1,7 @@
# #
# spec file for package parsec # spec file for package parsec
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -15,12 +15,13 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%global rustflags '-Clink-arg=-Wl,-z,relro,-z,now' %global rustflags '-Clink-arg=-Wl,-z,relro,-z,now'
# Features available: mbed-crypto-provider, pkcs11-provider, tpm-provider, all-providers # Features available: mbed-crypto-provider, pkcs11-provider, tpm-provider, all-providers
%define features "all-providers" %define features "all-providers"
%{?systemd_ordering} %{?systemd_ordering}
Name: parsec Name: parsec
Version: 0.6.0 Version: 0.7.2
Release: 0 Release: 0
Summary: Platform AbstRaction for SECurity Summary: Platform AbstRaction for SECurity
License: Apache-2.0 License: Apache-2.0
@ -36,13 +37,19 @@ BuildRequires: cargo
BuildRequires: clang-devel BuildRequires: clang-devel
BuildRequires: cmake BuildRequires: cmake
BuildRequires: llvm-devel BuildRequires: llvm-devel
BuildRequires: protobuf-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: pkgconfig(tss2-esys) >= 2.3.3 BuildRequires: protobuf-devel
BuildRequires: python3 BuildRequires: python3
BuildRequires: rust-packaging BuildRequires: rust-packaging
BuildRequires: sysuser-tools BuildRequires: sysuser-tools
BuildRequires: pkgconfig(tss2-esys) >= 2.3.3
# opensc is used to initialize HSM keys (PKCS#11 backend)
Recommends: opensc
# softhsm is used by PKCS#11 backend
Recommends: softhsm
%sysusers_requires %sysusers_requires
# /dev/tpm* are owned by tss user
Requires(pre): system-user-tss
ExcludeArch: armv6l armv6hl ExcludeArch: armv6l armv6hl
%description %description
@ -51,13 +58,13 @@ a common API to hardware security and cryptographic services in a platform-agnos
This abstraction layer keeps workloads decoupled from physical platform details, This abstraction layer keeps workloads decoupled from physical platform details,
enabling cloud-native delivery flows within the data center and at the edge. enabling cloud-native delivery flows within the data center and at the edge.
%prep %prep
%setup -qa1 %setup -qa1
mkdir .cargo rm -rf .cargo && mkdir .cargo
cp %{SOURCE2} .cargo/config cp %{SOURCE2} .cargo/config
sed -i -e 's#default = \[\]##' Cargo.toml # Enable all providers
echo 'default = ["all-providers"]' >> Cargo.toml sed -i -e 's#default = \["unix-peer-credentials-authenticator"\]##' Cargo.toml
echo 'default = ["unix-peer-credentials-authenticator", "all-providers"]' >> Cargo.toml
%build %build
export PROTOC=%{_bindir}/protoc export PROTOC=%{_bindir}/protoc

View File

@ -4,3 +4,4 @@ g parsec-clients -
g tss - g tss -
u parsec - "PARSEC" /etc/parsec u parsec - "PARSEC" /etc/parsec
m parsec lock m parsec lock
m parsec tss

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:3e8a9595e1622a9684ee690788120edbfa8cbf6dd7794eb13f0824bae547c9f1 oid sha256:52db05370be4cd68810011da087965bd267731e298df1620667179225eecb505
size 15581964 size 27078988