feat: Add a check for monogodb uri corruption#19
Merged
Conversation
Contributor
There was a problem hiding this comment.
1 issue found across 2 files
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="on-prem/scripts/check-env.sh">
<violation number="1" location="on-prem/scripts/check-env.sh:73">
P2: The corruption check only accepts `mongodb://`, so valid `mongodb+srv://` connection strings will be flagged as incomplete and cause a false failure. Expand the scheme check to allow the SRV format.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
agoldis
approved these changes
Jan 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Should help fix auto line wrapping issues introduced by editors.
The check-env file will try to find that the problem has occured with the mongodb_URI
Summary by cubic
Adds a corruption check for MONGODB_URI in .env to catch line-wrapping issues and guide fixes, preventing broken on‑prem installs. Also adds a warning in .env.example about editing long lines (use nano -w).
Written for commit ff81cbc. Summary will update on new commits.