Merge "Use sha256 instead of md5 by default"

This commit is contained in:
Zuul 2023-12-13 20:41:38 +00:00 committed by Gerrit Code Review
commit 83066af17d
4 changed files with 7 additions and 3 deletions

View File

@ -141,7 +141,7 @@ in an ``instance_info`` variable, for example:
},
"instance_info": {
"image_source": "http://image.server/image.qcow2",
"image_checksum": "<md5 checksum>",
"image_checksum": "<md5/sha256/sha512 checksum>",
"configdrive": {
"meta_data": {
"public_keys": {"0": "ssh-rsa ..."},

View File

@ -82,7 +82,7 @@
stat:
path: "{{ deploy_image_path }}"
get_checksum: yes
checksum_algorithm: md5
checksum_algorithm: sha256
register: test_deploy_image
become: yes

View File

@ -423,7 +423,7 @@
- when: download_custom_deploy_image | bool
block:
- name: "Create a checksum file for the custom deployment image"
shell: md5sum {{ deploy_image_filename }} > {{ deploy_image_filename }}.CHECKSUMS
shell: sha256sum {{ deploy_image_filename }} > {{ deploy_image_filename }}.CHECKSUMS
args:
chdir: "{{ http_boot_folder }}"
- name: "Ensure the checksum file is readable"

View File

@ -0,0 +1,4 @@
---
upgrade:
- |
SHA256 is now used instead of MD5 for any checksums calculated by Bifrost.