Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "ci: run on self-hosted runners (#1174)" #1184

Merged
merged 3 commits into from
Feb 12, 2025
Merged

Conversation

de-sh
Copy link
Contributor

@de-sh de-sh commented Feb 12, 2025

This reverts commit ca4b25a.

Fixes #XXXX.

Description


This PR has:

  • been tested to ensure log ingestion and log query works.
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added documentation for new or modified features or behaviors.

Summary by CodeRabbit

  • Chores
    • Updated the test runner environment for better standardization.
    • Upgraded the container image version for the object storage service across several configurations.
    • Removed an enforced image pull setting from one test setup for a more streamlined process.

@de-sh de-sh requested a review from nitisht February 12, 2025 04:27
Copy link

coderabbitai bot commented Feb 12, 2025

Walkthrough

The pull request updates the CI/CD configuration and Docker Compose files. In the GitHub Actions integration test workflow, the execution environment for both test jobs is changed from a self-hosted runner to GitHub’s standard Ubuntu environment. Additionally, the MinIO service image tag is upgraded in two Docker Compose files, and the pull policy for the quest service is removed in another Docker Compose file. These changes focus solely on configuration updates without modifying the underlying service logic.

Changes

File(s) Change Summary
.github/workflows/integration-test.yaml Updated runs-on from self-hosted to ubuntu-latest for docker-compose-test and docker-compose-distributed-test jobs.
docker-compose-distributed-test{,-with-kafka}.yaml Updated the minio service image tag from RELEASE.2023-02-10T18-48-39Z to RELEASE.2025-02-03T21-03-04Z.
docker-compose-test.yaml Removed the pull_policy: always line from the quest service configuration.

Poem

I’m hopping through config fields so spry,
Ubuntu now under the GitHub sky.
MinIO’s image takes a shiny new form,
Quest service freed from its pull_policy norm.
With ASCII hops and joyful glee,
This rabbit cheers the updates – whee!


📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 6be030c and a9dd340.

📒 Files selected for processing (3)
  • docker-compose-distributed-test-with-kafka.yaml (1 hunks)
  • docker-compose-distributed-test.yaml (1 hunks)
  • docker-compose-test.yaml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (3)
  • docker-compose-test.yaml
  • docker-compose-distributed-test.yaml
  • docker-compose-distributed-test-with-kafka.yaml
⏰ Context from checks skipped due to timeout of 90000ms (8)
  • GitHub Check: Build Default aarch64-apple-darwin
  • GitHub Check: Build Default aarch64-unknown-linux-gnu
  • GitHub Check: Build Kafka aarch64-apple-darwin
  • GitHub Check: Build Default x86_64-unknown-linux-gnu
  • GitHub Check: Quest Smoke and Load Tests for Standalone deployments
  • GitHub Check: coverage
  • GitHub Check: Build Kafka x86_64-unknown-linux-gnu
  • GitHub Check: Quest Smoke and Load Tests for Distributed deployments

🪧 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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • 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 generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

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. (Beta)
  • @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.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 1cd0da6 and 6be030c.

📒 Files selected for processing (5)
  • .github/workflows/integration-test.yaml (2 hunks)
  • docker-compose-distributed-test-with-kafka.yaml (0 hunks)
  • docker-compose-distributed-test.yaml (0 hunks)
  • docker-compose-test-with-kafka.yaml (1 hunks)
  • docker-compose-test.yaml (1 hunks)
💤 Files with no reviewable changes (2)
  • docker-compose-distributed-test.yaml
  • docker-compose-distributed-test-with-kafka.yaml
⏰ Context from checks skipped due to timeout of 90000ms (10)
  • GitHub Check: Build Default x86_64-pc-windows-msvc
  • GitHub Check: Build Default aarch64-apple-darwin
  • GitHub Check: Build Default x86_64-apple-darwin
  • GitHub Check: Build Kafka aarch64-apple-darwin
  • GitHub Check: Build Default aarch64-unknown-linux-gnu
  • GitHub Check: Build Kafka x86_64-unknown-linux-gnu
  • GitHub Check: Quest Smoke and Load Tests for Standalone deployments
  • GitHub Check: coverage
  • GitHub Check: Build Default x86_64-unknown-linux-gnu
  • GitHub Check: Quest Smoke and Load Tests for Distributed deployments
🔇 Additional comments (3)
.github/workflows/integration-test.yaml (1)

14-14: LGTM! Runner change aligns with revert objective.

The change from self-hosted to GitHub-hosted runners is consistent with the PR's goal of reverting PR #1174.

Please ensure that:

  1. The GitHub-hosted runners have sufficient resources for these integration tests
  2. No self-hosted runner-specific configurations or secrets were being used

Also applies to: 26-26

docker-compose-test.yaml (1)

61-86: Removal of pull_policy may affect test reliability.

Removing pull_policy: always means Docker will use its default caching behavior, which could potentially use stale images.

Consider if this might affect test reliability, especially when testing against latest builds of the quest image.

docker-compose-test-with-kafka.yaml (1)

6-6: LGTM! Changes are consistent with docker-compose-test.yaml.

The modifications mirror those in docker-compose-test.yaml, maintaining consistency across test configurations:

  1. Same MinIO version rollback
  2. Same removal of quest service's pull_policy

Also applies to: 67-91

@@ -3,7 +3,7 @@ networks:

services:
minio:
image: minio/minio:RELEASE.2025-02-03T21-03-04Z
image: minio/minio:RELEASE.2023-02-10T18-48-39Z
Copy link

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Verify MinIO version compatibility.

Rolling back to an older MinIO version (2023-02-10) could impact functionality. Please ensure this version:

  1. Meets the project's requirements
  2. Has no known security vulnerabilities

🌐 Web query:

Are there any known security vulnerabilities in MinIO RELEASE.2023-02-10T18-48-39Z?

💡 Result:

MinIO RELEASE.2023-02-10T18-48-39Z contains multiple critical security vulnerabilities that have been actively exploited in attacks:

Known Vulnerabilities

  1. CVE-2023-28432 (CVSS 7.5)
    Security feature bypass allowing attackers to:

    • Retrieve sensitive environment variables including MINIO_ROOT_PASSWORD[2][5][8]
    • Access admin credentials through API endpoints[5][8]
  2. CVE-2023-28434 (CVSS 8.8)
    Remote Code Execution vulnerability enabling:

    • Unauthorized command execution via crafted HTTP requests[2][5]
    • Replacement of MinIO binaries with malicious versions[2][5][8]

These vulnerabilities were fixed in RELEASE.2023-03-20T20-16-18Z and added to CISA's Known Exploited Vulnerabilities Catalog[4][7]. Attack chains using these CVEs have been observed:

http://vulnerable.minIO.server/?alive=[malicious_command]
http://vulnerable.minIO.server/anything?alive=[RCE_payload]

Allows full server compromise when chained together[2][5][8].

Recommended Action

Immediate upgrade to at least RELEASE.2023-03-20T20-16-18Z is required. Later versions like RELEASE.2024-01-31T20-20-33Z contain additional security fixes including privilege escalation patches[3][6].

For legacy deployments, implement network restrictions:

# Block public access to MinIO API ports (9000/9001 by default)
iptables -A INPUT -p tcp --dport 9000:9001 -j DROP

This version has been vulnerable for over 12 months with public exploits available since April 2023[2][5]. Unpatched systems risk complete data exposure and server takeover through documented attack vectors[8].

Citations:


Security Issue: Outdated MinIO Version in docker-compose-test.yaml

  • The specified MinIO image (minio/minio:RELEASE.2023-02-10T18-48-39Z) is known to have multiple critical security vulnerabilities (e.g., CVE-2023-28432 and CVE-2023-28434).
  • These vulnerabilities enable sensitive information exposure and remote code execution.
  • The issues were resolved starting with RELEASE.2023-03-20T20-16-18Z; hence, an upgrade is strongly recommended.

@nitisht nitisht merged commit 23993f4 into parseablehq:main Feb 12, 2025
12 of 14 checks passed
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