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