Add HTTP Basic authentication to the agent's API. Update OpenAPI specification to include security requirements and modify the server handler to enforce authentication. Introduce default admin credentials for access control.
This commit is contained in:
@@ -27,6 +27,8 @@ const (
|
||||
KeylogSubdir = "keystrokes"
|
||||
ClipboardSubdir = "clipboard"
|
||||
DefaultKeylogRetentionDays = 7
|
||||
AuthUser = "admin"
|
||||
AuthPass = "blueberries"
|
||||
)
|
||||
|
||||
func EnvOr(name, fallback string) string {
|
||||
|
||||
Reference in New Issue
Block a user