-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HardwareManifest proto file and plugin updates for Platform Certifica…
…te 2.0 (#115) * Creating HardwareManifest proto file
- Loading branch information
1 parent
4971aed
commit 9704571
Showing
34 changed files
with
879 additions
and
1,634 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: .NET build HardwareManifest | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 6.0.x | ||
- name: Restore dependencies | ||
working-directory: dotnet/HardwareManifestPlugin | ||
run: dotnet restore | ||
- name: Build | ||
working-directory: dotnet/HardwareManifestPlugin | ||
run: dotnet build | ||
- name: Test | ||
working-directory: dotnet/HardwareManifestPlugin | ||
run: dotnet test | ||
- name: Pack | ||
working-directory: dotnet/HardwareManifestPlugin | ||
run: dotnet pack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: .NET build paccor_scripts | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 6.0.x | ||
- name: Restore dependencies | ||
working-directory: dotnet/paccor_scripts | ||
run: dotnet restore | ||
- name: Build | ||
working-directory: dotnet/paccor_scripts | ||
run: dotnet build | ||
- name: Test | ||
working-directory: dotnet/paccor_scripts | ||
run: dotnet test | ||
- name: Pack | ||
working-directory: dotnet/paccor_scripts | ||
run: dotnet pack | ||
- name: Publish | ||
working-directory: dotnet/paccor_scripts/paccor_scripts | ||
run: | | ||
dotnet publish -r linux-x64 -c Release | ||
dotnet publish -r win-x64 -c Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 83 additions & 0 deletions
83
dotnet/HardwareManifestPlugin/HardwareManifestPlugin/Resources/HardwareManifest.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
syntax = "proto3"; | ||
|
||
import "PlatformCertificateIM.proto"; | ||
|
||
package HardwareManifestProto; | ||
|
||
message ManifestV3 { | ||
PlatformCertificateProto.PlatformIdentifierOtherName platformIdentifier = 1; | ||
PlatformCertificateProto.PlatformConfiguration platformConfiguration = 2; | ||
} | ||
|
||
message ManifestV2 { | ||
SanPlatformFields PLATFORM = 1; // Subject Alt Name Platform Fields | ||
repeated ComponentIdentifier COMPONENTS = 2; | ||
repeated Property PROPERTIES = 3; | ||
UriReference COMPONENTSURI = 4; | ||
UriReference PROPERTIESURI = 5; | ||
} | ||
|
||
message SanPlatformFields { | ||
string PLATFORMMANUFACTURERSTR = 1; | ||
string PLATFORMMODEL = 2; | ||
string PLATFORMVERSION = 3; | ||
string PLATFORMSERIAL = 4; | ||
string PLATFORMMANUFACTURERID = 5; | ||
} | ||
|
||
message ComponentIdentifier { | ||
ComponentClass COMPONENTCLASS = 1; | ||
string MANUFACTURER = 2; | ||
string MODEL = 3; | ||
string SERIAL = 4; | ||
string REVISION = 5; | ||
string MANUFACTURERID = 6; | ||
string FIELDREPLACEABLE = 7; // true or false | ||
repeated Address ADDRESSES = 8; | ||
string STATUS = 9; // ADDED, MODIFIED, or REMOVED | ||
CertificateIdentifier PLATFORMCERT = 10; | ||
UriReference COMPONENTPLATFORMCERTURI = 11; | ||
CertificateIdentifier CERTIFICATEIDENTIFIER = 12; | ||
} | ||
|
||
message Property { | ||
string PROPERTYNAME = 1; | ||
string PROPERTYVALUE = 2; | ||
string STATUS = 3; | ||
} | ||
|
||
message ComponentClass { | ||
string COMPONENTCLASSREGISTRY = 1; // OID | ||
string COMPONENTCLASSVALUE = 2; // Hex String | ||
} | ||
|
||
message Address { | ||
oneof ADDRESSES_oneof { | ||
string BLUETOOTHMAC = 1; | ||
string ETHERNETMAC = 2; | ||
string WLANMAC = 3; | ||
} | ||
} | ||
|
||
message HashedCertificateIdentifier { | ||
string HASHALG = 1; // OID | ||
string HASHVALUE = 2; // base64 encode the binary value | ||
} | ||
|
||
message GenericCertificateIdentifier { | ||
string ISSUER = 1; | ||
string SERIAL = 2; | ||
} | ||
|
||
message CertificateIdentifier { | ||
HashedCertificateIdentifier ATTRIBUTECERTIDENTIFIER = 1; | ||
GenericCertificateIdentifier GENERICCERTIDENTIFIER = 2; | ||
HashedCertificateIdentifier HASHEDCERTIDENTIFIER = 3; | ||
} | ||
|
||
message UriReference { | ||
string UNIFORMRESOURCEIDENTIFIER = 1; | ||
string HASHALG = 2; // OID | ||
string HASHVALUE = 3; // base64 encode the binary value | ||
} | ||
|
Oops, something went wrong.