Skip to content

fix(rabbitmq): remove build-time Erlang cookie - #4572

Merged
iancooper merged 2 commits into
BrighterCommand:masterfrom
gabisonia:fix/4566-rabbitmq-cookie
Oct 11, 2026
Merged

iancooper merged 2 commits into
BrighterCommand:masterfrom
gabisonia:fix/4566-rabbitmq-cookie

Conversation

@gabisonia

Copy link
Copy Markdown
Member

Description

A root-owned Erlang cookie in the native-delay image prevents RabbitMQ from starting as rabbitmq, leaving the native-delay tests without a broker.

Remove any cookie after offline plugin setup so RabbitMQ creates its own at startup. Run the Compose fixture as rabbitmq and check the runtime user and broker health in CI. Document the separate Docker Hub credentials error reported in the issue.

Related Issues

Fixes #4566

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the Contributing Guide
  • I have checked the relevant fixture documentation in docker/RabbitMQ/README.md
  • I have added/updated XML documentation for any public API changes — no public API changes
  • I have added/updated tests as appropriate
  • My changes follow the existing code style and conventions

Validation

  • Docker and Podman 5.8.2 with applehv on macOS: nonroot startup, cookie ownership, plugin availability, and restart passed.
  • Native-delay suites on each engine: 54 sync tests and 103 async tests passed on each of .NET 9 and .NET 10. Total: 628 executions, no failures or skips.
  • A temporary build with a root-owned cookie reproduced the exact eacces error on both engines; the same build with this fix started successfully.
  • The CI startup commands passed locally. The startup check rejected the image containing the unreadable cookie.
  • git diff --check passed. Workflow lint has no new findings compared with master.

Additional Notes

Clean builds of the unchanged image also started successfully here. The controlled reproduction verifies the reported cookie-permission condition, but the original trigger for cookie creation remains unconfirmed. This change does not repair cookies in existing volumes.

Please merge with a merge commit, as requested by the contributing guide.

@iancooper iancooper added 2 - In Progress Bug Maintenance Build, CI, refactoring, testing infrastructure, and other chores labels Oct 10, 2026
@iancooper

Copy link
Copy Markdown
Member

Thanks @gabisonia

@iancooper
iancooper merged commit d3ef9c8 into BrighterCommand:master Oct 11, 2026
32 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 - Done Bug Maintenance Build, CI, refactoring, testing infrastructure, and other chores

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Native-delay RabbitMQ image crash-loops: root-owned .erlang.cookie (eacces)

2 participants