-
-
Notifications
You must be signed in to change notification settings - Fork 511
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
fix(modules/rabbitmq): update container image to 3.12.11 to allow connections without passing admin credentials #2051
fix(modules/rabbitmq): update container image to 3.12.11 to allow connections without passing admin credentials #2051
Conversation
✅ Deploy Preview for testcontainers-go ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
8b48258
to
ae6a3e7
Compare
@mdelapenya any chance of getting this merged? |
Hey @abemedia thanks for pointing this out. We usually do not bump the default images unless it's necessary for a critical/security bug, making users responsible of setting the right image with In this particular case, where you express the concerns of using the current default version, I'd add a warning in the docs explaining it: "if you use version lower than 3.12, please set the admin username, otherwise you'll get the error". Or even perform those checks in the RunContainer function. Wdyt? On the other hand, @eddumelendez and I have discussed a lot about default images, and we'll probably change the current model in the future. Options are: a) forcing users to pass the image b) defining a minimum supported version, among others. This is important because the current default establishes a version that is tested (verified) by our own tests, but it does not test lower versions, or higher versions, only those defined in the tests. And there are modules where the features change depending on the versions (see Elasticsearch module and how we extract the SSL certificate for versions >= 8.x). What if a user uses a very old or very new version for a given technology, and the technology offers different features than the ones provided by the module? Should we fail/panic/error? So for us it's not easy decision to simply bump the version. Well it's simple to merge this 😅 as it's basically correct, but to calculate all the implications of bumping the module is more complex than that. In any case, let me double check with @eddumelendez and @kiview regarding this topic one more time. Hope I can come with a good answer 🙏 . Real soon 🤞 |
Makes sense, however since using the current module with defaults is essentially broken I'd argue that updating the default image makes sense here. What tests do you think would be necessary to consider this image fully supported? I'm happy to help with that in the evenings once I get off work. |
One thing I'm double checking ATM is the existing tests that still use the
Why they are passing correctly then? |
If you comment out the
If you then also comment out |
I think we should probably add a test that runs the container without passing options and tries to connect with |
Have just updated the image tags in the tests and added a test to connect with AMQP using just defaults (no options). |
So the issue is not the container not being able to start but the connections to it not being done, right? If that's the case, then I'd mark this as a |
That's a good point! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the discussion. It helped to realise and consider this as a bug instead of a simple bump.
I've changed the title to explain it better in the release notes.
Awesome, thanks! |
What does this PR do?
Updates rabbitmq image to
3.12.11-management-alpine
.Why is it important?
The RabbitMQ module was broken if used without passing in an admin username that is not guest and would fail with the error
user 'guest' can only connect via localhost
(see #1702). It appears this issue no longer happens on 3.12.Related issues