Skip to content

fix: address 6 input validation issues#381

Merged
poyrazK merged 1 commit intomainfrom
fix/input-validation-group-e
May 2, 2026
Merged

fix: address 6 input validation issues#381
poyrazK merged 1 commit intomainfrom
fix/input-validation-group-e

Conversation

@poyrazK
Copy link
Copy Markdown
Owner

@poyrazK poyrazK commented May 2, 2026

Summary

Fix 6 input validation issues across 4 files:

Test plan

  • go build ./...
  • go test ./internal/repositories/ovs/... ./internal/core/services/... ./internal/adapters/dns/... ./internal/repositories/docker/... -count=1

- ovs/adapter.go: validate remoteIP with net.ParseIP in CreateVXLANTunnel
  and DeleteVXLANTunnel (fixes #255)
- instance.go: add iteration limit to findAvailableIP to prevent
  infinite loop when all IPs in subnet are taken (fixes #262)
- instance.go: add overflow check before memory calculation in resize
  (fixes #263)
- dns/powerdns.go: clarify nameserver access after empty check
  (fixes #258)
- docker/snapshot_path.go: add symlink detection to path validation
  to prevent symlink-based traversal escapes (fixes #239, #238)
Copilot AI review requested due to automatic review settings May 2, 2026 18:41
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 2, 2026

Warning

Rate limit exceeded

@poyrazK has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 52 minutes and 13 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 998031b7-41a7-46bb-9f60-09fe9450bb11

📥 Commits

Reviewing files that changed from the base of the PR and between 98cd65c and 4257b4a.

📒 Files selected for processing (4)
  • internal/adapters/dns/powerdns.go
  • internal/core/services/instance.go
  • internal/repositories/docker/snapshot_path.go
  • internal/repositories/ovs/adapter.go
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/input-validation-group-e

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
Review rate limit: 0/1 reviews remaining, refill in 52 minutes and 13 seconds.

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

Copy link
Copy Markdown
Owner Author

@poyrazK poyrazK left a comment

Choose a reason for hiding this comment

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

It's okay to merge

@poyrazK poyrazK merged commit c65c38a into main May 2, 2026
26 checks passed
@poyrazK poyrazK review requested due to automatic review settings May 2, 2026 19:03
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