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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.3.1] - 2026-11-13

### Added

- CVE watch (`vuln.cve-watch`): matches every package on the host and in
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stackdog"
version = "0.3.0"
version = "0.3.1"
authors = ["Vasili Pascal <[email protected]>"]
edition = "2021"
description = "Security platform for Docker containers and Linux servers"
Expand Down
4 changes: 2 additions & 2 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Stackdog Security - Development Plan

**Last Updated:** 2026-04-07
**Current Version:** 0.3.0
**Current Version:** 0.3.1
**Status:** Phase 2 In Progress

## Project Vision
Expand Down Expand Up @@ -560,7 +560,7 @@ cargo-deny = "0.14"
|---------|-------------|----------|--------|
| **v0.1.0** | 2022-03-01 | Initial container management | ✅ Released |
| **v0.2.0** | 2026-03-13 | Security platform foundation | ✅ Complete |
| **v0.3.0** | Week 10 | ML anomaly detection | 🚧 In Progress |
| **v0.3.1** | Week 10 | ML anomaly detection | 🚧 In Progress |
| **v0.4.0** | Week 12 | Alerting system | ⏳ Pending |
| **v0.5.0** | Week 16 | Web dashboard | ⏳ Pending |
| **v1.0.0** | Week 18 | Production release | ⏳ Pending |
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Stackdog Security

![Version](https://img.shields.io/badge/version-0.3.0-blue.svg)
![Version](https://img.shields.io/badge/version-0.3.1-blue.svg)
![License](https://img.shields.io/badge/license-MIT-green.svg)
![Rust](https://img.shields.io/badge/rust-1.75+-orange.svg)
![Platform](https://img.shields.io/badge/platform-linux%20%7C%20macos%20%7C%20windows-lightgrey.svg)
Expand Down Expand Up @@ -179,7 +179,7 @@ curl -fsSL https://raw.githubusercontent.com/trydirect/stackdog/main/install.sh

Pin a specific version:
```bash
curl -fsSL https://raw.githubusercontent.com/trydirect/stackdog/main/install.sh | sudo bash -s -- --version v0.3.0
curl -fsSL https://raw.githubusercontent.com/trydirect/stackdog/main/install.sh | sudo bash -s -- --version v0.3.1
```

If your repository has no published stable release yet, use `--version` explicitly.
Expand Down
2 changes: 1 addition & 1 deletion VERSION.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.0
0.3.1
2 changes: 1 addition & 1 deletion docs/INDEX.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Stackdog Security - Documentation Index

**Version:** 0.3.0
**Version:** 0.3.1
**Last Updated:** 2026-04-07

---
Expand Down
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Usage:
# curl -fsSL https://raw.githubusercontent.com/trydirect/stackdog/main/install.sh | sudo bash
# curl -fsSL https://raw.githubusercontent.com/trydirect/stackdog/main/install.sh | sudo bash -s -- --version v0.3.0
# curl -fsSL https://raw.githubusercontent.com/trydirect/stackdog/main/install.sh | sudo bash -s -- --version v0.3.1
#
# Installs the stackdog binary to /usr/local/bin.
# Requires: curl, tar, sha256sum (or shasum), Linux x86_64 or aarch64.
Expand Down Expand Up @@ -73,7 +73,7 @@ resolve_version() {
fi

if [ -z "$TAG" ]; then
error "Could not determine latest release. Create a GitHub release, or specify one with --version (e.g. --version v0.3.0)."
error "Could not determine latest release. Create a GitHub release, or specify one with --version (e.g. --version v0.3.1)."
fi

VERSION="$(echo "$TAG" | sed 's/^v//')"
Expand Down Expand Up @@ -136,7 +136,7 @@ main() {
echo "Install stackdog binary to ${INSTALL_DIR}."
echo ""
echo "Options:"
echo " --version VERSION Install a specific version (e.g. v0.3.0)"
echo " --version VERSION Install a specific version (e.g. v0.3.1)"
echo " --help Show this help"
exit 0
;;
Expand Down
15 changes: 11 additions & 4 deletions src/firewall/iptables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,17 @@ impl IptablesBackend {
.context("Failed to list iptables rules")?;

if !output.status.success() {
anyhow::bail!(
"Failed to list rules: {}",
String::from_utf8_lossy(&output.stderr)
);
let stderr = String::from_utf8_lossy(&output.stderr);
// A fresh box has no stackdog chain yet: nothing is banned,
// which is an empty list, not an error.
if stderr.contains("No chain/target/match by that name")
|| stderr.contains("No chain matches")
|| stderr.contains("does not exist")
|| stderr.contains("No such file or directory")
{
return Ok(Vec::new());
}
anyhow::bail!("Failed to list rules: {}", stderr);
}

let stdout = String::from_utf8_lossy(&output.stdout);
Expand Down
11 changes: 7 additions & 4 deletions src/firewall/nftables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,13 @@ impl NfTablesBackend {
.context("Failed to list nftables rules")?;

if !output.status.success() {
anyhow::bail!(
"Failed to list rules: {}",
String::from_utf8_lossy(&output.stderr)
);
let stderr = String::from_utf8_lossy(&output.stderr);
// A fresh box has no stackdog table or chain yet: nothing is
// banned, which is an empty list, not an error.
if stderr.contains("No such file or directory") || stderr.contains("does not exist") {
return Ok(Vec::new());
}
anyhow::bail!("Failed to list rules: {}", stderr);
}

let stdout = String::from_utf8_lossy(&output.stdout);
Expand Down
3 changes: 3 additions & 0 deletions src/sniff/analyzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ impl std::fmt::Display for AnomalySeverity {
}

/// Trait for AI-powered log analysis
// async-trait expands to #[must_use] fns returning Result; newer clippy
// flags that Result already implies must_use.
#[allow(clippy::double_must_use)]
#[async_trait]
pub trait LogAnalyzer: Send + Sync {
/// Summarize a batch of log entries
Expand Down
3 changes: 3 additions & 0 deletions src/sniff/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ pub struct LogEntry {
}

/// Trait for reading log entries from a source
// async-trait expands to #[must_use] fns returning Result; newer clippy
// flags that Result already implies must_use.
#[allow(clippy::double_must_use)]
#[async_trait]
pub trait LogReader: Send + Sync {
/// Read new entries since the last read position
Expand Down
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "stackdog-web",
"description": "Stackdog Security Web Dashboard",
"version": "0.3.0",
"version": "0.3.1",
"scripts": {
"start": "cross-env REACT_APP_VERSION=$npm_package_version webpack serve --mode development",
"build": "cross-env REACT_APP_VERSION=$npm_package_version webpack --mode production",
Expand Down
2 changes: 1 addition & 1 deletion website/app/docs/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { buildDocsStructuredData, toJsonLd } from '@/lib/structured-data';
const installCurl =
'curl -fsSL https://raw.githubusercontent.com/trydirect/stackdog/main/install.sh | sudo bash';
const installPinned =
'curl -fsSL https://raw.githubusercontent.com/trydirect/stackdog/main/install.sh | sudo bash -s -- --version v0.3.0';
'curl -fsSL https://raw.githubusercontent.com/trydirect/stackdog/main/install.sh | sudo bash -s -- --version v0.3.1';
const installDocker = `docker run --rm -it \\
--name stackdog \\
--network host \\
Expand Down
Loading
Loading