Add RBAC support with roles, permissions, and session management. Implement middleware for authentication and CSRF protection. Enhance audit logging with additional fields. Update HTTP handlers and routes for new features.

This commit is contained in:
2025-12-13 17:44:09 +00:00
parent d69e01bbaf
commit 8100f87686
44 changed files with 3262 additions and 76 deletions

View File

@@ -0,0 +1,23 @@
{{ define "iscsi" }}
<div class="p-4">
<h2 class="text-xl">iSCSI Targets</h2>
<div hx-get="/api/iscsi/hx_targets" hx-swap="outerHTML"></div>
<div class="mt-4">
<h3>Create Target</h3>
<form hx-post="/api/iscsi/create_target">
<label>Name: <input type="text" name="name"/></label>
<label>IQN: <input type="text" name="iqn"/></label>
<button type="submit">Create Target</button>
</form>
</div>
<div class="mt-4">
<h3>Create LUN</h3>
<form hx-post="/api/iscsi/create_lun">
<label>Target ID: <input type="text" name="target_id"/></label>
<label>ZVol path: <input type="text" name="zvol"/></label>
<label>Size (e.g. 10G): <input type="text" name="size"/></label>
<button type="submit">Create LUN</button>
</form>
</div>
</div>
{{ end }}