본문으로 건너뛰기
cccskills
무료GitHub에 공개

daytona-windows-cert

Test iPolloWork's handling of corporate certificates in a Daytona Windows sandbox. Set up valid and broken HTTPS certificate chains, then verify that the desktop app and runtimes it starts use certificates trusted by Windows.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

test on Windows, enterprise CA, corporate certificate, GPO cert, TLS fetch failed, Windows sandbox, daytona windows, self-hosted cert. Use when validating iPolloWork Windows enterprise TLS/OS-trust fixes in a Daytona Windows sandbox.

연동 도구GitHub
설치 방법 보기

이럴 때 유용합니다

  • Reproduce corporate certificate failures on Windows
  • Verify that the app uses Windows certificate trust
  • Compare valid and broken HTTPS certificate chains
  • Check certificate sharing with spawned runtimes

포함된 파일(2)

  • SKILL.md12.4 KB
  • scripts/ca-probe.js920 B

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Skill: Daytona Windows Enterprise Certificate Test

Run the verified Windows repro for iPolloWork enterprise TLS behavior: install a fake corporate CA into the Windows machine store, serve healthy and broken HTTPS control planes, install a Windows build, and prove the desktop app and spawned runtimes use the operating system trust path.

Use this as the Windows companion to daytona-electron-test. Use fraimz when the result needs frame-by-frame proof, screenshots, or PR evidence. Reuse the repo support assets instead of copying their logic: scripts/support/setup-ipollowork-tls-repro.ps1, scripts/support/ipollowork-doctor.ps1, and docs/support/enterprise-network-doctor.md.

When to use

  • User says "test on Windows", "Windows sandbox", or "daytona windows".
  • User is validating an enterprise CA, corporate certificate, GPO cert, or self-hosted cert path on Windows.
  • User reports TLS fetch failed, fetch failed, or a certificate-specific failure when connecting iPolloWork to a self-hosted control plane.
  • User needs to prove the Windows app uses OS trust and spawned runtimes receive the OS trust bundle via NODE_EXTRA_CA_CERTS.

Prereqs

  • Daytona CLI must be at least the API version. The verified CLI was v0.194:
brew upgrade daytonaio/cli/daytona
brew link --overwrite daytona
daytona version
  • gh must be authenticated to Devin-AXIS/iPolloWork and able to create/delete temporary public prereleases.
  • Have a Windows iPolloWork build or installer ready. Keep secrets and customer materials out of the temporary release asset.

1. Create the Windows sandbox

Windows sandboxes are VM-only and are created from Daytona's prebuilt windows snapshot. Available classes are windows-small (1 vCPU / 4 GB), windows-medium (2 vCPU / 8 GB), and windows-large (4 vCPU / 16 GB). The verified path used windows-medium:

daytona create --snapshot windows-medium

The command prints a sandbox ID and a web terminal URL. Save the ID once:

SANDBOX_ID="<SANDBOX_ID>"

Windows sandboxes may auto-stop. Restart the sandbox before continuing:

daytona sandbox start <ID>

Use the saved shell variable for later commands:

daytona sandbox start "$SANDBOX_ID"

2. exec vs VNC (the session-0 trap)

Important: daytona ssh <ID> is interactive-only and fails from scripts on the host-key prompt. Use this shape for setup commands instead:

daytona exec <ID> -- <cmd>

For example:

daytona exec "$SANDBOX_ID" -- whoami

daytona exec runs as nt authority\system in Windows session 0. That is useful for admin setup, but it cannot see the interactive VNC user's app UI, and $env:APPDATA resolves to the SYSTEM profile, not C:\Users\Administrator. Do not inspect app UI state, userData, or installed app settings through SYSTEM profile paths.

Human GUI access is: Daytona Dashboard -> sandbox -> ⋮ menu -> VNC -> Connect. Use exec for setup and logs; use VNC to drive the installed iPolloWork app and observe the user-visible result.

3. Get the app build in

For large Windows builds, zip the build, attach it to a temporary public prerelease, and download it inside the VM with the Windows-bundled curl.exe and tar. The curl.exe 8.x and tar binaries ship in the Windows image.

From the repo root on the host, stage a zip that expands under C:\ow. Include the app build plus the support scripts from this repo so the VM reuses the checked-in harness:

