domniguard 0.1.5 → 0.1.8
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 +54 -16
- package/install.sh +9 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,28 +4,66 @@ 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
|
-
|
|
20
|
-
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
+
|
|
29
|
+
## Commands
|
|
30
|
+
|
|
31
|
+
### Day-to-day ops
|
|
32
|
+
| Command | Purpose |
|
|
33
|
+
|---|---|
|
|
34
|
+
| `domniguard status` | Service/daemon up?, webhook min_severity, MCP listen, Vira |
|
|
35
|
+
| `domniguard config show` | Safe config summary (no secret values) |
|
|
36
|
+
| `domniguard config set <key> <value>` | Set allowlisted keys (e.g. `webhook.min_severity MEDIUM`) |
|
|
37
|
+
| `domniguard doctor [--json]` | Deeper health: OS, firewall/service backends, config validity |
|
|
38
|
+
| `domniguard validate-config` | Validate `/etc/domniguard/config.yaml` |
|
|
39
|
+
| `domniguard version` | Binary version / commit |
|
|
40
|
+
|
|
41
|
+
### Install / upgrade
|
|
42
|
+
| Command | Purpose |
|
|
43
|
+
|---|---|
|
|
44
|
+
| `domniguard setup` | First-time install (dirs, secrets, TLS, unit, optional Vira) |
|
|
45
|
+
| `domniguard upgrade` | Replace binary + refresh unit + restart (keeps config) |
|
|
46
|
+
| `domniguard uninstall [--purge]` | Stop service / remove unit (`--purge` wipes data) |
|
|
47
|
+
|
|
48
|
+
### Agent / MCP / Vira
|
|
49
|
+
| Command | Purpose |
|
|
50
|
+
|---|---|
|
|
51
|
+
| `domniguard mcp credentials [--show-token]` | MCP URL + Bearer token for Vira/agents |
|
|
52
|
+
| `domniguard mcp --stdio` | Local stdio bridge to daemon socket |
|
|
53
|
+
| `domniguard vira connect\|status\|test\|disconnect\|set-webhook` | First-party Vira webhook connect |
|
|
54
|
+
|
|
55
|
+
### Incident / approvals
|
|
56
|
+
| Command | Purpose |
|
|
57
|
+
|---|---|
|
|
58
|
+
| `domniguard actions list\|approve\|reject\|rollback` | Human approval queue |
|
|
59
|
+
| `domniguard audit show <event_id>` | Incident timeline |
|
|
60
|
+
| `domniguard run` | Foreground daemon (normally via systemd) |
|
|
61
|
+
|
|
62
|
+
Example:
|
|
63
|
+
```bash
|
|
64
|
+
sudo domniguard config set webhook.min_severity MEDIUM
|
|
65
|
+
sudo domniguard status
|
|
66
|
+
```
|
|
29
67
|
|
|
30
68
|
## Connect Vira AI agent
|
|
31
69
|
```bash
|
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.8",
|
|
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.8",
|
|
19
|
+
"domniguard-linux-arm64": "0.1.8"
|
|
20
20
|
}
|
|
21
21
|
}
|