Feature: Sicherheit Tab - SSH Login Audit + Session History
This commit is contained in:
@@ -24,6 +24,7 @@ type SystemData struct {
|
||||
License *LicenseInfo `json:"license,omitempty"`
|
||||
Proxmox map[string]interface{} `json:"proxmox,omitempty"`
|
||||
Backups map[string]interface{} `json:"backups,omitempty"`
|
||||
Security *SecurityInfo `json:"security,omitempty"`
|
||||
}
|
||||
|
||||
type LicenseInfo struct {
|
||||
@@ -181,6 +182,40 @@ type CronJob struct {
|
||||
Schedule string `json:"schedule"`
|
||||
}
|
||||
|
||||
type SecurityInfo struct {
|
||||
SSHLogins []SecurityLoginEvent `json:"ssh_logins"`
|
||||
WebGUILogins []SecurityLoginEvent `json:"webgui_logins"`
|
||||
Sessions []SecuritySession `json:"sessions"`
|
||||
Summary SecuritySummary `json:"summary"`
|
||||
}
|
||||
|
||||
type SecurityLoginEvent struct {
|
||||
Timestamp string `json:"timestamp"`
|
||||
User string `json:"user"`
|
||||
Source string `json:"source"`
|
||||
Port string `json:"port"`
|
||||
Method string `json:"method"`
|
||||
Status string `json:"status"`
|
||||
Key string `json:"key,omitempty"`
|
||||
}
|
||||
|
||||
type SecuritySession struct {
|
||||
User string `json:"user"`
|
||||
TTY string `json:"tty"`
|
||||
From string `json:"from"`
|
||||
Login string `json:"login"`
|
||||
Logout string `json:"logout"`
|
||||
Duration string `json:"duration"`
|
||||
}
|
||||
|
||||
type SecuritySummary struct {
|
||||
TotalAccepted int `json:"total_accepted"`
|
||||
TotalFailed int `json:"total_failed"`
|
||||
UniqueIPs int `json:"unique_ips"`
|
||||
UniqueUsers int `json:"unique_users"`
|
||||
LastLogin string `json:"last_login"`
|
||||
}
|
||||
|
||||
// HeartbeatRequest
|
||||
type HeartbeatRequest struct {
|
||||
AgentID string `json:"agent_id"`
|
||||
|
||||
Reference in New Issue
Block a user