Feature/core node#16
Open
d00p wants to merge 8 commits into
Open
Conversation
Extend nodes with tenant ownership and introduce a node_tenant pivot with
inheritable assignments. Add tenant-scoped node API routes, policy checks, and
creation flows for /api/tenants/{tenant}/nodes while allowing global admins to
create tenant-owned nodes via /api/nodes.
Also enforce the single Local node invariant, adjust single-node UI redirects,
and add coverage using a fake non-local test adapter.
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
…tion, clear latestGuid/nextGuid semantics, and DB persistence only after successful provisioning. Improve the jail creation script and add tests for tenant node authorization plus GUID skipping when system UIDs are already occupied. Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
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.
The core Node management flow is now fully protected through policies/gates and covered by PHPUnit tests, including both global and tenant-scoped Node access.
StoreNodeRequest now validates the adapter against registered adapter FQCNs, and tenant-related Node resource usage is tracked on create/delete.
Tests also cover resource limits, audit-log context, and preventing deletion of Nodes that still have assigned environments.