...
Aspire will create one MongoDB database for each content source configured. When the content source is deleted, the database will be dropped. The database name will the taken from the normalised normalized value of the content source name. Starting in Aspire 3.2, the database names will be prefixed with "aspire-" to avoid possible conflicts of name. If you wish to change the prefix, add a "namespace" to the configuration:
...
After importing it into a truststore you need to add it into the Aspire startup script, read Crawling via HTTPs for more instructions on how to add the truststore into the startup script.
Aspire 3.2.1 supports authenticating to MongoDB using X.509 or SCRAM. Based on the requirement will be necessary modify the settings.xml file.
Aspire 3.2.1 supports authenticating to MongoDB using SCRAM.
The Salted Challenge Response Authentication Mechanism (SCRAM) is a family of modern, password-based challenge–response authentication mechanisms providing authentication of a user to a server
The Provider will automatically retry the operations in case they couldn't be completed because of connections errors. The maximum retries to execute is configurable using the "maxRetries" option. By default (if nothing is provided), it will not retry operations at all.To configure it, add the following to your settings.xml file:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<!-- noSql database provider for the 3.02 connector framework --> <noSQLConnectionProvider sslEnabled="truefalse" sslInvalidHostNameAllowed="false"> <namespace>myNamespace</namespace> <implementation>com.searchtechnologies.aspire:aspire-mongodb-provider</implementation> <servers>mongodb-host:27017</servers> <authentication> <scram> <username>aspireUser</username> <source>admin</source> <password>encrypted:302B58140B6ED1FBEBDC33A9263EF742</password> </scram> </authentication> <maxRetries>5</maxRetries> </noSQLConnecitonProvider> |
...
...
For the correct Aspire behavior check that the user selected to authenticated have the roles:
How to check the roles of a user, using mongo.exe:
Code Block | ||||
---|---|---|---|---|
| ||||
> use admin
> db.getUser("aspireAdmin");
{
"_id_": "admin.myUserAdmin",
"user": "myUserAdmin",
"db": "admin",
"roles": [
{
"role": "clusterAdmin",
"db"": "admin"
},
{
"role": "readWriteAnyDatabase",
"db": "admin"
}
]
}
> |
...
Code Block | ||||
---|---|---|---|---|
| ||||
> use admin
> db.createUser(
{
user: "myUserAdmin",
pwd: "abc123",
roles: [
{ role: "clusterAdmin", db: "admin" },
{ role: "readWriteAnyDatabase", db: "admin" }
]
}
) |
4. Re-start the MongoDB
Configuration Example
...
language | powershell |
---|---|
title | Configuration Example |
...
Aspire 3.2 supports authenticating to MongoDB using X.509. Based on the requirement will be necessary modify the settings.xml file.
Aspire 3.2 only supports authenticating to MongoDB using X.509.
...