domniguard 0.1.0 → 0.1.2

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