-
Notifications
You must be signed in to change notification settings - Fork 7
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
API security improvements #1075
Comments
24.10.0-ns.1.4.99-alpha1-4-gda2a652 QA:
|
1. Check that you cannot change user password without filling the old one (this need to be checked even with CLI) Verified (UI only)
2. Ensure that adding SSH keys and deleting them works Verified 3. Check that file generated from adding keys (/etc/dropbear/authorized_keys) has the correct permissions (600 and owned by root:root) Verified
|
Test case 1, partially failed.
Possible fix: disable UI and API access to user page for non-root users (alert: this will prevent a correct workflow for all adminsusers!) |
Test case 4 verified:
|
I'm setting the issue as verified, since behavior found in test case 1 is out of scope for this issue. |
Due to upcoming NIS2 regulations, several changes are needed to strengthen up the backend of NethSecurity.
Even if there are no evident security issues, the following changes are the first steps towards a more robust and bulletproof backend:
ns-api
and all calls made by us with the prefixns-
uci
calls with only the following subcalls:get
,set
,changes
andrevert
luci
calls with only the following:getTimezones
andsetInitAction
system
calls with:info
andboard
file
API call refactor!(ns-api): removedfile
calls for SSH keys #1078Most of this work has been addressed in these repos:
While the work is mostly done, needs to be distilled from said branches and thoroughly tested.
The text was updated successfully, but these errors were encountered: