)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"a45679bda052b4fed18a051f069107ed145d7987","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"8b263f41_3c914aff","updated":"2026-11-23 15:08:17.000000000","message":"I haven\u0027t reviewed this against the file spec, but it\u0027s simple enough that I\u0027m sure abhi has triple-checked the output of his agent 😉\n\nI think it\u0027s a good idea to retain the AES identification, and I also think it\u0027s reasonable for us to say it\u0027s generally unsafe given it\u0027s documented as design-flawed, and especially if we expect it to not actually be usable by modern QEMU.","commit_id":"62b758188eb9ac540397ea0f4104d0efc82af105"},{"author":{"_account_id":9816,"name":"Takashi Kajinami","email":"kajinamit@oss.nttdata.com","username":"kajinamit"},"change_message_id":"daf7548c9e839d1992c2869893ed9143ff271fb0","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"a48f1d94_b44bbe9f","updated":"2026-11-23 11:53:49.000000000","message":"I\u0027ll keep this open just in case Dan has any additional feedback :-)","commit_id":"62b758188eb9ac540397ea0f4104d0efc82af105"},{"author":{"_account_id":28522,"name":"Hervé Beraud","email":"herveberaud.pro@gmail.com","username":"hberaud"},"change_message_id":"24f5ddbaee0c46ecc259709647757d07de4b0d4d","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"f636553c_a630f4f9","updated":"2026-11-23 10:29:07.000000000","message":"Looks good","commit_id":"62b758188eb9ac540397ea0f4104d0efc82af105"},{"author":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"change_message_id":"82eb4ad9f1611003a892c90d571595d472aafc9f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"6b9f753c_8ee8b2ca","updated":"2026-11-23 16:51:08.000000000","message":"Thank you Dan for inputs. Made changes as per suggestion.","commit_id":"62b758188eb9ac540397ea0f4104d0efc82af105"},{"author":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"change_message_id":"82eb4ad9f1611003a892c90d571595d472aafc9f","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"e0f625c7_441e884d","in_reply_to":"8b263f41_3c914aff","updated":"2026-11-23 16:51:08.000000000","message":"Yeah I have checked this multiple times in my local environment. The crypt_method offset and values are correct.\n\nI agree to keep AES identified, but I will make it to fail safety check. It is documented as insecure and not supported by modern QEMU. I will update release note also.","commit_id":"62b758188eb9ac540397ea0f4104d0efc82af105"},{"author":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"change_message_id":"0b2c96d8c52fb08874621d90d51c5c1b807ee55c","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"662b1bd5_05c49898","updated":"2026-11-23 17:31:49.000000000","message":"recheck","commit_id":"1123b125596c33088891e64eb8642de94e6b8bf0"},{"author":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"change_message_id":"ba08945a63e5bebb105af61a01480e7f690da760","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"8144ac32_ddd74615","updated":"2026-11-24 05:53:19.000000000","message":"recheck","commit_id":"1123b125596c33088891e64eb8642de94e6b8bf0"},{"author":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"change_message_id":"0a2e8d264eaf2461a3fb9538824de8d8ebf80e98","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"9842f1bc_562f7869","updated":"2026-11-23 17:01:11.000000000","message":"recheck","commit_id":"1123b125596c33088891e64eb8642de94e6b8bf0"}],"oslo_utils/imageutils/format_inspector.py":[{"author":{"_account_id":9816,"name":"Takashi Kajinami","email":"kajinamit@oss.nttdata.com","username":"kajinamit"},"change_message_id":"daf7548c9e839d1992c2869893ed9143ff271fb0","unresolved":true,"context_lines":[{"line_number":600,"context_line":"    _CRYPT_METHOD_LUKS \u003d 2"},{"line_number":601,"context_line":"    _CRYPT_METHOD_FORMATS \u003d {"},{"line_number":602,"context_line":"        _CRYPT_METHOD_NONE: \u0027none\u0027,"},{"line_number":603,"context_line":"        _CRYPT_METHOD_AES: \u0027aes\u0027,"},{"line_number":604,"context_line":"        _CRYPT_METHOD_LUKS: \u0027luks\u0027,"},{"line_number":605,"context_line":"    }"},{"line_number":606,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"f8175dce_29d31443","line":603,"range":{"start_line":603,"start_character":28,"end_line":603,"end_character":31},"updated":"2026-11-23 11:53:49.000000000","message":"I thought aes support had been removed, but in fact it was removed only from emulator and qemu-img concert command still supports it.\n\nhttps://www.qemu.org/docs/master/interop/qcow2.html#data-encryption","commit_id":"62b758188eb9ac540397ea0f4104d0efc82af105"},{"author":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"change_message_id":"82eb4ad9f1611003a892c90d571595d472aafc9f","unresolved":false,"context_lines":[{"line_number":600,"context_line":"    _CRYPT_METHOD_LUKS \u003d 2"},{"line_number":601,"context_line":"    _CRYPT_METHOD_FORMATS \u003d {"},{"line_number":602,"context_line":"        _CRYPT_METHOD_NONE: \u0027none\u0027,"},{"line_number":603,"context_line":"        _CRYPT_METHOD_AES: \u0027aes\u0027,"},{"line_number":604,"context_line":"        _CRYPT_METHOD_LUKS: \u0027luks\u0027,"},{"line_number":605,"context_line":"    }"},{"line_number":606,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"cec68d6e_fc1d839a","line":603,"range":{"start_line":603,"start_character":28,"end_line":603,"end_character":31},"in_reply_to":"06c6c34e_07767e02","updated":"2026-11-23 16:51:08.000000000","message":"Acknowledged","commit_id":"62b758188eb9ac540397ea0f4104d0efc82af105"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"a45679bda052b4fed18a051f069107ed145d7987","unresolved":true,"context_lines":[{"line_number":600,"context_line":"    _CRYPT_METHOD_LUKS \u003d 2"},{"line_number":601,"context_line":"    _CRYPT_METHOD_FORMATS \u003d {"},{"line_number":602,"context_line":"        _CRYPT_METHOD_NONE: \u0027none\u0027,"},{"line_number":603,"context_line":"        _CRYPT_METHOD_AES: \u0027aes\u0027,"},{"line_number":604,"context_line":"        _CRYPT_METHOD_LUKS: \u0027luks\u0027,"},{"line_number":605,"context_line":"    }"},{"line_number":606,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"06c6c34e_07767e02","line":603,"range":{"start_line":603,"start_character":28,"end_line":603,"end_character":31},"in_reply_to":"f8175dce_29d31443","updated":"2026-11-23 15:08:17.000000000","message":"If it was ever in the disk format it kinda needs to be supported in tools like this forever. If we reject it (see below) then I guess technically not, but I\u0027d prefer we identify what we know, especially so we can explicitly reject it as unsupported/unsafe.","commit_id":"62b758188eb9ac540397ea0f4104d0efc82af105"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"a45679bda052b4fed18a051f069107ed145d7987","unresolved":true,"context_lines":[{"line_number":650,"context_line":"        crypt_method \u003d self.qemu_header_info.get("},{"line_number":651,"context_line":"            \u0027crypt_method\u0027, self._CRYPT_METHOD_NONE"},{"line_number":652,"context_line":"        )"},{"line_number":653,"context_line":"        return crypt_method !\u003d self._CRYPT_METHOD_NONE"},{"line_number":654,"context_line":""},{"line_number":655,"context_line":"    @property"},{"line_number":656,"context_line":"    def encryption_format(self) -\u003e str | None:"}],"source_content_type":"text/x-python","patch_set":1,"id":"f8776128_364207db","line":653,"updated":"2026-11-23 15:08:17.000000000","message":"This is a nit, but seems like this property could use `encryption_format` instead of re-doing the get, where the header name could be wrong or get changed.","commit_id":"62b758188eb9ac540397ea0f4104d0efc82af105"},{"author":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"change_message_id":"82eb4ad9f1611003a892c90d571595d472aafc9f","unresolved":false,"context_lines":[{"line_number":650,"context_line":"        crypt_method \u003d self.qemu_header_info.get("},{"line_number":651,"context_line":"            \u0027crypt_method\u0027, self._CRYPT_METHOD_NONE"},{"line_number":652,"context_line":"        )"},{"line_number":653,"context_line":"        return crypt_method !\u003d self._CRYPT_METHOD_NONE"},{"line_number":654,"context_line":""},{"line_number":655,"context_line":"    @property"},{"line_number":656,"context_line":"    def encryption_format(self) -\u003e str | None:"}],"source_content_type":"text/x-python","patch_set":1,"id":"fd0e530b_95e6367b","line":653,"in_reply_to":"f8776128_364207db","updated":"2026-11-23 16:51:08.000000000","message":"Acknowledged","commit_id":"62b758188eb9ac540397ea0f4104d0efc82af105"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"a45679bda052b4fed18a051f069107ed145d7987","unresolved":true,"context_lines":[{"line_number":669,"context_line":"    def check_crypt_method(self) -\u003e None:"},{"line_number":670,"context_line":"        crypt_method \u003d self.qemu_header_info.get(\u0027crypt_method\u0027)"},{"line_number":671,"context_line":"        if crypt_method not in self._CRYPT_METHOD_FORMATS:"},{"line_number":672,"context_line":"            raise SafetyViolation(\u0027Unknown QCOW2 crypt_method\u0027)"},{"line_number":673,"context_line":""},{"line_number":674,"context_line":"    def check_backing_file(self) -\u003e None:"},{"line_number":675,"context_line":"        bf_offset_bytes \u003d self.region(\u0027header\u0027).data["}],"source_content_type":"text/x-python","patch_set":1,"id":"622f3278_0e190395","line":672,"updated":"2026-11-23 15:08:17.000000000","message":"So, as AES has been removed from emulators (and thus probably not usable anyway) and is known to be insecure, I think it\u0027s reasonable for us to just fail the safety check for that format. We\u0027re opinionated elsewhere in this file about what we consider unsafe (i.e. some VMDK features) and it seems reasonable to do the same for this. Identifying it is good, failing for it specifically would be helpful.\n\n```\nif method \u003d\u003d _CRYPT_METHOD_AES:\n  raise SafetyViolation(\u0027AES is insecure and no longer supported at runtime\u0027)\nelif method not in self._CRYPT_METHOD_FORMATS:\n  raise SafetyViolation(\u0027Unknown QCOW2 crypt_method\u0027)\n```\n\nNote I also think it\u0027s worth logging the crypt_method in the unknown case to help with forensics later.","commit_id":"62b758188eb9ac540397ea0f4104d0efc82af105"},{"author":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"change_message_id":"82eb4ad9f1611003a892c90d571595d472aafc9f","unresolved":false,"context_lines":[{"line_number":669,"context_line":"    def check_crypt_method(self) -\u003e None:"},{"line_number":670,"context_line":"        crypt_method \u003d self.qemu_header_info.get(\u0027crypt_method\u0027)"},{"line_number":671,"context_line":"        if crypt_method not in self._CRYPT_METHOD_FORMATS:"},{"line_number":672,"context_line":"            raise SafetyViolation(\u0027Unknown QCOW2 crypt_method\u0027)"},{"line_number":673,"context_line":""},{"line_number":674,"context_line":"    def check_backing_file(self) -\u003e None:"},{"line_number":675,"context_line":"        bf_offset_bytes \u003d self.region(\u0027header\u0027).data["}],"source_content_type":"text/x-python","patch_set":1,"id":"e570853a_f490d8ce","line":672,"in_reply_to":"622f3278_0e190395","updated":"2026-11-23 16:51:08.000000000","message":"Acknowledged","commit_id":"62b758188eb9ac540397ea0f4104d0efc82af105"}],"releasenotes/notes/qcow2-encryption-state-6b1bfe3ff9ab4f5f.yaml":[{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"a45679bda052b4fed18a051f069107ed145d7987","unresolved":true,"context_lines":[{"line_number":4,"context_line":"    The QCOW2 image inspector now parses the ``crypt_method`` header field"},{"line_number":5,"context_line":"    and exposes the image\u0027s ``encrypted`` state and"},{"line_number":6,"context_line":"    ``encryption_format``. Unsupported ``crypt_method`` values fail the"},{"line_number":7,"context_line":"    format safety check."}],"source_content_type":"text/x-yaml","patch_set":1,"id":"0e6d1973_5d23495e","line":7,"updated":"2026-11-23 15:08:17.000000000","message":"s/Unsupported/Unsupported and deprecated/ (if you take my suggestion).","commit_id":"62b758188eb9ac540397ea0f4104d0efc82af105"},{"author":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"change_message_id":"82eb4ad9f1611003a892c90d571595d472aafc9f","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    The QCOW2 image inspector now parses the ``crypt_method`` header field"},{"line_number":5,"context_line":"    and exposes the image\u0027s ``encrypted`` state and"},{"line_number":6,"context_line":"    ``encryption_format``. Unsupported ``crypt_method`` values fail the"},{"line_number":7,"context_line":"    format safety check."}],"source_content_type":"text/x-yaml","patch_set":1,"id":"6e7400b1_5e8b6c8b","line":7,"in_reply_to":"0e6d1973_5d23495e","updated":"2026-11-23 16:51:08.000000000","message":"Acknowledged","commit_id":"62b758188eb9ac540397ea0f4104d0efc82af105"}]}
