Skip to content
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

Add SECURE_UPGRADE_PROD_TOOL_ARGS flag to make it possible for vendor… #14581

Merged
merged 3 commits into from
May 16, 2023

Conversation

DavidZagury
Copy link
Contributor

…s to pass their own arguments on the prod signing script

Why I did it

Since the prod signing tool is vendor specific, and each vendor may have different arguments they would like to use in the script, we would need a way to inject those arguments to the script.

How I did it

Add a compilation flag SECURE_UPGRADE_PROD_TOOL_ARGS which vendors can use to inject any flag they would want to the prod signing script.

How to verify it

Build SONiC using your own prod script

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

…s to pass their own arguments on the prod signing script
@liat-grozovik
Copy link
Collaborator

@davidpil2002 please review this one pls

davidpil2002
davidpil2002 previously approved these changes Apr 13, 2023
@@ -674,8 +674,12 @@ if [[ $SECURE_UPGRADE_MODE == 'dev' || $SECURE_UPGRADE_MODE == "prod" && $SONIC_
exit 1
fi

sudo $SECURE_UPGRADE_PROD_SIGNING_TOOL $CONFIGURED_ARCH $FILESYSTEM_ROOT $LINUX_KERNEL_VERSION $OUTPUT_SEC_BOOT_DIR

sudo $sonic_su_prod_signing_tool -a $CONFIGURED_ARCH \
Copy link
Collaborator

Choose a reason for hiding this comment

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

-a

will these new options like -a working for each vendor?

Copy link
Contributor Author

@DavidZagury DavidZagury Apr 19, 2023

Choose a reason for hiding this comment

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

Yes, it will support for all the vendors.

It aligns the prod secure scripts flags with the dev secure script flags.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Apr 19, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@DavidZagury
Copy link
Contributor Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

@qiluo-msft could you please help to approve/merge?

@liat-grozovik liat-grozovik merged commit 5acec53 into sonic-net:master May 16, 2023
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request May 16, 2023
…s to pass their own arguments on the prod signing script (sonic-net#14581)

- Why I did it
Since the prod signing tool is vendor specific, and each vendor may have different arguments they would like to use in the script, we would need a way to inject those arguments to the script.

- How I did it
Add a compilation flag SECURE_UPGRADE_PROD_TOOL_ARGS which vendors can use to inject any flag they would want to the prod signing script.

- How to verify it
Build SONiC using your own prod script
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202211: #15095

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.

6 participants