TAG="ipollowork-win-cert-repro-$(date +%Y%m%d%H%M%S)"
ZIP="/tmp/${TAG}.zip"
# Put your Windows app build under /tmp/ipollowork-win-cert-upload/ipollowork/app
# and include scripts/support/setup-ipollowork-tls-repro.ps1 plus
# scripts/support/ipollowork-doctor.ps1 under ipollowork/scripts/support/.
# Include .opencode/skills/daytona-windows-cert/scripts/ca-probe.js as
# ipollowork/ca-probe.js.
ditto -c -k --keepParent /tmp/ipollowork-win-cert-upload/ipollowork "$ZIP"
gh release create "$TAG" "$ZIP" --repo Devin-AXIS/iPolloWork --prerelease

The release command shape from the verified session was:

gh release create <tag> <zip> --repo Devin-AXIS/iPolloWork --prerelease

Download and extract inside Windows:

DOWNLOAD_URL="https://github.com/Devin-AXIS/iPolloWork/releases/download/${TAG}/$(basename "$ZIP")"
daytona exec "$SANDBOX_ID" -- cmd /c 'mkdir C:\ow 2>NUL'
daytona exec "$SANDBOX_ID" -- cmd /c "curl.exe -L -o C:\ow\app.zip $DOWNLOAD_URL"
daytona exec "$SANDBOX_ID" -- cmd /c 'tar -xf C:\ow\app.zip -C C:\ow'

The Windows download/extract shape from the verified session was:

daytona exec "$SANDBOX_ID" -- cmd /c 'curl.exe -L -o C:\ow\app.zip <release-download-url>'
daytona exec "$SANDBOX_ID" -- cmd /c 'tar -xf C:\ow\app.zip -C C:\ow'

If the zip only contains the app, fetch the support scripts from the same branch instead of rewriting them:

daytona exec "$SANDBOX_ID" -- cmd /c 'mkdir C:\ow\ipollowork\scripts\support 2>NUL'
daytona exec "$SANDBOX_ID" -- cmd /c 'curl.exe -L -o C:\ow\ipollowork\scripts\support\setup-ipollowork-tls-repro.ps1 https://raw.githubusercontent.com/Devin-AXIS/iPolloWork/dev/scripts/support/setup-ipollowork-tls-repro.ps1'
daytona exec "$SANDBOX_ID" -- cmd /c 'curl.exe -L -o C:\ow\ipollowork\scripts\support\ipollowork-doctor.ps1 https://raw.githubusercontent.com/Devin-AXIS/iPolloWork/dev/scripts/support/ipollowork-doctor.ps1'

4. Stand up the enterprise-TLS repro

scripts/support/setup-ipollowork-tls-repro.ps1 creates a fake corporate root and intermediate, trusts the root in Cert:\LocalMachine\Root, maps poc.ipollowork.test to localhost, and serves:

  • https://poc.ipollowork.test:8443 — healthy chain.
  • https://poc.ipollowork.test:9443 — broken chain with the intermediate removed.

Do not run the listeners only inside a one-off daytona exec; the PowerShell listeners die when that exec session closes. Persist them with a scheduled task that runs as SYSTEM and keeps the session alive:

ENCODED=$(python3 - <<'PY'
import base64
script = r'''
$ErrorActionPreference = "Stop"
$repo = "C:\ow\ipollowork"
$cmdPath = "C:\ow\start-ipollowork-tls-repro.cmd"
$cmd = @"
@echo off
cd /d "$repo"
powershell -NoProfile -ExecutionPolicy Bypass -File scripts\support\setup-ipollowork-tls-repro.ps1
powershell -NoProfile -ExecutionPolicy Bypass -Command "while (`$true) { Start-Sleep -Seconds 3600 }"
"@
Set-Content -LiteralPath $cmdPath -Value $cmd -Encoding ASCII
schtasks /create /f /sc onstart /ru SYSTEM /tn iPolloWorkTlsRepro /tr $cmdPath
schtasks /run /tn iPolloWorkTlsRepro
'''
print(base64.b64encode(script.encode("utf-16le")).decode())
PY
)
daytona exec "$SANDBOX_ID" -- powershell -NoProfile -ExecutionPolicy Bypass -EncodedCommand "$ENCODED"

Verify the healthy listener is up:

