-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
Homepage Widget API Error #838
Comments
Hi @TheCBiker , I assume you have a password set? If so, try to disable the password functionality. |
Glad to hear that! These changes should increase the overall security of the application going forward. I might create some alternative ways to retrieve the data, so that it's accessible even when a password is set, but the first step is to improve the security. |
I understand. thank you |
Homepage dev here. So to clarify the api previously did not use any kind of auth and at some point you may add it? I’ll follow the issue here for if / when you can do and we’ll update on our side to support |
Thanks @shamoon 🙏if you have any suggestions how other apps are handling this, please let me know. My first thoughts would be either to exclude this API path from authentication, create a new endpoint not requiring authentication or adding support for for a API token/bearer/authentication header. There is already a
Thanks in advance for the help. |
I think token / bearer auth is ideal choice (I think this app deals with sensitive-enough stuff that leaving it completely open isn't ideal). But of course I don't know what your codebase is like and how much of a pain that is (generally Im happy to help with PRs etc but don't really have the bandwidth at the moment). I'd say low priority but I'll follow along! |
Thanks, understandable. So if Homepage already supports consuming bearer tokens, then this should be already supported in NetAlertX in the current version. Auth header: NetAlertX/front/php/templates/security.php Lines 34 to 65 in 3d9bf32
Let me know if I need to support a different format or if this is already workable. |
Oh cool, yea, lemme try it out! Sorry for being lazy, Im not super familiar with the app, where do you get the SYNC_api_token? |
Did you try… typing one into that field? |
Of course....not. Wasn't sure if it was the kinda thing that had to be generated by the app itself. Managed to create a token, pop it in there, and now I'm good to go. |
released -> closing |
Is there an existing issue for this?
Current Behavior
Since version 24.10.12 an API error appears in the homepage widget.
Expected Behavior
Correct display of data fields in the homepage widget.
Steps To Reproduce
No response
app.conf
No response
docker-compose.yml
No response
What branch are you running?
Production
app.log
Error log from Homepage Widget:
API-Fehler: Invalid data
<title>NetAlert X | Log in</title>URL: http://192.168.XXX.XXX:20211/php/server/devices.php?action=getDevicesTotals
Antwortdaten:
Enter your password
(valid for 7 days)
Password Information
Passwords are set via the Set Password plugin. Check the SETPWD docs if you have issues logging in.
Debug enabled
The text was updated successfully, but these errors were encountered: