Skip to content

Implement configuration file for default settings and preferences #10

@BhoomiAgrawal12

Description

@BhoomiAgrawal12

Description

Allow users to configure default behaviors through a configuration file rather than requiring command-line arguments or menu selections each time.

Use Cases

  • IT departments wiping multiple devices with same settings
  • Default operator ID for certificate generation
  • Preferred wipe algorithm
  • Automatic verification enable/disable
  • Certificate storage location
  • Log verbosity level

Proposed Solution

  1. Configuration File Format

    • Use INI or YAML format
    • Location: /etc/securewipe/config or ~/.securewipe/config
    • Example:
      [general]
      operator_id = IT-DEPT-001
      certificate_path = /media/usb/certificates/
      
      [wipe]
      default_algorithm = ata_secure_erase
      enable_verification = true
      
      [ui]
      confirm_operations = true
      show_warnings = true
  2. Implementation

    • Parse config file at startup
    • Override with command-line arguments
    • Validate configuration values
    • Provide sample config file
  3. Documentation

    • Document all available options
    • Provide example configurations
    • Explain override priority

Acceptance Criteria

  • Config file parser implemented
  • All major settings configurable
  • Sample config file provided
  • Documentation complete
  • Graceful handling of missing/invalid config

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions