Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Aktualizr reports incorrect OSTree hash if it doesn't find the currently-booting version in its targets #1780

Open
tkfu opened this issue May 25, 2021 · 0 comments

Comments

@tkfu
Copy link
Collaborator

tkfu commented May 25, 2021

When aktualizr assembles the device manifest, it calls OstreeManager::getCurrent() to assemble the information it needs. That function returns an Uptane::Target, so the current implementation is to try to locate a target matching the currently-running commit hash that aktualizr knows about, return that if we do find one, and return the Uptane::Target::Unknown() target if we don't find anything, which is just a target named "unknown" which reports the hash of an empty string as its hash.

This is incorrect behavior according to the Uptane spec: section 5.4.2.1.2 specifies that the ECU version report MUST contain "The filename, length, and hashes of its currently installed image".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant