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

refactoring to move CVM specific code from DiskUtil to CVMDiskUtil #1907

Open
wants to merge 3 commits into
base: pankajjoshi/KEKrotationCVM
Choose a base branch
from

Conversation

pankajosh
Copy link

Please review.

@pankajosh pankajosh requested a review from canfikret April 1, 2024 12:45
if attestation_url:
cmd = "{0} -a {1} -k {2} -s {3}".format(skr_app,attestation_url,kek_url,protector_base64)
else:
cmd = "{0} -k {1} -s {2}".format(skr_app,kek_url,protector_base64)
Copy link
Member

Choose a reason for hiding this comment

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

if no attestation url is specified, how is one constructed? (mapping VM location to known list?)

Copy link
Member

Choose a reason for hiding this comment

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

in that case, the IMDS result file can store that for future use.

cat imds_stored_results.ini
[imds_stored_results]
securitytype = ConfidentialVM
...

msg = process_comm.stdout.strip()
else:
pass
self.logger.log("secure_key_release_operation {0} unsuccessful.".format(operation))
Copy link
Member

Choose a reason for hiding this comment

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

When SKR is not successful, we should set SKR_TRACE_ON=1 and re-run the command to get more traces into the extension log file. That's what we're doing in the Windows ADE.

"KeyEncryptionKeyURL": "<kek_url>",
"KeyVaultResourceId": "<kv_res_id>",
"KeyVaultURL": "https://<vault_name>.vault.azure.net/",
"AttestationURL": null,
Copy link
Member

Choose a reason for hiding this comment

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

Nit: AttestationURL might/should not be null.

"KekVaultResourceId": "<kek_res_id>",
"KeyEncryptionKeyURL": "<kek_url>",
"KeyVaultResourceId": "<kv_res_id>",
"KeyVaultURL": "https://<vault_name>.vault.azure.net/",
Copy link
Member

Choose a reason for hiding this comment

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

or https://<mhsm_name>.managedhsm.azure.net

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