-
Notifications
You must be signed in to change notification settings - Fork 255
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
base: pankajjoshi/KEKrotationCVM
Are you sure you want to change the base?
refactoring to move CVM specific code from DiskUtil to CVMDiskUtil #1907
Conversation
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) |
There was a problem hiding this comment.
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?)
There was a problem hiding this comment.
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)) |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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/", |
There was a problem hiding this comment.
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
Please review.