mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #5671] [MERGED] chore: add sslmode support to PrismaService database URL parser #5309
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#5309
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/5671
Author: @mirarifhasan
Created: 12/7/2025
Status: ✅ Merged
Merged: 12/10/2025
Merged by: @mirarifhasan
Base:
patch← Head:fix/db-url-sslMode📝 Commits (3)
5a31786chore: add sslmode support to PrismaService database URL parserdec432crefactor: SSL configuration for database connections948a46dchore: add 'allow' to SSL mode check in PrismaService📊 Changes
2 files changed (+88 additions, -28 deletions)
View changed files
📝
packages/hoppscotch-backend/src/mock-server/mock-server.service.spec.ts(+20 -15)📝
packages/hoppscotch-backend/src/prisma/prisma.service.ts(+68 -13)📄 Description
Closes BE-680
What's changed
This pull request primarily refactors the
PrismaServiceto improve parsing and handling of theDATABASE_URLenvironment variable, with additional minor formatting improvements in theMockServerServicetest suite. The most significant change is enhanced support for connection options (likesslmode) in the database connection logic.Database connection improvements:
PrismaServiceconstructor andparseDatabaseUrlto more robustly extract and handle options from theDATABASE_URL, includingschema,connection_limit,connect_timeout, andsslmode. Now, SSL is configured based onsslmodeand all relevant options are parsed with safer type handling. [1] [2]Notes to reviewers
Ass sslmode in the DATABASE_URL and see, if the backend server able to connect with DB or not
Summary by cubic
Add sslmode support to PrismaService’s DATABASE_URL parsing and connection setup. SSL is now configured per sslmode, addressing BE-680.
New Features
Refactors
Written for commit
948a46d97f. Summary will update automatically on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.