Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ exclude = [
# to produce usable `.so` binaries.
#
# See: https://github.com/rust-lang/rust/issues/59302 for details.
#
#
# RUSTFLAGS="-C target-feature=-crt-static" is a bad workaround,
# because when used with a musl target it not only results in
# a non-loadable plugin binary, it applies to the other crates
# in the workspace as well, which we do not want.
#
#
# To hack around this for dev builds, we specify multiple crate types:
# `rlib` and `cdylib`. If you specify just `cdylib`, `musl` target builds
# will error out. If you specify both types, then `musl` target builds will
Expand All @@ -41,7 +41,7 @@ crate-type = ["rlib", "cdylib"]
anyhow = "1.0.102"
async-stream = "0.3.6"
aya = "0.14"
caps = "0.5.5"
caps = "0.5.6"
dns-lookup = "3.0.1"
falco_plugin = { version = "0.5.1" }
falco_plugin_api = { version = "0.5.1" }
Expand All @@ -64,5 +64,5 @@ url = "2.5.8"
uuid = { version = "1.23.1", features = ["v4"] }
pbjson = "0.9.0"
pbjson-types = "0.9.0"
serde = { version = "1.0.219", features = ["derive"] }
serde = { version = "1.0.228", features = ["derive"] }
tonic-prost = { version = "0.14.6" }
2 changes: 1 addition & 1 deletion Containerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This is *not* sha-locked as ghcr doesn't have arch-agnostic SHAs ATM, AFAICT.
FROM rust:1.92-bookworm AS build
FROM rust:1.95-trixie AS build

RUN apt-get update && apt-get --assume-yes install protobuf-compiler git clang cmake build-essential llvm-dev libclang-dev jq

Expand Down
34 changes: 31 additions & 3 deletions src/proto/generated/protect/control/v1/protect.control.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ pub struct ProcessSpec {
pub stdout: bool,
#[prost(bool, tag="10")]
pub stderr: bool,
#[prost(int64, repeated, tag="13")]
pub additional_gids: ::prost::alloc::vec::Vec<i64>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct MountSpec {
Expand Down Expand Up @@ -191,6 +193,11 @@ pub struct WorkloadBlockDeviceSpec {
pub mount_options: ::core::option::Option<BlockDeviceMountOptions>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct WorkloadPciDeviceSpec {
#[prost(string, tag="1")]
pub location: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BlockDeviceMountOptions {
#[prost(bool, tag="1")]
pub readonly: bool,
Expand Down Expand Up @@ -401,6 +408,10 @@ pub struct WorkloadSpec {
pub hostname: ::prost::alloc::string::String,
#[prost(message, repeated, tag="11")]
pub block_devices: ::prost::alloc::vec::Vec<WorkloadBlockDeviceSpec>,
#[prost(int32, optional, tag="12")]
pub oom_score_adj: ::core::option::Option<i32>,
#[prost(message, repeated, tag="13")]
pub pci_devices: ::prost::alloc::vec::Vec<WorkloadPciDeviceSpec>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CgroupLimit {
Expand Down Expand Up @@ -449,6 +460,8 @@ pub struct WorkloadStatus {
pub mount_status: ::core::option::Option<WorkloadMountStatus>,
#[prost(message, optional, tag="6")]
pub created_at: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(message, optional, tag="7")]
pub pci_device_status: ::core::option::Option<WorkloadPciDeviceStatus>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct WorkloadBlockDeviceInfo {
Expand All @@ -461,11 +474,21 @@ pub struct WorkloadBlockDeviceInfo {
#[prost(bool, tag="5")]
pub loop_dev: bool,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct WorkloadPciDeviceInfo {
#[prost(string, tag="1")]
pub location: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WorkloadBlockDeviceStatus {
#[prost(message, repeated, tag="1")]
pub devices: ::prost::alloc::vec::Vec<WorkloadBlockDeviceInfo>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WorkloadPciDeviceStatus {
#[prost(message, repeated, tag="1")]
pub devices: ::prost::alloc::vec::Vec<WorkloadPciDeviceInfo>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct WorkloadMountInfo {
#[prost(string, tag="2")]
Expand Down Expand Up @@ -828,7 +851,6 @@ pub enum ZoneState {
Creating = 1,
Created = 2,
Ready = 3,
Exited = 4,
Destroying = 5,
Destroyed = 6,
Failed = 7,
Expand All @@ -844,7 +866,6 @@ impl ZoneState {
Self::Creating => "ZONE_STATE_CREATING",
Self::Created => "ZONE_STATE_CREATED",
Self::Ready => "ZONE_STATE_READY",
Self::Exited => "ZONE_STATE_EXITED",
Self::Destroying => "ZONE_STATE_DESTROYING",
Self::Destroyed => "ZONE_STATE_DESTROYED",
Self::Failed => "ZONE_STATE_FAILED",
Expand All @@ -857,7 +878,6 @@ impl ZoneState {
"ZONE_STATE_CREATING" => Some(Self::Creating),
"ZONE_STATE_CREATED" => Some(Self::Created),
"ZONE_STATE_READY" => Some(Self::Ready),
"ZONE_STATE_EXITED" => Some(Self::Exited),
"ZONE_STATE_DESTROYING" => Some(Self::Destroying),
"ZONE_STATE_DESTROYED" => Some(Self::Destroyed),
"ZONE_STATE_FAILED" => Some(Self::Failed),
Expand Down Expand Up @@ -1206,6 +1226,14 @@ pub struct GetHostStatusReply {
pub host_mac: ::prost::alloc::string::String,
#[prost(uint64, optional, tag="7")]
pub hyp_free_mem: ::core::option::Option<u64>,
#[prost(string, optional, tag="8")]
pub protect_git_sha: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag="9")]
pub protect_last_tag: ::core::option::Option<::prost::alloc::string::String>,
#[prost(uint64, optional, tag="10")]
pub protect_revs_since_tag: ::core::option::Option<u64>,
#[prost(string, optional, tag="11")]
pub protect_branch: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateZoneRequest {
Expand Down
Loading
Loading