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

Restrict users to their own messages & auto-persist w/ encrypted storage #3

Merged
merged 15 commits into from
Aug 1, 2024

Conversation

jzombie
Copy link
Owner

@jzombie jzombie commented Jul 30, 2024

This shouldn't be the default configuration but made as an example.

@jzombie jzombie marked this pull request as draft July 30, 2024 23:10
@jzombie jzombie changed the title Restrict users to their own messages Restrict users to their own messages & auto-persist Jul 31, 2024
@jzombie
Copy link
Owner Author

jzombie commented Jul 31, 2024

Encrypted storage could be useful here, since this auto-persists: #4

Edit: Done

Comment on lines +1 to +2
# Only allow messages to be read and written within topics that match the username
pattern readwrite %u/#
Copy link
Owner Author

Choose a reason for hiding this comment

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

This is what restricts users to their own messages. It is used in combination with the acl_file /mosquitto/config/aclfile entry in mosquitto/mosquitto.conf.

@jzombie jzombie marked this pull request as ready for review August 1, 2024 00:10
@jzombie jzombie marked this pull request as draft August 1, 2024 00:10
@jzombie jzombie linked an issue Aug 1, 2024 that may be closed by this pull request
@jzombie jzombie changed the title Restrict users to their own messages & auto-persist Restrict users to their own messages & auto-persist w/ encrypted storage Aug 1, 2024
@jzombie jzombie changed the base branch from main to protected-no-wildcard August 1, 2024 00:45
@jzombie jzombie marked this pull request as ready for review August 1, 2024 00:57
@jzombie jzombie merged commit a455d86 into protected-no-wildcard Aug 1, 2024
2 checks passed
@jzombie jzombie deleted the feature-acl branch August 1, 2024 00:58
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.

Encrypted retained messages
1 participant