A MongoDB connection is a native type, allowing for the auditing of queries and redaction of their output. It facilitates a local TCP connection without requiring a password.
hoop connect <connection-name>
.Feature | Native | One Off | Description |
---|---|---|---|
TLS Termination Proxy | The local proxy terminates the connection with TLS, enabling the connection with the remote server to be TLS encrypted. | ||
Audit | The gateway stores and audits the queries being issued by the client | ||
Data Masking (Google DLP) | A policy can be enabled to mask sensitive fields dynamically when performing queries in the database. | ||
Data Masking (MS Presidio DLP) | A policy can be enabled to mask sensitive fields dynamically when performing queries in the database. | ||
Credentials Offload | The user authenticates via SSO instead of using database credentials. | ||
Interactive Access | Interactive access is available when using an IDE or connecting via a terminal for analysis exploration. |
Name | Type | Required | Description |
---|---|---|---|
CONNECTION_STRING | env-var | yes | The MongoDB connection string. See https://www.mongodb.com/docs/manual/reference/connection-string/ for more details about the proper format. |
noop
as both the username and password, along with the directionConnection=true
optionmongoshell
:
mongo
legacy utility as a client to execute scripts.
Since input is provided through stdin, syntax errors may occur for more complex inputs.
To avoid these issues, use mongosh
instead.
Add the comment in the beginning of the script to indicate that it should be executed with mongosh
:
1.35.19
and later.