Skip to content

NosImage Profile enhancement readme creation#5395

Open
kapilrajput-g wants to merge 3 commits intoopenconfig:mainfrom
kapilrajput-g:nos
Open

NosImage Profile enhancement readme creation#5395
kapilrajput-g wants to merge 3 commits intoopenconfig:mainfrom
kapilrajput-g:nos

Conversation

@kapilrajput-g
Copy link
Copy Markdown
Contributor

No description provided.

@kapilrajput-g kapilrajput-g requested a review from a team as a code owner April 28, 2026 09:08
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces documentation to support the transition of the NOSImageProfile to a more structured, machine-readable format. By defining specific requirements for test results, platform integrity data, and release categorization, this change facilitates better automated ingestion and validation of network operating system image metadata.

Highlights

  • Documentation Added: Created a new README file to detail the requirements for the NOSImageProfile enhancements.
  • Structured Data Requirements: Defined new fields for machine-consumable test data, platform configuration registers (PCRs), and image release types.
  • Example Provided: Included a textproto example to demonstrate the implementation of the new fields.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@OpenConfigBot
Copy link
Copy Markdown

OpenConfigBot commented Apr 28, 2026

Pull Request Functional Test Report for #5395 / 52303ea

No tests identified for validation.

Help

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new requirements document for NOSImageProfile enhancements, detailing structured reporting for test results, platform configuration registers (PCRs), and image release types. Feedback indicates that the pcrs and image_type fields, along with their respective message and enum types, are not yet defined in the protobuf schema, which will cause validation and unmarshaling failures in the associated tools.

Comment on lines +16 to +23
### 2. Platform Configuration Registers (PCRs)
The `pcrs` field stores the expected hardware-specific integrity values for a given NOS image. Providing this data in a structured format allows for automated verification of platform security states.

* **Field**: `repeated PlatformConfigurationRegister pcrs = 9;`
* **Attributes**:
* **index**: The vendor-specific index number (e.g., 0, 7).
* **values**: One or more valid hash values (typically SHA hexadecimal strings).
* **name**: (Optional) A human-readable description for the register (e.g., "BIOS", "Secure Boot Policy").
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The pcrs field and the PlatformConfigurationRegister message type are not defined in proto/nosimage.proto. Documenting fields that do not exist in the schema will cause validation errors for users following this guide.

Comment thread tools/nosimage/requirements/README.md Outdated
Comment on lines +25 to +33
### 3. Image Release Type
The `image_type` field defines the release stage of the network operating system image, allowing automated ingestion pipelines to categorize builds correctly.

* **Field**: `ImageType image_type = 10;`
* **Supported Values**:
* `IMAGETYPE_GENERAL_AVAILABILITY`: Standard GA release.
* `IMAGETYPE_ENGINEERING`: Intermediate or engineering build.
* `IMAGETYPE_BETA`: Beta release.
* `IMAGETYPE_CUSTOMER_SPECIAL`: Customer-specific build.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The image_type field and the ImageType enum are not defined in proto/nosimage.proto. Please ensure the protobuf definition is updated to include these fields to maintain consistency between the code and documentation.

Comment thread tools/nosimage/requirements/README.md Outdated
Comment on lines +57 to +70
# Enhancement: Structured platform integrity data
pcrs: {
index: 0
values: "abc123def456..."
name: "BIOS"
}
pcrs: {
index: 7
values: "789ghi012jkl..."
name: "Secure Boot Policy"
}

# Enhancement: Categorized image release type
image_type: IMAGETYPE_GENERAL_AVAILABILITY
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The example includes pcrs and image_type fields which are not present in the NOSImageProfile message. Using this example with the current validate.go tool will result in unmarshaling failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants