Skip to content

v0.43.70

@saifsmailbox98 saifsmailbox98 tagged this 08 Apr 00:19
* PAM MongoDB

* Fix MongoDB PAM: add requireMfa field, revert Db→Sql rename

* Fold MongoDB PAM factory into shared SQL infrastructure

Reuse BaseSqlResourceConnectionDetailsSchema for MongoDB connection
details and add MongoDB as a case in makeSqlConnection, eliminating
the dedicated mongodb-resource-factory.ts (250 lines).

* Fix URL injection in MongoDB connection URI by encoding database field

* Ping target database instead of admin in MongoDB validation

* Revert unnecessary mongodb driver version bump

* Order MongoDB after SQL databases instead of after Redis

* Resolve SRV records for MongoDB connections to obtain actual host and port.

* Update MongoDB forms to v3 sheet layout pattern and fix lint

* Make MongoDB port optional to support SRV hosts without the zero-value hack

Users with MongoDB SRV hosts (mongodb+srv://) no longer need to enter 0 as
the port. Leaving the port empty now signals an SRV connection. The backend
resolves SRV only during resource/account validation; session credentials
pass the original host to the CLI which handles SRV natively.

* Hide port row on resource detail page for SRV hosts and use helper text in form

* Use admin as authSource for MongoDB connections to match CLI behavior

* Revert mongodb driver version bump in lock file to match main

* Update MongoDB forms to v3 component pattern

* Reset package.json and package-lock.json to match origin/main

* Add docs

* Move MongoDB out of SQL resource factory into standalone factory

MongoDB doesn't use knex and isn't a SQL database — give it its own
factory following the Redis/SSH pattern. Also replaces auth error
string matching with MongoServerError error code 18.

* feat: update MongoDB PAM resource for URI-based host and remove port

Support MongoDB URIs (mongodb+srv://, mongodb://) in the host field so
users can specify authSource and other connection options directly.
Remove the separate port field since it's now part of the host.

- Remove port from MongoDB schema, types, and form
- Accept full MongoDB URIs in host field with relay-routing extraction
- Extract authSource from URI for validation connections (default: admin)
- Merge host/port into single URI-capable field in frontend form

* feat: replace MongoDB host field with validated connection string

Replaces the freeform host field with a proper connectionString field
validated by the mongodb-connection-string-url library. Rejects embedded
credentials and database in the URI path. Adds allowlist regex to the
database field. Updates frontend forms and display components accordingly.

* fix: shorten MongoDB connection string tooltip text

* fix: remove useless char

* feat: add inline connection string validation to MongoDB resource form

Validate MongoDB connection strings client-side so errors display
inline in the form instead of as a toast/modal notification.

* feat: add MongoDB support to view credentials feature

* fix: add inline connection string validation and require non-empty password

- Replace new URL() with regex-based parsing in the frontend MongoDB
  form to support comma-separated replica set hosts
- Require non-empty password in MongoDBAccountCredentialsSchema to
  match other resource schemas and prevent silent credential omission

* fix: add database name regex validation to MongoDB frontend form

* fix: update MongoDB docs to use connection string instead of host/port
Assets 2
Loading