v2.0.0: adaptive eBPF firewall with AI honeypot and P2P threat mesh

This commit is contained in:
Vladyslav Soliannikov 2026-04-07 22:28:11 +00:00
commit 37c6bbf5a1
133 changed files with 28073 additions and 0 deletions

View file

@ -0,0 +1,20 @@
# Blackwall userspace daemon — multi-stage build
# Stage 1: Build the Rust binary
FROM rust:1.87-bookworm AS builder
WORKDIR /build
COPY . .
RUN cargo build --release --bin blackwall \
&& strip target/release/blackwall
# Stage 2: Minimal runtime image
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
iproute2 \
libelf1 \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /build/target/release/blackwall /usr/local/bin/blackwall
RUN useradd -r -s /usr/sbin/nologin blackwall
# eBPF requires root/CAP_BPF — runs as root in container, limited by securityContext
ENTRYPOINT ["/usr/local/bin/blackwall"]
CMD ["/etc/blackwall/config.toml"]

16
deploy/docker/Dockerfile.ebpf Executable file
View file

@ -0,0 +1,16 @@
# Blackwall eBPF programs — init container
# Builds the BPF object file with nightly + bpfel target
FROM rust:1.87-bookworm AS builder
RUN rustup toolchain install nightly \
&& rustup component add rust-src --toolchain nightly
WORKDIR /build
COPY . .
RUN cd blackwall-ebpf && \
cargo +nightly build \
--target bpfel-unknown-none \
-Z build-std=core \
--release
# Stage 2: Tiny image with just the BPF binary
FROM busybox:1.37
COPY --from=builder /build/target/bpfel-unknown-none/release/blackwall-ebpf /opt/blackwall/blackwall-ebpf