-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split crates into library and applications
This is a start of refactoring the codebase into three sub-crates: keylime, keylime_agent, and keylime_ima_emulator. The keylime crate provides common facility used by the other crates as a library (currently only IMA parser). Signed-off-by: Daiki Ueno <[email protected]>
- Loading branch information
Showing
50 changed files
with
215 additions
and
113 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,3 @@ | ||
[package] | ||
authors = ["Keylime Authors"] | ||
edition = "2018" | ||
name = "keylime_agent" | ||
version = "0.1.0" | ||
license = "Apache-2.0" | ||
description = "Rust agent for Keylime" | ||
repository = "https://github.com/keylime/rust-keylime" | ||
[workspace] | ||
|
||
[[bin]] | ||
name = "keylime_agent" | ||
path = "src/main.rs" | ||
doc = false | ||
|
||
[[bin]] | ||
name = "keylime_ima_emulator" | ||
path = "src/ima_emulator.rs" | ||
doc = false | ||
|
||
[dependencies] | ||
actix-web = { version = "4", features = ["openssl"] } | ||
base64 = "0.13" | ||
cfg-if = "1" | ||
clap = { version = "~3.1.18", features = ["derive"] } | ||
compress-tools = "0.12" | ||
config = { version = "0.13", features = ["toml"] } | ||
futures = "0.3.6" | ||
glob = "0.3" | ||
hex = "0.4" | ||
libc = "0.2.43" | ||
log = "0.4" | ||
openssl = "0.10.15" | ||
picky-asn1-der = "0.3.1" | ||
picky-asn1-x509 = "0.6.1" | ||
pretty_env_logger = "0.4" | ||
reqwest = {version = "0.11", features = ["json"]} | ||
serde = "1.0.80" | ||
serde_derive = "1.0.80" | ||
serde_json = { version = "1.0", features = ["raw_value"] } | ||
static_assertions = "1" | ||
tempfile = "3.0.4" | ||
tokio = {version = "1.13.1", features = ["full"]} | ||
tss-esapi = {version = "7.1.0", features = ["generate-bindings"]} | ||
thiserror = "1.0" | ||
uuid = {version = "0.8", features = ["v4"]} | ||
zmq = {version = "0.9.2", optional = true} | ||
# wiremock was moved to be a regular dependency because optional | ||
# dev-dependencies are not supported | ||
# see: https://github.com/rust-lang/cargo/issues/1596 | ||
wiremock = {version = "0.5", optional = true} | ||
|
||
[dev-dependencies] | ||
actix-rt = "2" | ||
|
||
[features] | ||
# The features enabled by default | ||
default = ["with-zmq", "legacy-python-actions"] | ||
# this should change to dev-dependencies when we have integration testing | ||
testing = ["wiremock"] | ||
# Whether the agent should be compiled with support to listen for notification | ||
# messages on ZeroMQ | ||
with-zmq = ["zmq"] | ||
# Whether the agent should be compiled with support for python revocation | ||
# actions loaded as modules, which is the only kind supported by the python | ||
# agent (unless the enhancement-55 is implemented). See: | ||
# https://github.com/keylime/enhancements/blob/master/55_revocation_actions_without_python.md | ||
legacy-python-actions = [] | ||
members = ["keylime", "keylime-agent", "keylime-ima-emulator"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
[package] | ||
authors = ["Keylime Authors"] | ||
edition = "2021" | ||
name = "keylime_agent" | ||
version = "0.1.0" | ||
license = "Apache-2.0" | ||
description = "Rust agent for Keylime" | ||
repository = "https://github.com/keylime/rust-keylime" | ||
|
||
[dependencies] | ||
actix-web = { version = "4", features = ["openssl"] } | ||
base64 = "0.13" | ||
cfg-if = "1" | ||
clap = { version = "~3.1.18", features = ["derive"] } | ||
compress-tools = "0.12" | ||
config = { version = "0.13", features = ["toml"] } | ||
futures = "0.3.6" | ||
glob = "0.3" | ||
hex = "0.4" | ||
keylime = { path = "../keylime" } | ||
libc = "0.2.43" | ||
log = "0.4" | ||
openssl = "0.10.15" | ||
picky-asn1-der = "0.3.1" | ||
picky-asn1-x509 = "0.6.1" | ||
pretty_env_logger = "0.4" | ||
reqwest = {version = "0.11", features = ["json"]} | ||
serde = "1.0.80" | ||
serde_derive = "1.0.80" | ||
serde_json = { version = "1.0", features = ["raw_value"] } | ||
static_assertions = "1" | ||
tempfile = "3.0.4" | ||
tokio = {version = "1.13.1", features = ["full"]} | ||
tss-esapi = {version = "7.1.0", features = ["generate-bindings"]} | ||
thiserror = "1.0" | ||
uuid = {version = "0.8", features = ["v4"]} | ||
zmq = {version = "0.9.2", optional = true} | ||
# wiremock was moved to be a regular dependency because optional | ||
# dev-dependencies are not supported | ||
# see: https://github.com/rust-lang/cargo/issues/1596 | ||
wiremock = {version = "0.5", optional = true} | ||
|
||
[dev-dependencies] | ||
actix-rt = "2" | ||
|
||
[features] | ||
# The features enabled by default | ||
default = ["with-zmq", "legacy-python-actions"] | ||
# this should change to dev-dependencies when we have integration testing | ||
testing = ["wiremock"] | ||
# Whether the agent should be compiled with support to listen for notification | ||
# messages on ZeroMQ | ||
with-zmq = ["zmq"] | ||
# Whether the agent should be compiled with support for python revocation | ||
# actions loaded as modules, which is the only kind supported by the python | ||
# agent (unless the enhancement-55 is implemented). See: | ||
# https://github.com/keylime/enhancements/blob/master/55_revocation_actions_without_python.md | ||
legacy-python-actions = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.