Skip to content
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

feat(manufacturing-server): implement an export OVs endpoint #673

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

runcom
Copy link
Contributor

@runcom runcom commented Sep 11, 2024

Just serving an archive with all the OVs the manufacturer knows about.
It'd be handy to just give this away to whoever needs these credentials
and/or create a nice UI where you click a button to have them all.
The post-MVP, with a UI, would be to just have a UI that is able to list
all the device credentials, let you select which one you want, download
them in an archive, profit. Not there yet.

This is based on #671 - so let's merge that first

Signed-off-by: Antonio Murdaca [email protected]

@runcom runcom changed the base branch from mfcg-export-ovs to main September 18, 2024 09:46
@@ -117,6 +117,7 @@
}

async fn report_to_rendezvous(udt: OwnerServiceUDT) -> Result<()> {
// TODO: this below (query_data vs query_ovs_db) should be abstracted into the store's Filter's query stuff

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
@@ -234,6 +250,9 @@
}
}

// TODO: this whole implementation uses OwnershipVoucher but the store interface

Check notice

Code scanning / devskim

A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note

Suspicious comment
Just serving an archive with all the OVs the manufacturer knows about.
It'd be handy to just give this away to whoever needs these credentials
and/or create a nice UI where you click a button to have them all.
The post-MVP, with a UI, would be to just have a UI that is able to list
all the device credentials, let you select which one you want, download
them in an archive, profit. Not there yet.

Signed-off-by: Antonio Murdaca <[email protected]>
@@ -461,6 +497,24 @@ where
V: Serializable + Send + Sync + Clone + 'static,
MKT: crate::MetadataLocalKey + 'static,
{
async fn load_all_data(&self) -> Result<Vec<V>, StoreError> {
Copy link
Contributor

@say-paul say-paul Sep 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not referring a single function for all load_all_data?

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

Successfully merging this pull request may close these issues.

2 participants