From 77f226c2299c513c5ebddfefe47c0f6d504abbeb Mon Sep 17 00:00:00 2001 From: Mike Date: Wed, 18 Mar 2026 20:40:20 -0500 Subject: [PATCH 1/2] chore: cleanup --- justfile | 48 ++++++++++++++++++++++++++++++++++++--- src/config.rs | 1 - src/models.rs | 10 ++++---- tests/integration_test.rs | 2 +- 4 files changed, 51 insertions(+), 10 deletions(-) diff --git a/justfile b/justfile index b4096be..cedbbbb 100644 --- a/justfile +++ b/justfile @@ -1,8 +1,50 @@ -# Simple Docker Manager - Security Checks +# Simple Docker Manager # Run `just --list` to see all available commands -# Default recipe - run all security checks -default: security-all +# Default recipe - build and check +default: check + +# ─── Development ────────────────────────────────────────────── + +# Format code +fmt: + cargo fmt + +# Check formatting (CI-friendly, no changes) +fmt-check: + cargo fmt -- --check + +# Run clippy lints +lint: + cargo clippy -- -D warnings + +# Run clippy with auto-fix +lint-fix: + cargo clippy --fix --allow-dirty -- -D warnings + +# Run tests +test: + cargo test + +# Build in debug mode +build: + cargo build + +# Build in release mode +build-release: + cargo build --release + +# Format, lint, and test +check: fmt-check lint test + +# Format, lint, test, and build release +ci: fmt-check lint test build-release + +# Run the dev server +run: + cargo run + +# ─── Security ───────────────────────────────────────────────── # Install all required security tools install-tools: diff --git a/src/config.rs b/src/config.rs index 49f1ca2..847721d 100644 --- a/src/config.rs +++ b/src/config.rs @@ -335,7 +335,6 @@ impl Default for Config { #[cfg(test)] mod tests { use super::*; - use std::env; #[test] fn test_config_defaults() { diff --git a/src/models.rs b/src/models.rs index 2258ee5..1ca7f6b 100644 --- a/src/models.rs +++ b/src/models.rs @@ -104,8 +104,7 @@ mod tests { assert!(json.contains("80")); assert!(json.contains("tcp")); - let deserialized: PortMapping = - serde_json::from_str(&json).expect("Should deserialize"); + let deserialized: PortMapping = serde_json::from_str(&json).expect("Should deserialize"); assert_eq!(deserialized.container_port, 8080); assert_eq!(deserialized.host_port, Some(80)); assert_eq!(deserialized.protocol, "tcp"); @@ -225,8 +224,7 @@ mod tests { }; let json = serde_json::to_string(&system).expect("Should serialize"); - let deserialized: SystemMetrics = - serde_json::from_str(&json).expect("Should deserialize"); + let deserialized: SystemMetrics = serde_json::from_str(&json).expect("Should deserialize"); assert_eq!(deserialized.total_containers, 10); assert_eq!(deserialized.running_containers, 7); @@ -282,6 +280,8 @@ mod tests { assert_eq!(deserialized.id, "sha256:abc123"); assert_eq!(deserialized.repo_tags.len(), 2); - assert!(deserialized.repo_tags.contains(&"ubuntu:latest".to_string())); + assert!(deserialized + .repo_tags + .contains(&"ubuntu:latest".to_string())); } } diff --git a/tests/integration_test.rs b/tests/integration_test.rs index 62b56fd..4af65b5 100644 --- a/tests/integration_test.rs +++ b/tests/integration_test.rs @@ -40,8 +40,8 @@ mod integration_tests { #[tokio::test] async fn test_session_lifecycle() { - use std::sync::Arc; use auth::SessionStore; + use std::sync::Arc; let config = Arc::new(config::Config { auth_enabled: true, From 26ca3c403292bf9ab1b1eaa522ee14a83bb27784 Mon Sep 17 00:00:00 2001 From: Mike Date: Wed, 18 Mar 2026 20:40:38 -0500 Subject: [PATCH 2/2] chore(main): release 1.0.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 7 +++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c04b615..ec3da6b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.0.0" + ".": "1.0.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index f53a9dc..1bb36f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.0.1](https://github.com/OscillateLabsLLC/simple-docker-manager/compare/v1.0.0...v1.0.1) (2026-03-19) + + +### Bug Fixes + +* security concerns ([beb3678](https://github.com/OscillateLabsLLC/simple-docker-manager/commit/beb3678f33a3861189d56f2033b0c23e8dacf532)) + ## [1.0.0](https://github.com/OscillateLabsLLC/simple-docker-manager/compare/v0.2.0...v1.0.0) (2025-05-26) diff --git a/Cargo.lock b/Cargo.lock index b1d794f..c7d83a0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1325,7 +1325,7 @@ dependencies = [ [[package]] name = "simple-docker-manager" -version = "1.0.0" +version = "1.0.1" dependencies = [ "argon2", "axum", diff --git a/Cargo.toml b/Cargo.toml index a29f23f..a2e1e7e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "simple-docker-manager" -version = "1.0.0" +version = "1.0.1" edition = "2021" license = "MIT"