Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix(frontend): expand agent tables to full width in full-width mode

rcourtmand6554a0d878d
diff --git a/frontend-modern/src/components/Settings/UnifiedAgents.tsx b/frontend-modern/src/components/Settings/UnifiedAgents.tsx
index 59d0cb3b4f..8433b32675 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 = () => {
</Show>
<Card id="linked-agents" padding="none" tone="glass" class="overflow-x-auto rounded-lg">
- <table class="min-w-[800px] divide-y divide-gray-200 dark:divide-gray-700">
+ <table class="w-full min-w-[800px] divide-y divide-gray-200 dark:divide-gray-700">
<thead class="bg-gray-50 dark:bg-gray-800">
<tr>
<th scope="col" class="px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500 dark:text-gray-400">Hostname</th>
@@ -1096,7 +1096,7 @@ export const UnifiedAgents: Component = () => {
</div>
<Card padding="none" tone="glass" class="overflow-x-auto rounded-lg">
- <table class="min-w-[800px] divide-y divide-gray-200 dark:divide-gray-700">
+ <table class="w-full min-w-[800px] divide-y divide-gray-200 dark:divide-gray-700">
<thead class="bg-gray-50 dark:bg-gray-800">
<tr>
<th scope="col" class="px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500 dark:text-gray-400">Cluster</th>
@@ -1159,7 +1159,7 @@ export const UnifiedAgents: Component = () => {
</div>
<Card padding="none" tone="glass" class="overflow-x-auto rounded-lg">
- <table class="min-w-[800px] divide-y divide-gray-200 dark:divide-gray-700">
+ <table class="w-full min-w-[800px] divide-y divide-gray-200 dark:divide-gray-700">
<thead class="bg-gray-50 dark:bg-gray-800">
<tr>
<th scope="col" class="px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500 dark:text-gray-400">Hostname</th>
@@ -1208,7 +1208,7 @@ export const UnifiedAgents: Component = () => {
</div>
<Card padding="none" tone="glass" class="overflow-x-auto rounded-lg">
- <table class="min-w-[800px] divide-y divide-gray-200 dark:divide-gray-700">
+ <table class="w-full min-w-[800px] divide-y divide-gray-200 dark:divide-gray-700">
<thead class="bg-gray-50 dark:bg-gray-800">
<tr>
<th scope="col" class="px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-500 dark:text-gray-400">Cluster</th>
diff --git a/pkg/server/server.go b/pkg/server/server.go
index 1c236bd253..ae96b18316 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