1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-22 22:03:39 +03:00

B #4064: encrypt password in context section (#4528)

This commit is contained in:
Alejandro Huertas Herrero 2020-04-14 17:07:23 +02:00 committed by GitHub
parent 31e46392ad
commit 29e18184b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -961,6 +961,7 @@ HOST_ENCRYPTED_ATTR = "ONE_PASSWORD"
# VM_ENCRYPTED_ATTR = "PACKET_TOKEN
# VM_ENCRYPTED_ATTR = "PROVISION/PACKET_TOKEN
VM_ENCRYPTED_ATTR = "CONTEXT/PASSWORD"
# VNET_ENCRYPTED_ATTR = "PROVISION/PACKET_TOKEN
# VNET_ENCRYPTED_ATTR = "PROVISION/PACKET_TOKEN

View File

@ -89,6 +89,8 @@ int VirtualMachine::generate_context(string &files, int &disk_id,
return -1;
}
decrypt();
VectorAttribute * context = obj_template->get("CONTEXT");
if ( context == 0 )