Skip to content

Codex/fix findings kanban validation#23

Merged
zebbern merged 7 commits into
mainfrom
codex/fix-findings-kanban-validation
Jun 21, 2026
Merged

Codex/fix findings kanban validation#23
zebbern merged 7 commits into
mainfrom
codex/fix-findings-kanban-validation

Conversation

@zebbern

@zebbern zebbern commented Jun 21, 2026

Copy link
Copy Markdown
Owner

No description provided.

zebbern added 7 commits June 20, 2026 23:26
Signed-off-by: zebbern <185730623+zebbern@users.noreply.github.com>
Signed-off-by: zebbern <185730623+zebbern@users.noreply.github.com>
Signed-off-by: zebbern <185730623+zebbern@users.noreply.github.com>
Signed-off-by: zebbern <185730623+zebbern@users.noreply.github.com>
Signed-off-by: zebbern <185730623+zebbern@users.noreply.github.com>
Signed-off-by: zebbern <185730623+zebbern@users.noreply.github.com>
Signed-off-by: zebbern <185730623+zebbern@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 21, 2026 04:35
@zebbern zebbern merged commit 97f8a95 into main Jun 21, 2026
6 checks passed

Copilot AI 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.

Pull request overview

This PR hardens and refactors several worker security components and Temporal utilities, primarily to improve correctness around URL/version handling, workflow sandbox compatibility, and CLI arg construction (with accompanying unit tests).

Changes:

  • Guard workflow diagnostics logging to avoid process access errors in the Temporal workflow sandbox, and add a regression test.
  • Centralize internal MCP URL construction to avoid double-prefixing /api/v1, with unit test coverage.
  • Refactor/adjust security tool runners (notably nuclei/httpx/katana) to improve argument building and runner output parsing strictness, and add new component tests (OSV/NVD).

Reviewed changes

Copilot reviewed 99 out of 99 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
worker/src/temporal/workflow-diagnostics.ts Adds a sandbox-safe process guard for workflow diagnostics logging.
worker/src/temporal/tests/workflow-diagnostics.test.ts Verifies diagnostics helper doesn’t throw when process is unavailable.
worker/src/temporal/activities/mcp.activity.ts Introduces URL builders to normalize versioned API base URLs for internal MCP calls.
worker/src/temporal/activities/tests/mcp.activity.test.ts Adds coverage ensuring /api/v1 is not double-prefixed.
worker/src/components/security/nuclei.ts Switches nuclei runner strategy (upstream image + shell wrapper) and introduces a reusable docker-command builder.
worker/src/components/security/katana.ts Extracts scope mapping and argument construction into testable helpers; tightens runner output schema.
worker/src/components/security/httpx.ts Extracts httpx argument construction into a helper and tightens runner output schema.
worker/src/components/security/tests/osv.test.ts Adds unit coverage for OSV parsing/severity inference/hydration and component execution behavior.
worker/src/components/security/tests/nvd.test.ts Adds unit coverage for NVD URL building and component execution behavior (incl. timeout handling).
Comments suppressed due to low confidence (1)

worker/src/components/security/nuclei.ts:151

  • updateTemplates now defaults to true, but the UI description still says "slower, usually not needed". With the upstream projectdiscovery/nuclei:latest image this option is likely needed to ensure templates exist; the current wording conflicts with the new default and can mislead users about recommended usage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

if (runnerParams.preferHttps) {
httpxArgs.push('-prefer-https');
}
const httpxArgs = buildHttpxArgs(runnerParams);
Comment on lines 353 to 356
const args: string[] = [
'-duc', // Disable update check (templates pre-installed in image)
'-jsonl', // JSONL output format (nuclei v3.6.0+)
'-stream', // Stream mode: prevents buffering, required for PTY compatibility
@zebbern zebbern deleted the codex/fix-findings-kanban-validation branch June 22, 2026 01:30
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.

2 participants