Skip to content

chatmaild: allow echobot to receive unencrypted messages by default #556

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

Merged
merged 4 commits into from
May 24, 2025

Conversation

missytake
Copy link
Contributor

follow-up for #535 and #538

@missytake
Copy link
Contributor Author

This is mostly useful to test whether a specific server is responsive; for actual users it is less useful. But some operators know about it and use it every once in a while as part of a quick health check, me included.

@@ -58,7 +58,8 @@ def set_password(self, enc_password):
if not self.addr.startswith("echo@"):
logging.error(f"could not write password for: {self.addr}")
raise
self.enforce_E2EE_path.touch()
if not self.addr.startswith("echo@"):
self.enforce_E2EE_path.touch()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would rather do this in echo-bot setup (chatmaild/echo.py) not in this generaly code path

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

echo.py is run by the echobot user, which doesn't have write permission in this path... we could do stuff with setfacl I guess, as this is anyway installed to get echobot running, but that sounds overly complicated.

@missytake missytake force-pushed the echobot branch 2 times, most recently from 99ef6b3 to 85c58d9 Compare April 18, 2025 18:08
@missytake missytake requested a review from hpk42 April 19, 2025 06:17
Copy link
Contributor

@hpk42 hpk42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still not super-happy about how echo-bot is special-cased in general code paths because of permissions but ok for now.

@missytake missytake merged commit 0c28310 into main May 24, 2025
6 of 9 checks passed
@missytake missytake deleted the echobot branch May 24, 2025 06:47
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