This release includes 1 security fix for security teams reviewing exposed deployments.
Topics
+10 more
Affected surfaces
Summary
AI summarystripSensitiveData() now fully sanitizes error responses and headers to prevent API token and root password leakage.
Full changelog
Security
- CRITICAL FIX:
stripSensitiveData()now sanitizeserror.response.dataanderror.response.headers— prevents API tokens, rootPass, and other sensitive data from leaking via error cause chains- Whitelist-based
sanitizeResponseData()preserves only known error message fields (Hetznererror.message, DigitalOceanmessage, Vultrerror, Linodeerrors[].reason) - Response headers cleared to prevent
set-cookieand tracking header exposure - Linode
root_passreflection in error responses now stripped
- Whitelist-based
Changed
- Refactoring: Extracted
init.tscommand logic intosrc/core/deploy.ts(619 → 243 lines) - Refactoring:
PROVIDER_REGISTRYcentralized insrc/constants.ts— single source of truth for provider metadata - Refactoring:
stripSensitiveData()consolidated from 4 provider files intosrc/providers/base.ts - Security: SCP path hardening via
assertSafePath()with shell metacharacter rejection - Security: Token sanitization via
sanitizedEnv()applied to all remaining child process calls - Test count: 2,047 → 2,099 (+52 new tests)
- Test suites: 76 → 78 (+2 new suites)
Security Fixes
- `stripSensitiveData()` sanitizes `error.response.data` and `error.response.headers`, removing API tokens, root passwords, and other sensitive data from error cause chains.
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About kastelldev/kastell
Server security auditing and hardening toolkit. 413 security checks across 29 categories (SSH, Firewall, Docker, TLS, HTTP Headers), CIS/PCI-DSS/HIPAA compliance mapping, 19-step production hardening, fleet management, and forensic evidence collection. Supports Hetzner, DigitalOcean, Vultr, and Linode. 13 MCP tools.
Related context
Related tools
Beta — feedback welcome: [email protected]