Skip to content

Conversation

basmasking
Copy link
Member

Fixes #429

Changes proposed in this pull request:

  • updated minio and mongo
  • replaced deprecated config for minio
  • removed unused asset from the assets whitelist

@MaskingTechnology/comify

@basmasking basmasking requested a review from petermasking as a code owner July 26, 2025 20:03
@basmasking basmasking linked an issue Jul 26, 2025 that may be closed by this pull request
Copy link

coderabbitai bot commented Jul 26, 2025

Summary by CodeRabbit

  • Chores
    • Updated MongoDB and MinIO service versions for improved compatibility.
    • Changed MinIO environment variable names for authentication to new naming convention.
    • Updated example environment file to reflect new MinIO variable names.
    • Removed "main.js" from the list of static assets in repository and standalone service configurations.

Walkthrough

The changes update service image versions for MongoDB and MinIO in the Docker Compose configuration, adjust MinIO environment variable keys to use current standards, and update example environment variables accordingly. Additionally, "main.js" is removed from asset lists in two JSON configuration files.

Changes

File(s) Change Summary
Docker Compose and Environment
docker-compose.yml, example.env
Updated MongoDB and MinIO image versions; changed MinIO environment variable keys to new standard names
Static Asset Configurations
services/repository.json, services/standalone.json
Removed "main.js" from assets array in both configuration files
MinIO Integration Code
src/integrations/filestore/implementations/minio/create.ts
Updated environment variable names for MinIO credentials to new standard keys

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~7 minutes

Assessment against linked issues

