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

Fix issue with ovftool signing command (T2239) #98

Merged
merged 1 commit into from Apr 8, 2020
Merged

Fix issue with ovftool signing command (T2239) #98

merged 1 commit into from Apr 8, 2020

Conversation

chrismarget
Copy link
Contributor

This PR resolves a bug in the build-vmware-image script.

Without this fix, the script checks for the presence of a signing key at
a prescribed location, but then ignores that key when creating the
signed OVA file.

Signing key can be submitted by putting key at a fixed location
(key/privatekey.pem) or by putting the key location in environment
variable PRIVATE_KEY_PATH. The script checks for either of those
possibilities.

ovftool command was incorrectly using the PRIVATE_KEY_PATH variable
even when the key file was dropped in the prescribed location.

Signing key can be submitted by putting key at a fixed location
(key/privatekey.pem) or by putting the key location in environment
variable PRIVATE_KEY_PATH. The script checks for either of those
possibilities.

ovftool command was incorrectly using the PRIVATE_KEY_PATH variable
even when the key file was dropped in the prescribed location.
Copy link
Contributor

@kroy-the-rabbit kroy-the-rabbit left a comment

Choose a reason for hiding this comment

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

Looks good to me. Looking at the context that creates that variable, this was a bug which this should correct.

Definitely want to add T2239 to the title of this PR though.

@chrismarget chrismarget changed the title Fix issue with ovftool signing command Fix issue with ovftool signing command (T2239) Apr 8, 2020
@c-po
Copy link
Member

c-po commented Apr 8, 2020

Task ID should be added to commit, too as written in our guides: https://docs.vyos.io/en/latest/contributing/development.html#submit-a-patch

Modifying headline now with Squash Merge

@jestabro jestabro self-assigned this Apr 8, 2020
@c-po c-po merged commit 8d71437 into vyos:current Apr 8, 2020
@chrismarget
Copy link
Contributor Author

Thank you, Christian!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants