-
Notifications
You must be signed in to change notification settings - Fork 0
Maintain backward compatibility with pre-Merkle tree manifest format #8
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
Conversation
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.
Thanks @sandlbn ! I have only a minor comment about renaming include_metadata
to something like include_tlog_metadata
for clarity, otherwise this LGTM.
RUN groupadd -r appuser && useradd -r -g appuser appuser | ||
|
||
# Create data directory and set ownership BEFORE switching to appuser | ||
RUN mkdir -p /data && chown -R appuser:appuser /data |
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.
Is this duplicated from #7 ?
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.
it is
src/main.rs
Outdated
|
||
#[derive(Debug, Deserialize)] | ||
struct GetManifestQuery { | ||
include_metadata: Option<bool>, |
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.
I assume include_metadata
needs to be renamed to include_tlog_metadata
in this file as well, if we make this change.
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.
Done
Co-authored-by: Marcela Melara <marcela.melara@intel.com>
Co-authored-by: Marcela Melara <marcela.melara@intel.com>
Co-authored-by: Marcela Melara <marcela.melara@intel.com>
After adding Merkle tree support, the API response format changed:
content_format
,sequence_number
,hash
,signature
manifest_json
→ exposed asmanifest_json
in APIAdded backward-compatible API response format while preserving Merkle tree functionality:
#[serde(rename = "manifest")]
onmanifest_json
field#[serde(skip_serializing_if)]
to hide metadata fields?include_metadata=true
query parameter#[serde(default)]
for deserialization of legacy data