Objective Addressed Explanation
Update MinIO container image version and replace deprecated MINIO_ACCESS_KEY and MINIO_SECRET_KEY with MINIO_ROOT_USER and MINIO_ROOT_PASSWORD (#429)

Assessment against linked issues: Out-of-scope changes

No out-of-scope changes detected.

Poem

In the land of Compose, new images arrive,
Mongo and MinIO, both freshly alive.
Old keys retire, new roots take their place,
While "main.js" quietly leaves the asset race.
The configs are cleaner, the future is bright—
🐇 Cheers to smooth changes, and code running right!

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 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 31f3817 and 38b4a04.

📒 Files selected for processing (1)
  • src/integrations/filestore/implementations/minio/create.ts (1 hunks)
🔇 Additional comments (1)
src/integrations/filestore/implementations/minio/create.ts (1)

9-10: LGTM! Environment variables updated to current MinIO standards.

The replacement of deprecated MINIO_ACCESS_KEY and MINIO_SECRET_KEY with MINIO_ROOT_USER and MINIO_ROOT_PASSWORD correctly aligns with current MinIO naming conventions and addresses the PR objectives. The fallback values and internal variable usage remain consistent.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 429-update-minio-config

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.
    • @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 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.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

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

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.
  • @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.

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: 2

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between d0aa9c4 and cbb47a5.

📒 Files selected for processing (4)
  • docker-compose.yml (2 hunks)
  • example.env (1 hunks)
  • services/repository.json (1 hunks)
  • services/standalone.json (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
services/standalone.json (1)

Learnt from: basmasking
PR: #412
File: segments/writes.json:23-23
Timestamp: 2025-05-23T20:57:56.396Z
Learning: Segmentation files in the Comify project support index resolution. When a path like ./domain/post.metrics/update is referenced in segment configuration files, it implicitly refers to ./domain/post.metrics/update/index.ts (or similar extension).

🪛 YAMLlint (1.37.1)
docker-compose.yml

[warning] 8-8: wrong indentation: expected 6 but found 4

(indentation)


[warning] 33-33: wrong indentation: expected 6 but found 4

(indentation)


[warning] 36-36: wrong indentation: expected 8 but found 6

(indentation)


[warning] 38-38: wrong indentation: expected 8 but found 6

(indentation)


[warning] 41-41: wrong indentation: expected 8 but found 6

(indentation)

🔇 Additional comments (3)
services/repository.json (1)

6-6: ‘main.js’ removal – double-check asset references

main.js used to be the default Vite/Angular/Webpack entry point. Ensure that:

  1. index.html no longer contains a hard-coded <script src="main.js"> (or similar) tag.
  2. Any runtime that expects main.js (service-worker preload lists, CSP manifests, etc.) has been updated.

Otherwise 404s will occur in production.

services/standalone.json (1)

25-25: Same asset removal for standalone build – verify parity

The standalone bundle must also be audited for stale references to main.js; otherwise the gateway may serve an incomplete SPA.

docker-compose.yml (1)

8-16: MongoDB 8.0.12 upgrade – confirm driver & data-file compatibility

Going from 8.0.4 → 8.0.12 is usually safe, but it is still a minor bump that may pull in WiredTiger or auth-mechanism changes.
Run the integration tests and validate that:

• the application drivers negotiate the same SCRAM mechanism
• existing data volumes migrate without error messages in the Mongo logs

Comment on lines +33 to 43
image: minio/minio:RELEASE.2025-07-23T15-54-02Z
restart: always
volumes:
- comify-minio-data:/data
ports:
- "${MINIO_PORT_NUMBER:-9000}:9000"
- "${MINIO_ADMIN_PORT_NUMBER:-9001}:9001"
environment:
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
command: server --console-address ":9001" /data
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Switched to MINIO_ROOT_USER/PASSWORD – clean up legacy vars & fix indent

  1. MINIO_ACCESS_KEY/SECRET_KEY are now deprecated; remove them from example.env to avoid operator confusion.
  2. YAML-lint flags incorrect indentation (lines 33-42). Two-space levels would silence the warning.

Example tidy-up:

-    image: minio/minio:RELEASE.2025-07-23T15-54-02Z
+      image: minio/minio:RELEASE.2025-07-23T15-54-02Z
...
-      MINIO_ROOT_USER: ${MINIO_ROOT_USER}
-      MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
+        MINIO_ROOT_USER: ${MINIO_ROOT_USER}
+        MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
image: minio/minio:RELEASE.2025-07-23T15-54-02Z
restart: always
volumes:
- comify-minio-data:/data
ports:
- "${MINIO_PORT_NUMBER:-9000}:9000"
- "${MINIO_ADMIN_PORT_NUMBER:-9001}:9001"
environment:
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
command: server --console-address ":9001" /data
image: minio/minio:RELEASE.2025-07-23T15-54-02Z
restart: always
volumes:
- comify-minio-data:/data
ports:
- "${MINIO_PORT_NUMBER:-9000}:9000"
- "${MINIO_ADMIN_PORT_NUMBER:-9001}:9001"
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
command: server --console-address ":9001" /data
🧰 Tools
🪛 YAMLlint (1.37.1)

[warning] 33-33: wrong indentation: expected 6 but found 4

(indentation)


[warning] 36-36: wrong indentation: expected 8 but found 6

(indentation)


[warning] 38-38: wrong indentation: expected 8 but found 6

(indentation)


[warning] 41-41: wrong indentation: expected 8 but found 6

(indentation)

🤖 Prompt for AI Agents
In docker-compose.yml lines 33 to 43, remove any legacy environment variables
MINIO_ACCESS_KEY and MINIO_SECRET_KEY from example.env to avoid confusion, and
fix the indentation of the environment section to use consistent two-space
indentation for all keys and values to comply with YAML linting rules.

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: 0

♻️ Duplicate comments (1)
docker-compose.yml (1)

34-44: Fix indentation and replace legacy MinIO env vars

The MinIO service block in docker-compose.yml needs its indentation corrected, and there are still references to the old MINIO_ACCESS_KEY/MINIO_SECRET_KEY elsewhere that must be updated to MINIO_ROOT_USER/MINIO_ROOT_PASSWORD.

Diff for docker-compose.yml (around lines 34–44):

 services:
   minio:
-    image: minio/minio:RELEASE.2025-07-23T15-54-02Z
+      image: minio/minio:RELEASE.2025-07-23T15-54-02Z
-    restart: always
-    volumes:
+      restart: always
+      volumes:
         - comify-minio-data:/data
-    ports:
+      ports:
         - "${MINIO_PORT_NUMBER:-9000}:9000"
         - "${MINIO_ADMIN_PORT_NUMBER:-9001}:9001"
-    environment:
-      MINIO_ROOT_USER: ${MINIO_ROOT_USER}
-      MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
-    command: server --console-address ":9001" /data
+      environment:
+        MINIO_ROOT_USER: ${MINIO_ROOT_USER}
+        MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
+      command: server --console-address ":9001" /data

Other locations to update:

  • example.env: remove or replace the commented-out MINIO_ACCESS_KEY/MINIO_SECRET_KEY entries with the new vars.
  • src/integrations/filestore/implementations/minio/create.ts: switch from process.env.MINIO_ACCESS_KEY/MINIO_SECRET_KEY to process.env.MINIO_ROOT_USER/MINIO_ROOT_PASSWORD.
  • docs/integrations/FILE_STORE.md: update examples to use MINIO_ROOT_USER and MINIO_ROOT_PASSWORD.

Please apply these changes to fully retire the old env vars and ensure consistency.

🧹 Nitpick comments (1)
docker-compose.yml (1)

7-18: Indentation out of sync with YAML-lint expectations

yamllint flags the image line (and several others) as over-indented by two spaces. Staying with a strict two-space increment avoids noisy CI warnings.

-    image: mongo:8.0.12
+      image: mongo:8.0.12

(The same shift is required for every sibling key under mongo:.)
No functional change, but it keeps the file CI-clean.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between cbb47a5 and 31f3817.

📒 Files selected for processing (3)
  • docker-compose.yml (2 hunks)
  • example.env (1 hunks)
  • services/standalone.json (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • services/standalone.json
  • example.env
🧰 Additional context used
🪛 YAMLlint (1.37.1)
docker-compose.yml

[warning] 8-8: wrong indentation: expected 6 but found 4

(indentation)


[warning] 34-34: wrong indentation: expected 6 but found 4

(indentation)


[warning] 37-37: wrong indentation: expected 8 but found 6

(indentation)


[warning] 39-39: wrong indentation: expected 8 but found 6

(indentation)


[warning] 42-42: wrong indentation: expected 8 but found 6

(indentation)

Copy link

@petermasking petermasking changed the title chore: update container versions chore: docker image updates Jul 29, 2025
@petermasking petermasking merged commit d23e548 into main Jul 29, 2025
7 checks passed
@petermasking petermasking deleted the 429-update-minio-config branch July 29, 2025 11:10
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.

Update container config

2 participants