domniguard 0.1.1 → 0.1.3

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.
Files changed (2) hide show
  1. package/README.md +17 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -19,13 +19,25 @@ curl -sSL https://unpkg.com/domniguard/install.sh | sudo bash
19
19
  ## Quick Commands
20
20
  - `domniguard run --config /etc/domniguard/config.yaml` — Run the daemon
21
21
  - `domniguard mcp --stdio` — Bridge stdio MCP client to running daemon Unix socket
22
+ - `domniguard mcp credentials [--show-token]` — Print MCP URL / socket / token + agent connect guide
22
23
  - `domniguard validate-config --config /etc/domniguard/config.yaml` — Validate YAML config
23
24
  - `domniguard doctor --config /etc/domniguard/config.yaml` — Inspect OS, backends, and connectivity
24
25
  - `domniguard actions list|approve|reject|rollback` — Manage approval actions via CLI
25
26
  - `domniguard audit show <event_id>` — View incident timeline
26
27
  - `domniguard setup` / `domniguard uninstall [--purge]` — Install/remove daemon service
28
+ - `domniguard vira connect|status|test|disconnect|set-webhook` — Connect first-party Vira AI agent
29
+
30
+ ## Connect Vira AI agent
31
+ ```bash
32
+ sudo domniguard vira connect
33
+ # open printed URL, enter the user code, approve org/agent
34
+ sudo domniguard vira test
35
+ sudo systemctl restart domniguard
36
+ ```
37
+ Override base URL with `VIRA_BASE_URL` or config `vira.base_url` (default `https://vira.like.ai.vn`).
27
38
 
28
39
  ## Webhook Verification (AI Agent Side)
40
+ ### Legacy DomniGuard HMAC (`webhook.auth_mode: domniguard`)
29
41
  Every webhook includes:
30
42
  - `X-DOmniGuard-Event-Id`
31
43
  - `X-DOmniGuard-Timestamp` (Unix seconds)
@@ -33,6 +45,11 @@ Every webhook includes:
33
45
 
34
46
  Verify in your agent by rejecting timestamps with `|now - timestamp| > 300` seconds and comparing the HMAC digest in constant time.
35
47
 
48
+ ### GitHub / Vira HMAC (`webhook.auth_mode: github`)
49
+ - `X-Hub-Signature-256`: `sha256=<hex>` over the **raw body** (no timestamp prefix)
50
+ - `Idempotency-Key`: delivery id
51
+ - Payload capped at 64 KiB
52
+
36
53
  ## Security Model
37
54
  - Non-loopback HTTP MCP server strictly requires TLS (and supports optional mTLS).
38
55
  - 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`).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "domniguard",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
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.1",
19
- "domniguard-linux-arm64": "0.1.1"
18
+ "domniguard-linux-x64": "0.1.3",
19
+ "domniguard-linux-arm64": "0.1.3"
20
20
  }
21
21
  }