daytona exec "$SANDBOX_ID" -- cmd /c 'netstat -ano | findstr :8443'

Optional diagnostic output from the checked-in doctor script:

daytona exec "$SANDBOX_ID" -- powershell -NoProfile -ExecutionPolicy Bypass -File 'C:\ow\ipollowork\scripts\support\ipollowork-doctor.ps1' -WebUrl https://poc.ipollowork.test:8443 -ApiUrl https://poc.ipollowork.test:9443 -ExpectedIssuerMatch "iPolloWork TLS Repro"

5. Verify the fix

Probe Electron's view of the Windows machine store

Copy .opencode/skills/daytona-windows-cert/scripts/ca-probe.js into the VM as C:\ow\ca-probe.js. Its contents are intentionally small and reusable:

daytona exec "$SANDBOX_ID" -- cmd /c 'copy C:\ow\ipollowork\ca-probe.js C:\ow\ca-probe.js'
const { X509Certificate } = require("node:crypto");
const tls = require("node:tls");

const needle = (process.env.IPOLLOWORK_TLS_REPRO_CA_MATCH || "iPolloWork TLS Repro").toLowerCase();

function countMatchingSubjects(certificates) {
  let count = 0;
  for (const pem of certificates) {
    try {
      const certificate = new X509Certificate(pem);
      if (certificate.subject.toLowerCase().includes(needle)) count += 1;
    } catch {
      // Ignore entries that are not parseable X.509 certificates.
    }
  }
  return count;
}

const system = tls.getCACertificates("system");
const bundled = tls.getCACertificates("default");

const result = {
  systemCount: system.length,
  reproInSystem: countMatchingSubjects(system),
  defaultCount: bundled.length,
  reproInDefault: countMatchingSubjects(bundled),
};

console.log(JSON.stringify(result, null, 2));

if (result.reproInSystem === 0) {
  process.exitCode = 1;
}

Run Electron in node mode. Adjust the executable path for your unpacked build or installed app:

daytona exec "$SANDBOX_ID" -- cmd /c 'set ELECTRON_RUN_AS_NODE=1 && "C:\ow\ipollowork\app\iPolloWork.exe" C:\ow\ca-probe.js'

The verified result was:

{"systemCount":42,"reproInSystem":6,"defaultCount":150,"reproInDefault":0}

This is the crucial #2562 verification for the GPO/enterprise-CA case: the Windows system store (LocalMachine\Root) contains the repro corporate CA, while the bundled Mozilla roots do not.

Verify the installed app via VNC

Drive the installed iPolloWork Windows app through VNC, not daytona exec.

  1. Open Daytona Dashboard -> sandbox -> ⋮ menu -> VNC -> Connect.
  2. Launch or install iPolloWork as the interactive user.
  3. Point the self-hosted/control-plane URL at https://poc.ipollowork.test:8443. The request should succeed.
  4. Repeat against https://poc.ipollowork.test:9443. The request should fail with a named certificate/chain error, not a vague fetch failed banner.

Use daytona-electron-test for normal Electron driving patterns and fraimz for captured proof if this is PR evidence.

Verify the app's generated CA bundle path

The real Windows userData folder is:

C:\Users\<User>\AppData\Roaming\com.differentai.ipollowork

It is not C:\Users\<User>\AppData\Roaming\iPolloWork. Because exec runs as SYSTEM, inspect the interactive user path explicitly:

daytona exec "$SANDBOX_ID" -- cmd /c 'dir "C:\Users\Administrator\AppData\Roaming\com.differentai.ipollowork\system-ca-bundle.pem"'
daytona exec "$SANDBOX_ID" -- cmd /c 'findstr /c:"iPolloWork TLS Repro" "C:\Users\Administrator\AppData\Roaming\com.differentai.ipollowork\system-ca-bundle.pem"'

Known gotcha: system-ca-bundle.pem is written once at first launch and then memoized. If a CA is added after first launch, restart the app before expecting it to appear. On real fleets the GPO CA is present at boot, so this usually does not bite customers.

Shell/quoting gotchas

  • zsh strips backslashes in unquoted Windows paths. Quote the whole cmd /c payload:
daytona exec "$SANDBOX_ID" -- cmd /c 'dir "C:\Users\Administrator\AppData\Roaming\com.differentai.ipollowork"'
  • Pipes and | inside daytona exec ... -- powershell -Command '...' can be eaten by the intermediate cmd layer. Use powershell -EncodedCommand with a base64 UTF-16LE payload for anything with pipes or nested quotes:
ENCODED=$(python3 - <<'PY'
import base64
command = r'Get-ChildItem Cert:\LocalMachine\Root | Where-Object Subject -like "*iPolloWork TLS Repro*"'
print(base64.b64encode(command.encode("utf-16le")).decode())
PY
)
daytona exec "$SANDBOX_ID" -- powershell -NoProfile -ExecutionPolicy Bypass -EncodedCommand "$ENCODED"
  • %ERRORLEVEL% expands at parse time in cmd one-liners. Prefer PowerShell and $LASTEXITCODE when you need to propagate exit codes:
daytona exec "$SANDBOX_ID" -- powershell -NoProfile -ExecutionPolicy Bypass -Command 'curl.exe --version; exit $LASTEXITCODE'
  • cmd /c plus timeout fails with "input redirection is not supported" under daytona exec. Use ping -n for sleeps:
daytona exec "$SANDBOX_ID" -- cmd /c 'ping -n 6 127.0.0.1 >NUL'

Cleanup

Stop the scheduled repro, remove the certificates/hosts/bindings through the checked-in setup script, delete the sandbox, and delete the temporary prerelease:

daytona exec "$SANDBOX_ID" -- cmd /c 'schtasks /end /tn iPolloWorkTlsRepro'
# Core repro cleanup shape: setup-ipollowork-tls-repro.ps1 -Cleanup
daytona exec "$SANDBOX_ID" -- powershell -NoProfile -ExecutionPolicy Bypass -File 'C:\ow\ipollowork\scripts\support\setup-ipollowork-tls-repro.ps1' -Cleanup
daytona sandbox delete <ID>
gh release delete <tag> --yes

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Search the private research library in Acme Research and summarize relevant material. Include each returned document's title and source URL so readers can identify the sources and check the material behind the summary.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Searching a private research library by topic
  • Summarizing research material
  • Reviewing findings with document titles and source links
Devin-AXIS/iPolloWork7.1천2026년 10월 21일 업데이트

Capture product screenshots for landing pages, newsletters, social posts, and presentations by operating the real app. Check page structure, image pixels, and visual appearance, then retake images with overlapping text, clipping, or other visible defects.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Capture app screenshots for landing pages or newsletters
  • Prepare screenshots at aspect ratios suited to social posts or slides
  • Retake screenshots with clipped text or unwanted panels
Devin-AXIS/iPolloWork7.1천2026년 10월 21일 업데이트

Find the right official documentation before answering technical questions. It identifies the library and version, retrieves focused references and examples, and explains relevant APIs while separating documented behavior from inference.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Checking API usage for an installed library version
  • Finding official guidance before upgrading
  • Separating documented behavior from assumptions
Devin-AXIS/iPolloWork7.1천2026년 10월 21일 업데이트

Implement or upgrade code using the project's exact dependency versions and matching Context7 documentation. Check available APIs, make the smallest compatible change, run package checks, and identify behavior that still needs verification in a running application.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Implementing features with APIs supported by installed versions
  • Checking migration guidance before upgrading dependencies
  • Finding supported alternatives to unavailable APIs
Devin-AXIS/iPolloWork7.1천2026년 10월 21일 업데이트

Create an OpenCode plugin for iPolloWork with custom tools and hooks, which run code at specific events. The skill builds the TypeScript file and adds it to the configuration so it can load after a session restart.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Add custom tools to iPolloWork
  • Create tools for saving and listing notes
  • Run custom code before or after tool execution
Devin-AXIS/iPolloWork7.1천2026년 10월 21일 업데이트

Launch a standalone Chrome browser in a Daytona sandbox and control it through CDP, a browser debugging connection. Use it to complete sign-in, OAuth authorization, and web administration flows, then verify the visible results.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Signing into Den Web in a standalone browser
  • Completing OAuth authorization pages
  • Configuring settings available only on the web
Devin-AXIS/iPolloWork7.1천2026년 10월 21일 업데이트

Devin-AXIS의 스킬 모두 보기

이 스킬의 문제 신고