Skip to content

fix: remove go-fiber and fileserver plugin - #2210

Merged
rustatian merged 1 commit into
masterfrom
fix/remove-go-fiber
Aug 10, 2025
Merged

fix: remove go-fiber and fileserver plugin#2210
rustatian merged 1 commit into
masterfrom
fix/remove-go-fiber

Conversation

@rustatian

@rustatian rustatian commented Aug 10, 2025

Copy link
Copy Markdown
Member

Reason for This PR

  • It is a 3-rd CVE reported for Go-Fiber, so, I think it is not safe to use it anymore in a standard bundle. It was used only in 1 plugin - fileserver. The plugin has been removed and is now available to be built with Velox.
  • closes: [🐛 BUG]: CVE-2025-54801 #2209

Description of Changes

  • Update go.mod

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

PR Checklist

[Author TODO: Meet these criteria.]
[Reviewer TODO: Verify that these criteria are met. Request changes if not]

  • All commits in this PR are signed (git commit -s).
  • The reason for this PR is clearly provided (issue no. or explanation).
  • The description of changes is clear and encompassing.
  • Any required documentation changes (code and docs) are included in this PR.
  • Any user-facing changes are mentioned in CHANGELOG.md.
  • All added/changed functionality is tested.

Summary by CodeRabbit

  • Chores
    • Updated several dependencies to newer versions for improved stability and compatibility.
    • Removed the fileserver plugin and its associated dependency.
    • Upgraded Go module and toolchain versions to the latest releases.

Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
@rustatian
rustatian requested a review from Copilot August 10, 2025 09:48
@rustatian rustatian self-assigned this Aug 10, 2025
@rustatian rustatian added the bug Bug: bug, exception label Aug 10, 2025
@coderabbitai

coderabbitai Bot commented Aug 10, 2025

Copy link
Copy Markdown
Contributor

Walkthrough

The changes remove the fileserver plugin from the plugin registry and its related import. Additionally, the Go module file (go.mod) was updated to newer versions of the Go toolchain and several dependencies, with the fileserver module and some indirect dependencies removed.

Changes

Cohort / File(s) Change Summary
Plugin Removal
container/plugins.go
Removed fileserver plugin import and excluded it from the active plugins list.
Dependency Updates
go.mod
Updated Go toolchain and multiple dependencies; removed fileserver and some indirect dependencies.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~7 minutes

Suggested labels

C-enhancement

Suggested reviewers

  • wolfy-j

Poem

A bunny hopped by the plugin tree,
"No more fileserver for you or me!"
With dependencies pruned and versions anew,
The code feels lighter, fresh as dew.
Hop, hop, hooray—
For a tidier codebase today! 🐇✨

Note

🔌 MCP (Model Context Protocol) integration is now available in Early Access!

Pro users can now connect to remote MCP servers under the Integrations page to get reviews and chat conversations that understand additional development context.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/remove-go-fiber

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

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 removes the go-fiber dependency and fileserver plugin from the RoadRunner server due to security concerns. The fileserver plugin, which was the only component using go-fiber, has been removed to eliminate the CVE vulnerabilities associated with the go-fiber library.

  • Removes the fileserver plugin from the plugin list and dependencies
  • Updates Go toolchain and various dependency versions
  • Eliminates go-fiber related dependencies (valyala/fasthttp, valyala/bytebufferpool, gofiber/fiber/v2, andybalholm/brotli)

Reviewed Changes

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

File Description
go.mod Removes fileserver dependency and updates Go version, toolchain, and various indirect dependencies
container/plugins.go Removes fileserver plugin import and registration from the plugin container

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🔭 Outside diff range comments (2)
go.mod (2)

12-57: Remove leftover Fileserver references in configuration schemas and .rr.yaml

The grep results show that the Fileserver plugin is still referenced in your config schemas and the default .rr.yaml. These should be removed to fully eliminate the dependency:

• schemas/config/3.0.schema.json: lines 28–29
• schemas/config/2.0.schema.json: line 1903
• .rr.yaml: lines 1999–2000

Please delete or update those entries so that no “fileserver” key or schema $ref remains. Afterward, run:

go mod tidy

to clean up any unused module requirements and ensure your bundle’s dependency graph is minimal.


1-220: Remove fileserver references in JSON schemas

The schema files still reference the removed fileserver plugin. Please remove or update these entries to point users toward the static plugin or a Velox-built fileserver:

• schemas/config/2.0.schema.json (around line 1903): remove the entire "fileserver": { … } block.
• schemas/config/3.0.schema.json (lines 28–29): remove or replace the $ref to https://raw.githubusercontent.com/roadrunner-server/fileserver/…/schema.json.

Afterward, verify that no other docs or examples reference “fileserver.” If helpful, I can draft a short migration snippet guiding users to the static plugin or custom Velox build.

🧹 Nitpick comments (1)
go.mod (1)

157-160: Pre-release pseudo-version for sourcegraph/conc; use a stable tag if reproducibility is a concern

You’re on github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 (pseudo-version). If this wasn’t deliberate, prefer a stable tag (e.g., v0.3.0) to reduce churn from transitive updates.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e3f7cc9 and 955f6c5.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (2)
  • container/plugins.go (0 hunks)
  • go.mod (5 hunks)
💤 Files with no reviewable changes (1)
  • container/plugins.go
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Golang-CI (lint)
  • GitHub Check: Unit tests
  • GitHub Check: Analyze (go)
🔇 Additional comments (4)
go.mod (4)

203-217: Large bumps of golang.org/x/ and google.golang.org/*; watch for subtle API shifts*

Patch/minor bumps here can surface lints or deprecations in x/*, grpc/genproto, and protobuf.

Please ensure CI runs vet/lint consistently after this change (no action needed if your pipeline already gates on these).


12-12: Minor bump tablewriter to v1.0.9 looks safe

This is a patch-level upgrade with no breaking API changes expected.


65-87: Pub/Sub v2 import usage verified as absent

A search across all .go files found no imports of cloud.google.com/go/pubsub/v2—both v1 and v2 only appear as indirect entries in go.mod/go.sum. You can safely leave them (they’re pulled in by transitive deps) or remove the unused v2 entry by running:

go mod tidy

3-5: CI and Dockerfile Go versions already align with go.mod
All workflows use actions/setup-go@v5 with go-version: stable, and the Dockerfile is based on golang:1.24-alpine—both track the latest 1.24 patch (currently 1.24.6). No mismatches detected.

• If you have any README or other local dev docs that pin a specific Go version, update them to reflect the current patch release.

@rustatian
rustatian merged commit 569ffe0 into master Aug 10, 2025
12 checks passed
@rustatian
rustatian deleted the fix/remove-go-fiber branch August 10, 2025 11:34
@coderabbitai coderabbitai Bot mentioned this pull request Oct 2, 2025
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bug: bug, exception

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🐛 BUG]: CVE-2025-54801

2 participants