Initial commit: Compliance Scanner Agent

Autonomous security and compliance scanning agent for git repositories.
Features: SAST (Semgrep), SBOM (Syft), CVE monitoring (OSV.dev/NVD),
GDPR/OAuth pattern detection, LLM triage, issue creation (GitHub/GitLab/Jira),
PR reviews, and Dioxus fullstack dashboard.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Sharang Parnerkar
2026-03-02 13:30:17 +01:00
co-authored by Claude Opus 4.6
commit 0867e401bc
97 changed files with 11750 additions and 0 deletions
@@ -0,0 +1,18 @@
use compliance_core::DashboardConfig;
use super::error::DashboardError;
pub fn load_config() -> Result<DashboardConfig, DashboardError> {
Ok(DashboardConfig {
mongodb_uri: std::env::var("MONGODB_URI")
.map_err(|_| DashboardError::Config("Missing MONGODB_URI".to_string()))?,
mongodb_database: std::env::var("MONGODB_DATABASE")
.unwrap_or_else(|_| "compliance_scanner".to_string()),
agent_api_url: std::env::var("AGENT_API_URL")
.unwrap_or_else(|_| "http://localhost:3001".to_string()),
dashboard_port: std::env::var("DASHBOARD_PORT")
.ok()
.and_then(|p| p.parse().ok())
.unwrap_or(8080),
})
}