Skip to content

Ensure Default Log Storage on Persistent Storage Instead of RAM #1082

@cotosso

Description

@cotosso

Description
Currently, log files are stored in RAM by default. However, for installations with advanced security requirements, logs should be persistently saved by default.

Proposed Solution
To align with security-by-design and security-by-default principles, logging should be enabled immediately upon deployment. A minimally invasive approach that maintains the current behavior while improving security is proposed:

On first UI access, display a modal asking whether to save logs on persistent storage.

The modal must be acknowledged before it disappears.

Until explicitly answered, the modal will reappear on every UI access (e.g., reopening a closed tab).

Available Choices

  • Log on installation storage partition (default)
  • No logging

For cases where an additional storage partition is available, the user can later navigate to the storage settings, disable logging on the current partition, and enable it on the new storage.

Impact & Benefits

Ensures critical logs are not lost due to RAM storage volatility.
Provides users with an informed choice while maintaining security defaults.
Allows for flexible log storage reconfiguration post-installation.

In case of presence of a controller

In case of use of a controller the admin can link NethSecurity to the controller too, saving logs in both local and remote resources.
This also guarantee log save in case of connectivity issues (including attack scenarios) that may prevent logs from reaching the controller, resulting in loss of critical data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    verifiedAll test cases were verified successfully

    Projects

    Status

    Done ✅

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions