fdo-rs / fido-device-onboard-rs

An implementation of the FIDO Device Onboard (FDO) spec written in Rust.
BSD 3-Clause "New" or "Revised" License
56 stars 31 forks source link

manfuacturing-server: add an export API #616

Open runcom opened 5 months ago

runcom commented 5 months ago

when a manufacturer initialises many devices it's either gonna have OVs in files or in the database. Since the manufacturer has to move these OVs to the device owner, it'd be handy to have an export functioinality that exports a tarball with all the OVs. We can start with just that and have an API that does only that and expand in the future if other, more complex, queries and functions are needed.

EDIT: another idea would be to have some kind of "report-to-owner" functionality like we have in the owner-to-server interaction (but with REST)

7flying commented 5 months ago

FYI: Currently the fdo-owner-tool can export OVs from the DB and dump a specific one or all of them into a path.

So the internal DB export capability is already there, missing the API stuff.

runcom commented 5 months ago

awesome, I think we could easily add the api to the manufacturing server which re-uses code from the owner-tool then