Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable local replica set + enable basic authentication #1236

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

GCHQDeveloper36
Copy link
Member

Whilst working on transactions, I noticed the local instance wasn't quite in replica set mode, possibly after my switch to the Bitnami image.

Authentication seems to be required, I wasn't able to force it to be disabled during dev but happy to try again or take suggestions on that. If it remains enabled, I've followed the pattern for other services of serviceadmin for user/pass here but happy to use something else.

It may require dropping the mongo Docker volume if you struggle to bring it up when testing these changes, though the Bitnami image 'should' adapt automatically.

@GCHQDeveloper36 GCHQDeveloper36 marked this pull request as draft April 30, 2024 21:27
@GCHQDeveloper36 GCHQDeveloper36 changed the title Dev - enable local replica set + enable basic authentication WIP: Enable local replica set + enable basic authentication Apr 30, 2024
@GCHQDeveloper36
Copy link
Member Author

I've put this back into draft as I noticed upon restarting the Mongo container it seems to struggle to become primary. Should be fixable but I won't be able to look at it till Friday. Happy to take feedback on the PR as a whole though and I can incorporate anything into it on the next go-around.

@GCHQDeveloper36 GCHQDeveloper36 changed the title WIP: Enable local replica set + enable basic authentication Enable local replica set + enable basic authentication May 3, 2024
@GCHQDeveloper36 GCHQDeveloper36 marked this pull request as ready for review May 3, 2024 01:38
@GCHQDeveloper36
Copy link
Member Author

Must have been something weird locally as it seems fine today. Tests now pass, missed it was using the prod docker compose in CI/CD. If desired, I can tweak the prod compose to be a three-member replica set.

@a3957273 a3957273 merged commit ddc6c33 into gchq:main Jun 28, 2024
14 checks passed
GB27247 added a commit that referenced this pull request Jul 1, 2024
…lly"

This reverts commit ddc6c33, reversing
changes made to 8b74263.
GB27247 added a commit that referenced this pull request Jul 1, 2024
Revert "Merge pull request #1236 from GCHQDeveloper36/dev/use-rs-loca…
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