rust-keylime icon indicating copy to clipboard operation
rust-keylime copied to clipboard

Publish agent on crates.io

Open THS-on opened this issue 2 years ago • 6 comments

I looked into packaging the rust agent for Debian and it makes it a lot easier if the agent is published on crates.io.

@lkatalin @ansasaki @ueno does anyone of you have the permission to create an account and publish to it?

THS-on avatar Nov 03 '22 12:11 THS-on

@THS-on I can check what is needed

ansasaki avatar Nov 03 '22 12:11 ansasaki

Just a reminder: that would require renaming of the source package in Fedora (currently it is keylime-agent-rust, then it will need to be rust-keylime) and we might have to go through the review process again.

ueno avatar Nov 03 '22 23:11 ueno

in openSUSE[1] the package is also named "rust-keylime", but the container image was also renamed to "keylime-agent"

[1] https://build.opensuse.org/package/view_file/openSUSE:Factory/rust-keylime/rust-keylime.spec?expand=1 [2] https://build.opensuse.org/package/view_file/openSUSE:Factory/rust-keylime-image/Dockerfile?expand=1

aplanas avatar Nov 04 '22 07:11 aplanas

IMO, publishing the crate with the current state seems like more trouble than it's worth: nobody other than downstream packaging would use it through the tooling around crates.io. I would suggest first refactoring the crate into a reusable library crate and the application crates; that way, it would make more sense to have it on crates.io (e.g., allowing alternative agent implementation), while it would give us an opportunity to polish the library interface. I've created #481 as an initial attempt.

ueno avatar Dec 05 '22 06:12 ueno

@ueno given that #481 got merged, do you plan to publish on crates.io ?

toabctl avatar May 12 '23 12:05 toabctl

@toabctl Thank you for the reminder. I haven't had time to work on that lately, but apparently the plan was to polish the library crate (keylime) by porting reusable functions from the application crates (keylime_agent and keylime_ima_emulator), before publishing those on crates.io (so we can maintain semver easily). Currently, only a few facilities have been ported and the suggested strategy was to port from low-level to high-level (https://github.com/keylime/meetings/issues/58#issuecomment-1351237079).

That said, I wouldn't block on that, if there is any important use-case of published crates.

ueno avatar May 14 '23 02:05 ueno