Configure CxMongoConnection - checkmarx-ts/CxAnalytix GitHub Wiki

MongoDB Connection Configuration

CxMongoConnection

This configuration element has only one attribute named ConnectionString. This is a connection string using the MongoDB URI Format.

Note that at the first run of the program, this element is encrypted on platforms that support configuration section encryption.

Environment Variable Substitution

Configuration values provided for this section can embed a reference to an environment variable by delimiting the name of the variable with %. While this is typically a construct used on Windows, this applies to all platforms. Example:

<CxMongoConnection ConnectionString="mongodb://%COMPUTERNAME%:27017/%DBNAME%" />

URL Encoding of Special Characters

Special characters in the connection URL should be URL Encoded.