Repository navigation
test: permission suite; fix: limit credential files to a directory full admins set - #88
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 44 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
somethingwithproof
force-pushed
the
feat/m3-cost-preview
branch
from
November 15, 2026 12:46
f5fb33e to
25d9d72
Compare
somethingwithproof
force-pushed
the
feat/m3-cost-preview
branch
from
November 15, 2026 16:54
25d9d72 to
279b4aa
Compare
This was referenced Nov 15, 2026
somethingwithproof
force-pushed
the
feat/m3-cost-preview
branch
from
November 16, 2026 08:09
279b4aa to
810e458
Compare
somethingwithproof
force-pushed
the
feat/m3-permissions
branch
from
November 16, 2026 08:09
37fa3e4 to
aa6b5b8
Compare
somethingwithproof
force-pushed
the
feat/m3-permissions
branch
from
November 16, 2026 09:01
aa6b5b8 to
fe4425f
Compare
The page check now creates a cloud graph on a scope device and views it through Cacti's graph.php as three users: every policy allowed, every policy denied, and denied except for an explicit grant on the scope device. Cloud graphs follow Cacti's graph and device permissions with no plugin layer. It also revokes Cloud View and Cloud Admin from logged-in users the way Cacti's user page does, changing reset_perms, and shows that the open session loses the page and that a form taken before the revocation changes nothing. ss_cloud.php serves nothing over HTTP. Closes #45 Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Cloud Admin, which sits below full Cacti administration, chooses each account's credential file. A new Credential File Directory setting on Cacti's Settings page, which only full administrators can change, now bounds that choice: a file must resolve inside it, and the vault key file is never accepted. The setting is empty by default, which refuses credential files. A path outside the directory is refused before the file is opened, with the same reason whatever the file's state. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
somethingwithproof
force-pushed
the
feat/m3-permissions
branch
from
November 17, 2026 04:45
fe4425f to
fd5f1fc
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Stacked on #87 (base
feat/m3-cost-preview). The permission tests are intests/bin/page-permissions.php, which CI already runs on every Cacti and PHP job. This PR also restricts credential files, below.Closes #45
What it adds
REQ-PERM-001. The page check already covered the administrator, the Cloud View user and the user with no realms. It now also covers access revoked while a user is logged in. It removes Cloud View, and separately Cloud Admin, the way Cacti's user page does: delete the realm row and change
user_auth.reset_perms. Then it shows:REQ-PERM-002. It creates a CPU graph on a scope device through Cacti's graph API and views it through Cacti's
graph.php, withgraph_auth_methodset to permissive:The plugin adds no graph permission layer of its own, so Cacti's device permission is what decides.
ss_cloud.phpover HTTP. Requesting it serves no resource data, even to a logged-in administrator. Cacti'scli_check.phpanswers 404, and the check also requires the file to exist, so a missing file can't pass it.Credential files are limited to a directory full administrators set
Cloud Admin sits below full Cacti administration, but it chooses each account's credential file. A new Credential File Directory setting on Cacti's Settings page bounds that choice. Only full administrators can change it.
Vault credentials and the provider endpoints are unchanged. Endpoints come from each driver's fixed host list, so no plugin page can choose where a credential is sent.
Testing
nographsuser allow policies makes its check fail.