-
Notifications
You must be signed in to change notification settings - Fork 12
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
Ghost notifications from offline printers or private key compromised? #70
Comments
Hey, In regard to your concerns about keys. The companion works by directly communicating with the backend service (via SSL), which acts as a relay between all companion instances and Firebase for notification delivery. The backend server does not store any information in regard to your push token or content. Also, the only places where your push token is permanently stored are 1. your device and 2. the companion/moonraker database running on your printer. If you are concerned, you can also entirely remove the app and reinstall it in order to receive a completely new pushToken. As a first step, I'd suggest you clear the Please let me know if this happens again and I will investigate this behavior more indepth. |
@Clon1998 Thanks for your reply. Initially I was hoping that this could be closed and we’ll be good, but I haven’t turned on my printers since our last discussion, yet, I received more notifications last night while on vacation 😅 I’m out until Jan 6th, so I’ll try to look closer into this from my side after my return. Thanks! |
That is weird. Enjoy your time off. Once you're back please provide me the log file of the companion. I am wondering if the companion is behaving weired. |
FWIW, the companion is currently offline and has been for 2-3 weeks since I’m running the companion on a K1 that’s completely powered down. So this had to be a firebase stored message that was now senr out |
Ohh okay. Once I have the log, I might be able to have a look at the backend logs to see exactly what the reason is. I don't think that the notifications are held back for so long tho. Also, there should never be a collision of Firebase cloud messaging IDs, as far as I know. |
Hey @Clon1998! I'm back and wanted to give an update. Since we last spoke over a week ago, I started getting more and more notifications that were consistent with someone printing. Initially I thought these might still be some of my old queued up notifications, until it became clear that I must have been receiving someone elses notifications. They started printing XBox controller stuff and I never owned an Xbox (Playstation kid ...). One of the notifications made me think though: It became clear the persons notifications I was receiving were also coming from another Creality K1 printer and the chances he used the same method to install mobileraker_companion as I did (via https://github.com/Guilouz/Creality-K1-and-K1-Max) are actually quite high. So this got me thinking if this might be a problem where there are either key collisions happening due to a large number of K1 users using the same scripts to install mobileraker_companion or something else related to that setup that might be independent of mobileraker_companion? Sorry if I end(ed) up causing you undue stress with this, I'll also add my logs in a second after I booted up my printers |
Here's the log from the last time the printer successfully printed something |
@caffeineflo, no worries, and thanks for the investigation. I currently do not store any of the Regarding the installation of the K1 script: since the token is generated by your phone or tablet and stored in moonraker's database, any problems with the token are not related to the installation script. For now, I would suggest you remove the app entirely and install it once again to ensure firebase generates a new |
Over the past 48hrs two of my printers (Creality K1s) that have mobileraker_companion installed to server notifications to my phone but were offline (literally not plugged in), started to serve me notifications of started prints and status updates.
The notifications (see screenshot) came up in the middle of the night, telling me the status of my prints, reporting at 50% and when they finished.
What's even weirder is that the files mentioned haven't existed on my systems for a long time anymore as well as the "UNKNOWN" file wasn't something my system ever had.
Generally, my printers and all of my network isn't exposed to the WWW, only a single wireguard server. Which leaves the question to me, wether my private-keys that notify the FCM service was compromised somehow or there was some old task running that notified me now?
In any case, I'd love to understand what happened here.
Thanks


The text was updated successfully, but these errors were encountered: