Skip to content

Rename worker#7

Merged
andreasjansson merged 3 commits intomainfrom
rename-take2
Jan 27, 2026
Merged

Rename worker#7
andreasjansson merged 3 commits intomainfrom
rename-take2

Conversation

@andreasjansson
Copy link
Collaborator

No description provided.

@andreasjansson andreasjansson merged commit d6efc1b into main Jan 27, 2026
@andreasjansson andreasjansson deleted the rename-take2 branch January 27, 2026 19:11
Alanghj pushed a commit to Alanghj/moltworker that referenced this pull request Feb 5, 2026
This commit addresses multiple security vulnerabilities identified in the codebase:

**Authentication & Authorization:**
- cloudflare#1: CDP secret authentication now supports Authorization header (preferred over URL query param)
- cloudflare#12: Added structured JSON logging for authentication events (success/failure)

**Injection Vulnerabilities:**
- cloudflare#2: SSRF protection in /debug/gateway-api with path whitelist
- cloudflare#3: XSS prevention in /debug/ws-test with host header validation
- cloudflare#7: Command injection prevention with requestId sanitization + audit logging
- cloudflare#14: CDP header injection (CRLF) prevention in Fetch.fulfillRequest

**Path Traversal:**
- cloudflare#4: CDP setFileInputFiles now validates paths against /root/clawd
- cloudflare#8: /_admin/assets path traversal prevention with normalization

**Information Disclosure:**
- cloudflare#6: Environment variable names no longer logged (only count)
- cloudflare#11: Startup script now redacts secrets before logging
- cloudflare#16: /debug/container-config now redacts sensitive fields
- cloudflare#17: CDP scripts use Authorization header instead of URL for secrets

**Rate Limiting & DoS Prevention:**
- cloudflare#5: Added rate limiting middleware (30 req/min admin, 100 req/min CDP)

**Data Integrity & Race Conditions:**
- cloudflare#10: Added locks for gateway startup, R2 sync, and mount operations
- cloudflare#15: Sync now generates SHA-256 checksum for integrity verification

**Other:**
- cloudflare#9: Removed curl -k flag in Dockerfile (enables TLS verification)
- cloudflare#13: Added Cache-Control headers to prevent cache poisoning

All fixes maintain backwards compatibility.
Alanghj added a commit to Alanghj/moltworker that referenced this pull request Feb 5, 2026
This commit addresses multiple security vulnerabilities identified in the codebase:

**Authentication & Authorization:**
- cloudflare#1: CDP secret authentication now supports Authorization header (preferred over URL query param)
- cloudflare#12: Added structured JSON logging for authentication events (success/failure)

**Injection Vulnerabilities:**
- cloudflare#2: SSRF protection in /debug/gateway-api with path whitelist
- cloudflare#3: XSS prevention in /debug/ws-test with host header validation
- cloudflare#7: Command injection prevention with requestId sanitization + audit logging
- cloudflare#14: CDP header injection (CRLF) prevention in Fetch.fulfillRequest

**Path Traversal:**
- cloudflare#4: CDP setFileInputFiles now validates paths against /root/clawd
- cloudflare#8: /_admin/assets path traversal prevention with normalization

**Information Disclosure:**
- cloudflare#6: Environment variable names no longer logged (only count)
- cloudflare#11: Startup script now redacts secrets before logging
- cloudflare#16: /debug/container-config now redacts sensitive fields
- cloudflare#17: CDP scripts use Authorization header instead of URL for secrets

**Rate Limiting & DoS Prevention:**
- cloudflare#5: Added rate limiting middleware (30 req/min admin, 100 req/min CDP)

**Data Integrity & Race Conditions:**
- cloudflare#10: Added locks for gateway startup, R2 sync, and mount operations
- cloudflare#15: Sync now generates SHA-256 checksum for integrity verification

**Other:**
- cloudflare#9: Removed curl -k flag in Dockerfile (enables TLS verification)
- cloudflare#13: Added Cache-Control headers to prevent cache poisoning

All fixes maintain backwards compatibility.
Alanghj added a commit to Alanghj/moltworker that referenced this pull request Feb 5, 2026
This commit addresses multiple security vulnerabilities identified in the codebase:

**Authentication & Authorization:**
- cloudflare#1: CDP secret authentication now supports Authorization header (preferred over URL query param)
- cloudflare#12: Added structured JSON logging for authentication events (success/failure)

**Injection Vulnerabilities:**
- cloudflare#2: SSRF protection in /debug/gateway-api with path whitelist
- cloudflare#3: XSS prevention in /debug/ws-test with host header validation
- cloudflare#7: Command injection prevention with requestId sanitization + audit logging
- cloudflare#14: CDP header injection (CRLF) prevention in Fetch.fulfillRequest

**Path Traversal:**
- cloudflare#4: CDP setFileInputFiles now validates paths against /root/clawd
- cloudflare#8: /_admin/assets path traversal prevention with normalization

**Information Disclosure:**
- cloudflare#6: Environment variable names no longer logged (only count)
- cloudflare#11: Startup script now redacts secrets before logging
- cloudflare#16: /debug/container-config now redacts sensitive fields
- cloudflare#17: CDP scripts use Authorization header instead of URL for secrets

**Rate Limiting & DoS Prevention:**
- cloudflare#5: Added rate limiting middleware (30 req/min admin, 100 req/min CDP)

**Data Integrity & Race Conditions:**
- cloudflare#10: Added locks for gateway startup, R2 sync, and mount operations
- cloudflare#15: Sync now generates SHA-256 checksum for integrity verification

**Other:**
- cloudflare#9: Removed curl -k flag in Dockerfile (enables TLS verification)
- cloudflare#13: Added Cache-Control headers to prevent cache poisoning

All fixes maintain backwards compatibility.
Alanghj added a commit to Alanghj/moltworker that referenced this pull request Feb 5, 2026
This commit addresses multiple security vulnerabilities:

- CDP auth via Authorization header (cloudflare#1)
- SSRF whitelist in /debug/gateway-api (cloudflare#2)
- XSS fix in /debug/ws-test (cloudflare#3)
- Path traversal fixes (cloudflare#4, cloudflare#8)
- Rate limiting middleware (cloudflare#5)
- Env var names not logged (cloudflare#6)
- Command injection fix + audit logging (cloudflare#7)
- Dockerfile curl -k removed (cloudflare#9)
- Race condition locks (cloudflare#10)
- Secrets redaction in logs (cloudflare#11, cloudflare#16)
- Auth event logging (cloudflare#12)
- Cache poisoning prevention (cloudflare#13)
- CDP header injection fix (cloudflare#14)
- Sync integrity verification (cloudflare#15)
- CDP scripts use auth header (cloudflare#17)

All fixes maintain backwards compatibility.
Alanghj added a commit to Alanghj/moltworker that referenced this pull request Feb 5, 2026
- CDP auth via Authorization header (cloudflare#1)
- SSRF whitelist in /debug/gateway-api (cloudflare#2)
- XSS fix in /debug/ws-test (cloudflare#3)
- Path traversal fixes (cloudflare#4, cloudflare#8)
- Rate limiting middleware (cloudflare#5)
- Env var names not logged (cloudflare#6)
- Command injection fix + audit logging (cloudflare#7)
- Dockerfile curl -k removed (cloudflare#9)
- Race condition locks (cloudflare#10)
- Secrets redaction in logs (cloudflare#11, cloudflare#16)
- Auth event logging (cloudflare#12)
- Cache poisoning prevention (cloudflare#13)
- CDP header injection fix (cloudflare#14)
- Sync integrity verification (cloudflare#15)
- CDP scripts use auth header (cloudflare#17)

All fixes maintain backwards compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant