feat: add a job to initialize mongodb users#60
Merged
Conversation
Contributor
|
Can we add the BACKUP user? |
Contributor
|
It works with backup role |
Ian2012
approved these changes
Jan 9, 2024
Member
Author
|
@Henrrypg, I think the creation of the backup user might be better handled by the backup plugin. We could do two things: we can define almost the same job in the backup plugin. or we can define a new patch to add additional instructions to the job. I think the patch might be a better fit. |
Henrrypg
approved these changes
Jan 9, 2024
jfavellar90
reviewed
Jan 10, 2024
f68e917 to
952a492
Compare
Include an initialization job similar to the MySQL one that creates a mongodb user with the necessary permissions. To simplify things a bit we use the same user for edxapp and forum and remove the need for the forum-overrides patch.
952a492 to
adaacb4
Compare
jfavellar90
approved these changes
Jan 10, 2024
Member
|
I want to backport this to Olive. However, we must adjust the release workflow since it does not work properly. @Henrrypg could we do a manual release? the branch to apply the changes to is called |
Henrrypg
pushed a commit
that referenced
this pull request
Jan 10, 2024
Include an initialization job similar to the MySQL one that creates a mongodb user with the necessary permissions. To simplify things a bit we use the same user for edxapp and forum and remove the need for the forum-overrides patch.
Contributor
|
@jfavellar90 backported |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Include an initialization job similar to the MySQL one that creates a MongoDB user with the necessary permissions. To simplify things a bit we use the same user for edxapp and forum and remove the need for the forum-overrides patch. This assumes an admin user is already present on your MongoDB instance and can be accessed via
MONGODB_ROOT_USERNAMEandMONGODB_ROOT_PASSWORD.