mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #58] Publish message on new subscriptions #50
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#50
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @arjan-s on GitHub (Dec 15, 2021).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/58
I'd like to receive a ping on my devices when a new device/browser subscribes to a topic. Ideally this would be configurable per topic.
Btw: awesome tool you have created!
@binwiederhier commented on GitHub (Dec 15, 2021):
@arjan-s I think that should be achievable. I have an idea for a design, though I'm not sure if it is what you want.
Can you elaborate on your reasoning? Is this just about the fact that a topic is unprotected and that you want to protect it? If so, maybe auth is the better solution for that (#19).
If it is indeed about knowing when people subscribe/unsubscribe, I could see this working: Basically, when you subscribe to a topic, you pick what events you're interested in. By default, it's
open,keepalive,message, and you can either specify a comma-separated list (e.g.message,subscribe) or you can add/remove events from the default list (e.g.+subscribe,+unsubscribetranslates toopen,keepalive,message,subscribe,unsubscribe):@arjan-s commented on GitHub (Dec 15, 2021):
Thanks for your quick answer! Yes, my reasoning is mainly that everything is unprotected and unencrypted right now, so I'd like to know when someone subscribes to a topic. But (disregarding implementation complexity for now) what I would really want is auth and e2e encryption. :)
@arjan-s commented on GitHub (Dec 15, 2021):
Anyway, your design idea sounds very usable! And probably a lot easier to implement than auth and encryption.
@binwiederhier commented on GitHub (Dec 15, 2021):
So I've had a number of conversations about this, and it's funny how people feel about this. I bet if the design was
curl ntfy.sh/mytopic/json?token=this-is-a-long-secret-string, then people would be perfectly fine with it, but somehow doingcurl ntfy.sh/this-is-a-long-secret-string/jsondoesn't seem secure to people.I think I will have to address it in the auth ticket somehow, but for what it's worth, just choosing a long topic is equally secure. You obviously won't get end-to-end encryption (something that is hard to implement if your client is curl), but it's pretty good nonetheless.
That said, I think this ticket in particular is pretty low on my list, given that your actual intentions are auth, and I feel like the benefits are marginal anyway.
@arjan-s commented on GitHub (Dec 15, 2021):
I definitely understand your reasoning. However, making the topic long and secret isn't very good for usability. Short descriptive topics are better in that regard, not in the least because the topic name is used in Android notification titles (which are also used by smartwatches/wearables).
@binwiederhier commented on GitHub (Dec 15, 2021):
I agree. I'll address this in the auth ticket (#19). IIRC there is a suggestion in there already, but I have some other thoughts. Feel free to comment there as well if you have more thoughts.
@arjan-s commented on GitHub (Dec 15, 2021):
Thanks, I've subscribed to that issue as well. Shall I close this one?
@binwiederhier commented on GitHub (Dec 15, 2021):
Yeah probably a good idea. 👍