Skip to content

Commit

Permalink
branectl policies (add|list|activate) now work (again)
Browse files Browse the repository at this point in the history
Only thing is that language ID isn't properly propagated?

Check `policy-store`, see if that's up-to-date, then make sure Brane's dependency on it is.
  • Loading branch information
Lut99 committed Dec 9, 2024
1 parent 263074b commit 5b7a6e2
Show file tree
Hide file tree
Showing 4 changed files with 260 additions and 53 deletions.
74 changes: 70 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion brane-ctl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ doc = false
[dependencies]
base64ct = "1.6.0"
bollard = "0.14.0"
chrono = "0.4.39"
clap = { version = "4.5.6", features = ["derive","env"] }
console = "0.15.5"
dialoguer = "0.11.0"
Expand All @@ -44,12 +45,13 @@ names.workspace = true
rand = "0.8.5"
reqwest = { version = "0.12.9" }
serde = { version = "1.0.204", features = ["derive"] }
serde_json = "1.0.120"
serde_json = { version = "1.0.120", features = ["raw_value"] }
serde_yaml = { version = "0.0.10", package = "serde_yml" }
shlex = "1.1.0"
tempfile = "3.10.1"
tokio = { version = "1.42.0", features = [] }

eflint-json = { git = "https://gitlab.com/eflint/json-spec-rs", features = ["v0_1_0_srv"] }
eflint-to-json = { git = "https://gitlab.com/eflint/eflint-to-json-rs", features = ["async-tokio"] }
policy-store = { git = "https://github.com/epi-project/policy-store", features = ["sqlite-database", "sqlite-database-embedded-migrations"] }

Expand Down
2 changes: 1 addition & 1 deletion brane-ctl/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ pub(crate) enum PolicySubcommand {
help = "The version of the policy to activate. Omit to have branectl download the version metadata from the checker and let you choose \
interactively."
)]
version: Option<i64>,
version: Option<u64>,

/// Address on which to find the checker.
#[clap(
Expand Down
Loading

0 comments on commit 5b7a6e2

Please sign in to comment.