Pulse/docs
rcourtman 29f4879cd4 test: add comprehensive security tests and documentation
Implements all remaining Codex recommendations before launch:

1. Privileged Methods Tests:
   - TestPrivilegedMethodsCompleteness ensures all host-side RPCs are protected
   - Will fail if new privileged RPC is added without authorization
   - Verifies read-only methods are NOT in privilegedMethods

2. ID-Mapped Root Detection Tests:
   - TestIDMappedRootDetection covers all boundary conditions
   - Tests UID/GID range detection (both must be in range)
   - Tests multiple ID ranges, edge cases, disabled mode
   - 100% coverage of container identification logic

3. Authorization Tests:
   - TestPrivilegedMethodsBlocked verifies containers can't call privileged RPCs
   - TestIDMappedRootDisabled ensures feature can be disabled
   - Tests both container and host credentials

4. Comprehensive Security Documentation (23 KB):
   - Architecture overview with diagrams
   - Complete authentication & authorization flow
   - Rate limiting details (already implemented: 20/min per peer)
   - SSH security model and forced commands
   - Container isolation mechanisms
   - Monitoring & alerting recommendations
   - Development mode documentation (PULSE_DEV_ALLOW_CONTAINER_SSH)
   - Troubleshooting guide with common issues
   - Incident response procedures

Rate Limiting Status:
- Already implemented in throttle.go (20 req/min, burst 10, max 10 concurrent)
- Per-peer rate limiting at line 328 in main.go
- Per-node concurrency control at line 825 in main.go
- Exceeds Codex's requirements

All tests pass. Documentation covers all security aspects.

Addresses final Codex recommendations for production readiness.
2025-10-19 16:47:13 +00:00
..
development feat: streamline docker agent onboarding 2025-10-14 09:45:32 +00:00
images Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
API.md Add guest agent caching and update doc hints (refs #560) 2025-10-16 08:15:49 +00:00
CONFIGURATION.md Add configurable backup polling interval 2025-10-18 13:06:41 +00:00
DOCKER.md Adopt multi-token auth across docs, UI, and tooling 2025-10-14 15:47:49 +00:00
DOCKER_HUB_README.md Adopt multi-token auth across docs, UI, and tooling 2025-10-14 15:47:49 +00:00
DOCKER_MONITORING.md feat: enhance alerts system with tests and improved thresholds 2025-10-15 22:25:04 +00:00
FAQ.md Adopt multi-token auth across docs, UI, and tooling 2025-10-14 15:47:49 +00:00
frontend-style-guide.md Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
INSTALL.md Add Helm chart tooling, CI, and release packaging 2025-10-18 11:50:57 +00:00
KUBERNETES.md Add Helm chart tooling, CI, and release packaging 2025-10-18 11:50:57 +00:00
MIGRATION.md Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
OIDC.md Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
PORT_CONFIGURATION.md Add guest agent caching and update doc hints (refs #560) 2025-10-16 08:15:49 +00:00
PROXY_AUTH.md Adopt multi-token auth across docs, UI, and tooling 2025-10-14 15:47:49 +00:00
PULSE_SENSOR_PROXY_HARDENING.md Add guest agent caching and update doc hints (refs #560) 2025-10-16 08:15:49 +00:00
RELEASE.md Add Helm chart tooling, CI, and release packaging 2025-10-18 11:50:57 +00:00
REVERSE_PROXY.md Add guest agent caching and update doc hints (refs #560) 2025-10-16 08:15:49 +00:00
SCREENSHOTS.md Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
SECURITY.md Add guest agent caching and update doc hints (refs #560) 2025-10-16 08:15:49 +00:00
TEMPERATURE_MONITORING.md fix: gracefully handle standalone node cleanup limitation 2025-10-18 07:34:18 +00:00
TEMPERATURE_MONITORING_SECURITY.md test: add comprehensive security tests and documentation 2025-10-19 16:47:13 +00:00
TROUBLESHOOTING.md Add guest agent caching and update doc hints (refs #560) 2025-10-16 08:15:49 +00:00
VM_DISK_MONITORING.md Ignore read-only guest filesystems in disk aggregation 2025-10-14 16:13:53 +00:00
WEBHOOKS.md feat: add docker agent command handling 2025-10-15 19:27:19 +00:00
zfs-monitoring.md Add guest agent caching and update doc hints (refs #560) 2025-10-16 08:15:49 +00:00