Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Fix four customer-facing doc drift findings (RBAC, OIDC, helm, webhooks)

rcourtman9496d6f6d844
diff --git a/docs/KUBERNETES.md b/docs/KUBERNETES.md
index f092be10bf..0c3de61bb6 100644
--- a/docs/KUBERNETES.md
+++ b/docs/KUBERNETES.md
@@ -31,7 +31,7 @@ The Pulse Server is the central hub that collects metrics and manages agents.
--set persistence.size=10Gi
```
- > **Note**: For production, ensure you configure a proper `storageClass` or `deployment.strategy.type=Recreate` if using ReadWriteOnce (RWO) volumes.
+ > **Note**: For production, ensure you configure a proper `persistence.storageClass` or `strategy.type=Recreate` if using ReadWriteOnce (RWO) volumes. The chart's default `strategy.type` is `RollingUpdate`, which can hit Multi-Attach errors with RWO PVCs during upgrade.
### Option B: Generating Static Manifests (For Talos / GitOps)
@@ -44,7 +44,7 @@ helm template pulse pulse/pulse \
--namespace pulse \
--set persistence.enabled=true \
> pulse-server.yaml
-```text
+```
You can then apply this file:
diff --git a/docs/OIDC.md b/docs/OIDC.md
index 5a414d26e0..460a6ef011 100644
--- a/docs/OIDC.md
+++ b/docs/OIDC.md
@@ -38,17 +38,18 @@ Restrict access to specific users or groups:
Automatically assign Pulse roles based on OIDC group membership. When a user logs in, Pulse checks their groups claim and assigns the corresponding roles.
-**Configuration via UI:**
-Go to **Settings → Security → Single Sign-On → Group Role Mappings** and add mappings like:
+**Configuration:**
+Group-role mappings are configured per SSO provider through the UI (or the
+SSO provider API for automated setup) — there is no environment-variable
+override. Go to **Settings → Security → Single Sign-On**, edit the provider,
+and populate **Group Role Mappings** with entries like:
- `oidc-admins` → `admin`
- `oidc-operators` → `operator`
- `oidc-viewers` → `viewer`
-**Configuration via Environment:**
-```bash
-# Format: group1=role1,group2=role2
-OIDC_GROUP_ROLE_MAPPINGS="oidc-admins=admin,oidc-operators=operator"
-```
+The mappings persist on the provider record as a `groupRoleMappings` JSON
+field. Provider-level config (including this field) can be PUT through the
+SSO provider API for automated setup.
**How it works:**
- On each login, Pulse reads the user's groups from the configured groups claim.
@@ -109,7 +110,7 @@ For persistent sessions that don't require frequent re-authentication:
| **`invalid_id_token`** | Issuer URL mismatch. Check logs (`LOG_LEVEL=debug`) to see the expected vs. received issuer. |
| **`unexpected signature algorithm "HS256"`** | Your IdP is signing with HS256. Configure it to use **RS256**. |
| **Redirect Loop** | Check `X-Forwarded-Proto` header (must be `https`) and cookie settings. |
-| **Self-Signed Certs** | Mount your CA bundle to `/etc/ssl/certs/oidc-ca.pem` and set `OIDC_CA_BUNDLE`. |
+| **Self-Signed Certs** | Set the **CA Bundle** field on the SSO provider to a host path readable by Pulse (e.g. `/etc/ssl/certs/oidc-ca.pem` mounted into the container). The field is stored on the provider record as `oidc.caBundle`; there is no `OIDC_CA_BUNDLE` env var. |
### Debugging
Enable debug logs to trace the OIDC flow:
diff --git a/docs/RBAC.md b/docs/RBAC.md
index d8943ff23d..99a58f3d07 100644
--- a/docs/RBAC.md
+++ b/docs/RBAC.md
@@ -177,7 +177,7 @@ A typical team configuration:
| alice | `admin` | Full access to everything |
| bob | `operator` | Can view nodes/VMs and manage alerts |
| carol | `viewer` | Read-only access to monitoring views and metrics |
-| monitoring-bot | API token with `alerts:read` scope | Automated alert polling |
+| monitoring-bot | API token with `monitoring:read` scope | Automated alert polling |
---
diff --git a/docs/WEBHOOKS.md b/docs/WEBHOOKS.md
index 398f39798c..2573c98741 100644
--- a/docs/WEBHOOKS.md
+++ b/docs/WEBHOOKS.md
@@ -41,7 +41,9 @@ For generic webhooks, use Go templates to format the JSON payload.
- `{{.ValueFormatted}}`, `{{.ThresholdFormatted}}`
- `{{.StartTime}}`, `{{.Acknowledged}}`, `{{.AckTime}}`, `{{.AckUser}}`
-**Template helpers:** `title`, `upper`, `lower`, `printf`, `urlquery`/`urlencode`, `urlpath`
+**Template helpers:** `title`, `upper`, `lower`, `printf`, `urlquery`/`urlencode`, `urlpath`/`pathescape`, `jsonString`
+
+`jsonString` is the safe way to embed string values inside a JSON payload — it escapes quotes, backslashes, and control characters without wrapping the value in surrounding quotes, so you can write `"text": "{{.Message | jsonString}}"` and stay valid JSON even when the message contains `"` or newlines. Pulse's shipped templates use it extensively; prefer it over manual escaping in custom templates.
**Service-specific notes:**
- **Telegram**: include `chat_id` in the URL query string.