-
Notifications
You must be signed in to change notification settings - Fork 4
Platform Configuration Registers Open Config Standard based proto definitions for External Vendors #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mihirpitale-googler
merged 7 commits into
openconfig:main
from
mihirpitale-googler:main
Apr 29, 2026
Merged
Platform Configuration Registers Open Config Standard based proto definitions for External Vendors #11
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e400253
PCR (platform configuration register) Open-Config Standard based Prot…
mihirpitale-googler eab6e35
Platform Configuration Registers Open Config Standard based proto def…
mihirpitale-googler ede9c2a
addressing wording changes
mihirpitale-googler 8ec0f18
adding bootloaderversion repeated pcr values and creating struct
mihirpitale-googler 968c49d
adding comments above attributes
mihirpitale-googler b4ce830
fixing syntax and fetchpcr naming for rpc
mihirpitale-googler f0d429b
resolving comments and fixing proto
mihirpitale-googler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,131 @@ | ||
| // Copyright 2023 Google Inc. All Rights Reserved. | ||
| // | ||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // you may not use this file except in compliance with the License. | ||
| // You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, software | ||
| // distributed under the License is distributed on an "AS IS" B1IS, | ||
|
mihirpitale-googler marked this conversation as resolved.
Outdated
|
||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
| // | ||
| syntax = "proto3"; | ||
|
|
||
| package openconfig.pcrservice; | ||
|
|
||
| import "github.com/openconfig/attestz/proto/common_definitions.proto"; | ||
|
mihirpitale-googler marked this conversation as resolved.
Outdated
|
||
|
|
||
| import "google/protobuf/timestamp.proto"; | ||
|
|
||
| option go_package = "github.com/openconfig/pcrservice"; | ||
|
|
||
|
|
||
| // Enumerations | ||
|
mihirpitale-googler marked this conversation as resolved.
|
||
| enum HashAlgo { | ||
|
mihirpitale-googler marked this conversation as resolved.
|
||
| HASH_ALGO_UNSPECIFIED = 0; | ||
| HASH_ALGO_SHA1 = 1; | ||
|
mihirpitale-googler marked this conversation as resolved.
|
||
| HASH_ALGO_SHA256 = 2; | ||
| HASH_ALGO_SHA384 = 3; | ||
| HASH_ALGO_SHA512 = 4; | ||
| } | ||
|
|
||
| enum RootOfTrustForMeasurement { | ||
| UNSPECIFIED = 0; | ||
| TPM_1.2_PCR = 1; | ||
|
mihirpitale-googler marked this conversation as resolved.
Outdated
|
||
| TPM_2.0_PCR = 2; | ||
| } | ||
|
|
||
| enum BootStage { | ||
|
mihirpitale-googler marked this conversation as resolved.
|
||
| SRTM = 0; | ||
| BIOS = 1; | ||
| BIOS_CONFIGURATION = 2; | ||
| EMBEDDED_OPTION_ROMS = 3; | ||
| PLATFORM_EXTENSIONS = 4; | ||
| PLATFORM_INITIALIZATION_DRIVERS = 5; | ||
| PLATFORM_CONFIGURATIONS = 6; | ||
| UEFI_APPLICATIONS = 7; | ||
| UEFI_APPLICATION_CONFIGURATION = 8; | ||
| PARTITION_TABLE = 9; | ||
| BOOT_MANAGER = 10; | ||
| BOOT_CONFIGURATION = 11; // Includes critical boot security configuration such as secure boot. | ||
| BOOT_LOADER = 12; | ||
| KERNEL_CONFIGURATION = 13; | ||
| KERNEL_COMMAND_LINE = 14; | ||
| KERNEL = 15; | ||
| OS_CONFIGURATION = 16; | ||
| ROOT_FILESYSTEM = 17; | ||
| OS_EXTENSION = 18; | ||
| CONTAINER_IMAGES = 19; | ||
| OTHER = 20; | ||
| } | ||
| message PcrValues { | ||
|
mihirpitale-googler marked this conversation as resolved.
|
||
| int32 pcr_index = 1; // Refers to the PCR index value | ||
| repeated BootStage boot_stage = 2; // Refers to a quick reference name to define PCR measurement content associated with the pcr index. eg - UEFI Boot Manager Code=pcr_4 | ||
|
mihirpitale-googler marked this conversation as resolved.
Outdated
|
||
| bytes pcr_values = 3; // Refers to set of PCR raw bytes | ||
| } | ||
|
|
||
| // Get RPC Messages | ||
| message GetRequest { | ||
| string image_version = 1; // Refers to the the version of the software/firmware | ||
|
mihirpitale-googler marked this conversation as resolved.
Outdated
|
||
| string hardware_model = 2; // Refers to hardware model for the collected PCR | ||
| string HashAlgo hash_algorithm = 4; // Hash algorithm of the selected PCR bank. | ||
|
mihirpitale-googler marked this conversation as resolved.
Outdated
|
||
| } | ||
|
|
||
| message GetResponse { | ||
| string image_version = 1; // Refers to the the version of the software/firmware | ||
|
mihirpitale-googler marked this conversation as resolved.
Outdated
|
||
| string hardware_model = 2; // Refers to hardware model for the collected PCR | ||
| HashAlgo hash_algorithm = 4; // Hash algorithm of the selected PCR bank. | ||
|
mihirpitale-googler marked this conversation as resolved.
Outdated
|
||
| RootOfTrustMeasurement root_of_trust = 1; // Refers to the TPM (Trusted Platform Module) version supported by each Control Card | ||
|
mihirpitale-googler marked this conversation as resolved.
Outdated
|
||
| google.protobuf.Timestamp timestamp = 2; // Time of PCR Artifact Collection | ||
|
mihirpitale-googler marked this conversation as resolved.
Outdated
|
||
| map<int32, PcrValues> pcr_values = 4; // | ||
| } | ||
|
|
||
| // Fetch RPC Messages | ||
|
|
||
| // Request for fetching all known hardware models. | ||
| message FetchHardwareModelsRequest {} | ||
|
|
||
| // Response containing a list of known hardware model strings. | ||
| message FetchHardwareModelsResponse { | ||
| repeated string hardware_models = 1; // List of valid hardware model strings (e.g., "A9K-400-LC", "Nokia-7750") | ||
| } | ||
|
|
||
| // Request for fetching all known bootloader versions for a specific hardware model. | ||
| message FetchBootLoaderVersionsRequest { | ||
|
mihirpitale-googler marked this conversation as resolved.
|
||
| string hardware_model = 1; // The hardware model to fetch bootloader versions for. | ||
| } | ||
|
|
||
| // Response containing a list of known bootloader version strings. | ||
| message FetchBootLoaderVersionsResponse { | ||
| repeated string bootloader_versions = 1; // List of valid bootloader version strings for the specified hardware model. | ||
| } | ||
|
|
||
| // Request for fetching all known software versions for a specific hardware model. | ||
| message FetchSoftwareVersionsRequest { | ||
|
mihirpitale-googler marked this conversation as resolved.
|
||
| string hardware_model = 1; // The hardware model to fetch software versions for. | ||
| } | ||
|
|
||
| // Response containing a list of known software version strings. | ||
| message FetchSoftwareVersionsResponse { | ||
| repeated string software_versions = 1; // List of valid software version strings (e.g., "7.5.1", "XR-7.1.2") for the specified hardware model. | ||
| } | ||
|
|
||
|
|
||
| // Service Definition with RPCs | ||
| service SecurityService { | ||
|
|
||
| // Retrieves the PCR values for a specific software/hardware/bootloader combination. | ||
| rpc GetPCR(GetRequest) returns (GetResponse); | ||
|
mihirpitale-googler marked this conversation as resolved.
Outdated
|
||
|
|
||
| // Fetches a list of all known hardware model strings supported by the vendor service. | ||
| rpc FetchHardwareModels(FetchHardwareModelsRequest) returns (FetchHardwareModelsResponse); | ||
|
|
||
| // Fetches a list of known bootloader version strings for a given hardware model. | ||
| rpc FetchBootLoaderVersions(FetchBootLoaderVersionsRequest) returns (FetchBootLoaderVersionsResponse); | ||
|
|
||
| // Fetches a list of known software version strings for a given hardware model. | ||
| rpc FetchSoftwareVersions(FetchSoftwareVersionsRequest) returns (FetchSoftwareVersionsResponse); | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.