Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6a150b4aee |
No files matched your search
Generated
+9
-9
@@ -663,7 +663,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "compliance-agent"
|
name = "compliance-agent"
|
||||||
version = "0.1.0"
|
version = "0.4.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"axum",
|
"axum",
|
||||||
"base64",
|
"base64",
|
||||||
@@ -714,7 +714,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "compliance-core"
|
name = "compliance-core"
|
||||||
version = "0.1.0"
|
version = "0.4.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aes-gcm",
|
"aes-gcm",
|
||||||
"axum",
|
"axum",
|
||||||
@@ -744,7 +744,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "compliance-dashboard"
|
name = "compliance-dashboard"
|
||||||
version = "0.1.0"
|
version = "0.4.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"axum",
|
"axum",
|
||||||
@@ -784,7 +784,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "compliance-dast"
|
name = "compliance-dast"
|
||||||
version = "0.1.0"
|
version = "0.4.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64",
|
"base64",
|
||||||
"bollard",
|
"bollard",
|
||||||
@@ -810,7 +810,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "compliance-graph"
|
name = "compliance-graph"
|
||||||
version = "0.1.0"
|
version = "0.4.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bson",
|
"bson",
|
||||||
"chrono",
|
"chrono",
|
||||||
@@ -834,7 +834,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "compliance-mcp"
|
name = "compliance-mcp"
|
||||||
version = "0.1.0"
|
version = "0.4.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"axum",
|
"axum",
|
||||||
"bson",
|
"bson",
|
||||||
@@ -858,7 +858,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "compliance-smoke"
|
name = "compliance-smoke"
|
||||||
version = "0.1.0"
|
version = "0.4.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"axum",
|
"axum",
|
||||||
"compliance-core",
|
"compliance-core",
|
||||||
@@ -985,7 +985,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "control-map"
|
name = "control-map"
|
||||||
version = "0.1.0"
|
version = "0.4.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
@@ -6793,7 +6793,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "werkbank-exec"
|
name = "werkbank-exec"
|
||||||
version = "0.1.0"
|
version = "0.4.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"compliance-core",
|
"compliance-core",
|
||||||
"compliance-dast",
|
"compliance-dast",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "compliance-agent"
|
name = "compliance-agent"
|
||||||
version = "0.1.0"
|
version = "0.4.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "compliance-core"
|
name = "compliance-core"
|
||||||
version = "0.1.0"
|
version = "0.4.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "compliance-dashboard"
|
name = "compliance-dashboard"
|
||||||
version = "0.1.0"
|
version = "0.4.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
default-run = "compliance-dashboard"
|
default-run = "compliance-dashboard"
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ pub enum Route {
|
|||||||
McpTokensPage {},
|
McpTokensPage {},
|
||||||
}
|
}
|
||||||
|
|
||||||
const FAVICON: Asset = asset!("/assets/favicon.svg");
|
|
||||||
const MAIN_CSS: Asset = asset!("/assets/main.css");
|
const MAIN_CSS: Asset = asset!("/assets/main.css");
|
||||||
const TAILWIND_CSS: Asset = asset!("/assets/tailwind.css");
|
const TAILWIND_CSS: Asset = asset!("/assets/tailwind.css");
|
||||||
const VIS_NETWORK_JS: Asset = asset!("/assets/vis-network.min.js");
|
const VIS_NETWORK_JS: Asset = asset!("/assets/vis-network.min.js");
|
||||||
@@ -66,7 +65,8 @@ pub fn App() -> Element {
|
|||||||
// Also sent as the X-Robots-Tag header; in the markup it is visible
|
// Also sent as the X-Robots-Tag header; in the markup it is visible
|
||||||
// in the page source and honoured by crawlers that read only HTML.
|
// in the page source and honoured by crawlers that read only HTML.
|
||||||
document::Meta { name: "robots", content: "noindex, nofollow" }
|
document::Meta { name: "robots", content: "noindex, nofollow" }
|
||||||
document::Link { rel: "icon", href: FAVICON }
|
// The BreakPilot chevron, at a fixed path (served by the server).
|
||||||
|
document::Link { rel: "icon", r#type: "image/svg+xml", href: "/favicon.svg" }
|
||||||
document::Link { rel: "stylesheet", href: TAILWIND_CSS }
|
document::Link { rel: "stylesheet", href: TAILWIND_CSS }
|
||||||
document::Link { rel: "stylesheet", href: MAIN_CSS }
|
document::Link { rel: "stylesheet", href: MAIN_CSS }
|
||||||
document::Script { src: VIS_NETWORK_JS }
|
document::Script { src: VIS_NETWORK_JS }
|
||||||
|
|||||||
@@ -117,6 +117,10 @@ pub fn server_start(app: fn() -> Element) -> Result<(), DashboardError> {
|
|||||||
"/robots.txt",
|
"/robots.txt",
|
||||||
get(|| async { "User-agent: *\nDisallow: /\n" }),
|
get(|| async { "User-agent: *\nDisallow: /\n" }),
|
||||||
)
|
)
|
||||||
|
// The BreakPilot chevron at the paths browsers and tools ask
|
||||||
|
// for; `/favicon.ico` too, since browsers read an SVG there.
|
||||||
|
.route("/favicon.svg", get(favicon))
|
||||||
|
.route("/favicon.ico", get(favicon))
|
||||||
.route("/auth", get(auth_login))
|
.route("/auth", get(auth_login))
|
||||||
.route("/auth/staff", get(auth_staff_login))
|
.route("/auth/staff", get(auth_staff_login))
|
||||||
.route("/auth/callback", get(auth_callback))
|
.route("/auth/callback", get(auth_callback))
|
||||||
@@ -212,6 +216,20 @@ async fn seed_default_mcp_servers(db: &Database, mcp_endpoint_url: Option<&str>)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// The BreakPilot chevron, the icon the portal and the website use.
|
||||||
|
const FAVICON_SVG: &str = include_str!("../../assets/favicon.svg");
|
||||||
|
|
||||||
|
/// The favicon: the chevron as SVG, cacheable for a day.
|
||||||
|
async fn favicon() -> impl axum::response::IntoResponse {
|
||||||
|
(
|
||||||
|
[
|
||||||
|
(axum::http::header::CONTENT_TYPE, "image/svg+xml"),
|
||||||
|
(axum::http::header::CACHE_CONTROL, "public, max-age=86400"),
|
||||||
|
],
|
||||||
|
FAVICON_SVG,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
@@ -225,4 +243,10 @@ mod tests {
|
|||||||
assert_eq!(non_blank(Some(" ".into())), None);
|
assert_eq!(non_blank(Some(" ".into())), None);
|
||||||
assert_eq!(non_blank(None), None);
|
assert_eq!(non_blank(None), None);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn the_favicon_is_the_breakpilot_chevron() {
|
||||||
|
assert!(FAVICON_SVG.contains("M12 44 L32 20 L52 44"));
|
||||||
|
assert!(FAVICON_SVG.contains("#4F46E5"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "compliance-dast"
|
name = "compliance-dast"
|
||||||
version = "0.1.0"
|
version = "0.4.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "compliance-graph"
|
name = "compliance-graph"
|
||||||
version = "0.1.0"
|
version = "0.4.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "compliance-mcp"
|
name = "compliance-mcp"
|
||||||
version = "0.1.0"
|
version = "0.4.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "compliance-smoke"
|
name = "compliance-smoke"
|
||||||
version = "0.1.0"
|
version = "0.4.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Tiny Axum service exercising compliance-core M7.1 tenant gating. Run smoke.sh against it before merging anything that touches the auth/tenant path."
|
description = "Tiny Axum service exercising compliance-core M7.1 tenant gating. Run smoke.sh against it before merging anything that touches the auth/tenant path."
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "control-map"
|
name = "control-map"
|
||||||
version = "0.1.0"
|
version = "0.4.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "werkbank-exec"
|
name = "werkbank-exec"
|
||||||
version = "0.1.0"
|
version = "0.4.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Shared dynamic-execution logic: soft-PLC provisioning + industrial-protocol probing, used by the compliance agent and the Werkbank runner."
|
description = "Shared dynamic-execution logic: soft-PLC provisioning + industrial-protocol probing, used by the compliance agent and the Werkbank runner."
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user