Skip to content

[action] [PR:11862] Add support for secure upgrade#15691

Merged
StormLiangMS merged 1 commit intosonic-net:202305from
mssonicbld:cherry/202305/11862
Jul 19, 2023
Merged

[action] [PR:11862] Add support for secure upgrade#15691
StormLiangMS merged 1 commit intosonic-net:202305from
mssonicbld:cherry/202305/11862

Conversation

@mssonicbld
Copy link
Copy Markdown
Collaborator

What I did

Added support for secure upgrade.

How I did it

During sonic_installer install, added secure upgrade image verification.
HLD can be found in the following PR: sonic-net/SONiC#1024

Why I did it

Feature is used to allow image was not modified since built from vendor. During installation, image can be verified with a signature attached to it.

How I did it

Feature includes image signing during build (in sonic buildimage repo) and verification during image install (in sonic-utilities).

How to verify it

In order for image verification - image must be signed - need to provide signing key and certificate (paths in SECURE_UPGRADE_DEV_SIGNING_KEY and SECURE_UPGRADE_DEV_SIGNING_CERT in rules/config) during build , and during image install, need to enable secure boot flag in bios, and signing_certificate should be available in bios.

Feature dependencies

In order for this feature to work smoothly, need to have secure boot feature implemented as well.
The Secure boot feature will be merged in the near future.

In addition, image verification code, during image install, including tests are added as part of sonic-utilities repo PR - sonic-net/sonic-utilities#2698

- What I did
Added support for secure upgrade.

- How I did it
During sonic_installer install, added secure upgrade image verification.
HLD can be found in the following PR: sonic-net/SONiC#1024

- Why I did it
Feature is used to allow image was not modified since built from vendor. During installation, image can be verified with a signature attached to it.

- How I did it
Feature includes image signing during build (in sonic buildimage repo) and verification during image install (in sonic-utilities).

- How to verify it
In order for image verification - image must be signed - need to provide signing key and certificate (paths in SECURE_UPGRADE_DEV_SIGNING_KEY and SECURE_UPGRADE_DEV_SIGNING_CERT in rules/config) during build , and during image install, need to enable secure boot flag in bios, and signing_certificate should be available in bios.

- Feature dependencies
In order for this feature to work smoothly, need to have secure boot feature implemented as well.
The Secure boot feature will be merged in the near future.
@mssonicbld
Copy link
Copy Markdown
Collaborator Author

Original PR: #11862

@StormLiangMS
Copy link
Copy Markdown
Contributor

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

No commit pushedDate could be found for PR 15691 in repo sonic-net/sonic-buildimage

@StormLiangMS
Copy link
Copy Markdown
Contributor

/azpw run Azure.sonic-buildimage

@StormLiangMS
Copy link
Copy Markdown
Contributor

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Contributor

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

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

LGTM

@StormLiangMS StormLiangMS merged commit 43585c3 into sonic-net:202305 Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants