Skip to content

feat(den): secure static worker attach#1894

Closed
pascalandr wants to merge 12 commits into
different-ai:devfrom
Pagecran:pr/static-worker-attach-security
Closed

feat(den): secure static worker attach#1894
pascalandr wants to merge 12 commits into
different-ai:devfrom
Pagecran:pr/static-worker-attach-security

Conversation

@pascalandr

@pascalandr pascalandr commented May 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds static worker attach security: attach route/UI, owner/admin permission gate, token verification without token echoing, SSRF/DNS-rebinding policy, and full static worker tests.

This PR is stacked on #1893. The branch was updated on top of the latest pr/static-provisioner-backend content, and the attach-security tests live in this PR delta.

Verification

  • bun test ee/apps/den-api/test/provisioner-static.test.ts — passed, 29 tests.
  • Local branch diff vs pr/static-provisioner-backend reviewed; attach-security delta only:
    • apps/app/src/react-app/domains/settings/pages/cloud-workers-view.tsx
    • ee/apps/den-api/src/routes/workers/core.ts
    • ee/apps/den-api/src/routes/workers/shared.ts
    • ee/apps/den-api/test/provisioner-static.test.ts
  • No tasks/**, docs/scrs/**, codemaps, or generated app-version files are included.

Known risks

Linked issues

@vercel

vercel Bot commented May 22, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, Comment, Open in v0 Jun 10, 2026 4:44pm

@vercel

vercel Bot commented May 22, 2026

Copy link
Copy Markdown
Contributor

@pascalandr is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

Merge upstream dev into pr/static-worker-attach-security and resolve Den worker route conflicts while preserving static attach security checks and current dev billing behavior.
…ach-security

# Conflicts:
#	apps/app/src/react-app/domains/settings/pages/cloud-workers-view.tsx

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 7 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread ee/apps/den-api/src/routes/workers/core.ts Outdated
Move static worker attach quota enforcement into the assignment lock so concurrent attach requests cannot exceed organization worker limits.
Permit explicitly allow-listed HTTPS worker hostnames while preserving DNS resolution checks against unsafe addresses.
Keep HTTPS static worker fetches on their certificate hostname and restrict Electron main-process fetches to configured remote workspace origins.
@pascalandr

Copy link
Copy Markdown
Contributor Author

Superseded by the clean consolidated static/on-prem workers PR #2173.

@pascalandr pascalandr closed this Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant