Skip to content

fix(lint): audit gosec G106/G402 insecure TLS sites - #1137

Draft
skevetter wants to merge 1 commit into
mainfrom
devsy/auto/8d85d5c3
Draft

fix(lint): audit gosec G106/G402 insecure TLS sites#1137
skevetter wants to merge 1 commit into
mainfrom
devsy/auto/8d85d5c3

Conversation

@skevetter

Copy link
Copy Markdown
Contributor

Task 8d85d5c3-0803-4be0-ac74-b562eea54c8c. Audit gosec G106/G402 findings in pkg/ts/ssh.go, pkg/ssh/helper.go, pkg/ts/derp.go, cmd/pro/start.go. All seven sites target self-owned infrastructure (agent-managed SSH servers reachable only through the tailnet/workspace; reachability probes and login flows against the user's own pro instance with a self-signed certificate), so real known-hosts/CA verification is not feasible without new infrastructure — each site now carries a documented #nosec rationale per the task note and the repo's existing convention.

Verification:

  • golangci-lint run ./pkg/ts/... ./pkg/ssh/... ./cmd/pro/...: no G106/G402 findings remain (other pre-existing findings untouched).
  • go test ./pkg/ts/... ./pkg/ssh/... ./cmd/pro/...: pass.
  • Full task cli:test failures (e2e, pkg/git clone tests, hack/sign_commit) reproduced on clean tree — pre-existing/environmental.

Annotate seven self-owned-infrastructure sites with documented
nosec rationale: SSH host key checks target agent-managed servers
reachable only through the tailnet/workspace, and InsecureSkipVerify
targets reachability probes and login flows against the user's own
pro instance which uses a self-signed certificate.
@netlify

netlify Bot commented Aug 26, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev ready!

Name Link
🔨 Latest commit ed26a90
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6a8e85f337df1e00084e7f7a
😎 Deploy Preview https://deploy-preview-1137--devsydev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Aug 26, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@netlify

netlify Bot commented Aug 26, 2026

Copy link
Copy Markdown

Deploy Preview for images-devsy-sh canceled.

Name Link
🔨 Latest commit ed26a90
🔍 Latest deploy log https://app.netlify.com/projects/images-devsy-sh/deploys/6a8e85f34ca139000836e741

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant