domniguard 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -7
- package/install.sh +9 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,18 +4,28 @@ DOmniGuard is a lightweight, single-binary Linux security daemon combining perio
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### Fresh install (one command, no Node.js required)
|
|
8
8
|
```bash
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
curl -sSL https://unpkg.com/domniguard-linux-x64/install.sh | sudo bash -s -- --non-interactive
|
|
10
|
+
# arm64: https://unpkg.com/domniguard-linux-arm64/install.sh
|
|
11
11
|
```
|
|
12
|
-
|
|
12
|
+
Install script downloads the platform binary from npm, then runs `setup` (or `upgrade` if already installed).
|
|
13
13
|
|
|
14
|
-
### Via
|
|
14
|
+
### Via npm (Node.js >= 18)
|
|
15
15
|
```bash
|
|
16
|
-
|
|
16
|
+
sudo npm install -g domniguard && sudo domniguard setup
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
### Upgrade existing install (one command)
|
|
20
|
+
```bash
|
|
21
|
+
curl -sSL https://unpkg.com/domniguard-linux-x64/install.sh | sudo bash
|
|
22
|
+
```
|
|
23
|
+
Or with npm:
|
|
24
|
+
```bash
|
|
25
|
+
sudo npm install -g domniguard@latest && sudo domniguard upgrade
|
|
26
|
+
```
|
|
27
|
+
`upgrade` replaces `/usr/local/bin/domniguard`, refreshes the systemd/OpenRC unit, and restarts — it never overwrites config or secrets.
|
|
28
|
+
|
|
19
29
|
## Quick Commands
|
|
20
30
|
- `domniguard run --config /etc/domniguard/config.yaml` — Run the daemon
|
|
21
31
|
- `domniguard mcp --stdio` — Bridge stdio MCP client to running daemon Unix socket
|
|
@@ -24,7 +34,7 @@ curl -sSL https://unpkg.com/domniguard/install.sh | sudo bash
|
|
|
24
34
|
- `domniguard doctor --config /etc/domniguard/config.yaml` — Inspect OS, backends, and connectivity
|
|
25
35
|
- `domniguard actions list|approve|reject|rollback` — Manage approval actions via CLI
|
|
26
36
|
- `domniguard audit show <event_id>` — View incident timeline
|
|
27
|
-
- `domniguard setup` / `domniguard uninstall [--purge]` — Install/
|
|
37
|
+
- `domniguard setup` / `domniguard upgrade` / `domniguard uninstall [--purge]` — Install / upgrade / remove
|
|
28
38
|
- `domniguard vira connect|status|test|disconnect|set-webhook` — Connect first-party Vira AI agent
|
|
29
39
|
|
|
30
40
|
## Connect Vira AI agent
|
|
@@ -54,6 +64,7 @@ Verify in your agent by rejecting timestamps with `|now - timestamp| > 300` seco
|
|
|
54
64
|
- Non-loopback HTTP MCP server strictly requires TLS (and supports optional mTLS).
|
|
55
65
|
- Hardcoded guardrails cannot be disabled via config: protected admin/private/local IPs, system PIDs/processes, path sandboxing + sensitive file denylist, and strict argument validation (no `sh -c`).
|
|
56
66
|
- Action tools not declared in policies default to `require_approval`.
|
|
67
|
+
- Legitimate `port_unexpected` findings: Agent should call `allowlist_expected_port` (Telegram HITL) instead of ignoring the alert; Approve appends the port to `expected_ports` and hot-reloads.
|
|
57
68
|
|
|
58
69
|
## License
|
|
59
70
|
UNLICENSED (Proprietary).
|
package/install.sh
CHANGED
|
@@ -17,7 +17,9 @@ case "$ARCH_RAW" in
|
|
|
17
17
|
esac
|
|
18
18
|
|
|
19
19
|
PKG="domniguard-linux-${ARCH}"
|
|
20
|
-
|
|
20
|
+
# Optional pin: DOMNIGUARD_VERSION=0.1.6 curl ... | sudo bash
|
|
21
|
+
VERSION="${DOMNIGUARD_VERSION:-latest}"
|
|
22
|
+
META_URL="https://registry.npmjs.org/${PKG}/${VERSION}"
|
|
21
23
|
|
|
22
24
|
TMP_DIR="$(mktemp -d)"
|
|
23
25
|
trap 'rm -rf "$TMP_DIR"' EXIT
|
|
@@ -61,4 +63,10 @@ tar -xzf "$TMP_DIR/pkg.tgz" -C "$TMP_DIR"
|
|
|
61
63
|
BIN_PATH="$TMP_DIR/package/bin/domniguard"
|
|
62
64
|
chmod +x "$BIN_PATH"
|
|
63
65
|
|
|
66
|
+
# Existing installs: upgrade binary + unit only (never touch config/secrets).
|
|
67
|
+
if [ -x /usr/local/bin/domniguard ] && [ -f /etc/domniguard/config.yaml ]; then
|
|
68
|
+
echo "Existing install detected — running upgrade..."
|
|
69
|
+
exec "$BIN_PATH" upgrade
|
|
70
|
+
fi
|
|
71
|
+
|
|
64
72
|
exec "$BIN_PATH" setup "$@"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "domniguard",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "DOmniGuard AI-Driven Linux Server Security Daemon (MCP + Webhook)",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"bin": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"node": ">=18"
|
|
16
16
|
},
|
|
17
17
|
"optionalDependencies": {
|
|
18
|
-
"domniguard-linux-x64": "0.1.
|
|
19
|
-
"domniguard-linux-arm64": "0.1.
|
|
18
|
+
"domniguard-linux-x64": "0.1.6",
|
|
19
|
+
"domniguard-linux-arm64": "0.1.6"
|
|
20
20
|
}
|
|
21
21
|
}
|