Skip to content

Fix authentication and database creation#1

Closed
sebastienros wants to merge 2 commits intoailtonguitar:features/add-mongodb-supportfrom
sebastienros:sebros/initdb
Closed

Fix authentication and database creation#1
sebastienros wants to merge 2 commits intoailtonguitar:features/add-mongodb-supportfrom
sebastienros:sebros/initdb

Conversation

@sebastienros
Copy link
Copy Markdown

With the docker image, authentication only works when the connection string uses the admin database, so using it for the connection string.

The database can be created automatically using MONGO_INITDB_DATABASE on the container.

Without these two changes only the admin database can be used in AddDatabase(string name).

c.f. https://hub.docker.com/_/mongo/

@eerhardt
Copy link
Copy Markdown

eerhardt commented Dec 5, 2023

I think we may need some more thinking here. Should we be setting up access to the provided database automatically using the docker-entrypoint-initdb.d?

See the Authentication section of https://hub.docker.com/_/mongo/.

@sebastienros
Copy link
Copy Markdown
Author

Removed auth altogether in the main PR.
We'll extend on the options to expose what the docker container exposes later.

ailtonguitar pushed a commit that referenced this pull request Feb 9, 2024
…icrosoft#1423)

* Update the rest of the components to use the ConfigSchemaGenerator.

Also fixing a couple bugs in the generator:

- Allow for just a LoggingCategories attribute
- Fix a bug in the exclusion paths, which needs the node to be hooked to the parent to get the full path
- Skip unsupported collections
- Add some more int types

* Improve json formatting (#1)

---------

Co-authored-by: Sébastien Ros <sebastienros@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants