From d6554a0d878d7835f93f483306adfdeee08daa55 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Sat, 10 Jan 2026 21:28:08 +0000 Subject: [PATCH] fix(frontend): expand agent tables to full width in full-width mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tables in Settings → Agents were not expanding to fill the container width when full-width mode was enabled. Added `w-full` class to all tables (Managed Agents, Kubernetes Clusters, and removed host tables) so they properly expand in full-width layouts. Fixes #1080 --- .../src/components/Settings/UnifiedAgents.tsx | 8 ++++---- pkg/server/server.go | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/frontend-modern/src/components/Settings/UnifiedAgents.tsx b/frontend-modern/src/components/Settings/UnifiedAgents.tsx index 59d0cb3b4..8433b3267 100644 --- a/frontend-modern/src/components/Settings/UnifiedAgents.tsx +++ b/frontend-modern/src/components/Settings/UnifiedAgents.tsx @@ -940,7 +940,7 @@ export const UnifiedAgents: Component = () => { - +
@@ -1096,7 +1096,7 @@ export const UnifiedAgents: Component = () => { -
Hostname
+
@@ -1159,7 +1159,7 @@ export const UnifiedAgents: Component = () => { -
Cluster
+
@@ -1208,7 +1208,7 @@ export const UnifiedAgents: Component = () => { -
Hostname
+
diff --git a/pkg/server/server.go b/pkg/server/server.go index 1c236bd25..ae96b1831 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -23,6 +23,7 @@ import ( _ "github.com/rcourtman/pulse-go-rewrite/internal/mock" // Import for init() to run "github.com/rcourtman/pulse-go-rewrite/internal/monitoring" "github.com/rcourtman/pulse-go-rewrite/internal/websocket" + "github.com/rcourtman/pulse-go-rewrite/pkg/auth" "github.com/rcourtman/pulse-go-rewrite/pkg/metrics" "github.com/rs/zerolog/log" ) @@ -87,6 +88,19 @@ func Run(ctx context.Context, version string) error { // Initialize license public key for Pro feature validation license.InitPublicKey() + // Initialize RBAC manager for role-based access control + dataDir := os.Getenv("PULSE_DATA_DIR") + if dataDir == "" { + dataDir = "/etc/pulse" + } + rbacManager, err := auth.NewFileManager(dataDir) + if err != nil { + log.Warn().Err(err).Msg("Failed to initialize RBAC manager, role management will be unavailable") + } else { + auth.SetManager(rbacManager) + log.Info().Msg("RBAC manager initialized") + } + log.Info().Msg("Starting Pulse monitoring server") // Validate agent binaries are available for download
Cluster