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

rehash with channel registration disabled is unsafe #2130

Closed
slingamn opened this issue Feb 23, 2024 · 1 comment
Closed

rehash with channel registration disabled is unsafe #2130

slingamn opened this issue Feb 23, 2024 · 1 comment
Labels
Milestone

Comments

@slingamn
Copy link
Member

Reported by eta in #ergo. loadRegisteredChannels does not check the current config value, which is probably correct: even if new channel registration is disallowed, we want to load existing registered channels. However, this case is buggy:

ergo/irc/server.go

Lines 705 to 707 in 4d9e80f

if !oldConfig.Channels.Registration.Enabled {
server.channels.loadRegisteredChannels(config)
}

This will unconditionally reload the registered channels and overwrite their entries in the channel manager. I think we can actually just delete this, since we are loading the registered channels unconditionally on startup?

@slingamn slingamn added the bug label Feb 23, 2024
@slingamn slingamn added this to the 2.14 milestone Feb 23, 2024
@slingamn slingamn added the release blocker Blocks release label Feb 23, 2024
@slingamn
Copy link
Member Author

Recommended workaround for anyone affected: set channels.registration.enabled to true, but set channels.registration.operator-only to true as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant