Skip to content

Create data_dir on Monkey Island initialization #1147

@mssalvatore

Description

@mssalvatore

When Monkey Island starts, it needs to ensure that the data_dir is available so it can store data at runtime.

  • Fix server_config.json missing from travis. (0d) - @shreyamalviya

  • If no --server-config is passed to Monkey Island. (0d) - @shreyamalviya

    • If the default data_dir/server_config.json exists, load it and use it to bootstrap Monkey Island
    • If the default data_dir does not exist:
      • Create it with secure permissions (0700 on Linux, not readable by any user other than the owner on Windows)
      • Copy the default server_config.json to the default data_dir
    • If the default data_dir does exist but does not contain server_config.json:
      • Copy the default server_config.json to the default data_dir
  • If --server-config is passed to Monkey Island. (0d) - @shreyamalviya

    • Read the server config file. If the data_dir does not exist:
      • Create it with secure permissions (0700 on Linux) (0d)
      • Investigate permissions on Windows (0d)
      • Create data dir folder on Windows (0d)
      • Set permissions and test them for Windows (0d)
      • Add function to get default data directory depending on the system ($HOME/.monkey_island for Linux, %AppData%/monkey_island for Windows) (0d)
      • Test if permissions work on a built installer (opened Update and test new changes on MSI #1179)
  • Remove $DOT_DIR creation logic from appimage/run_appimage.sh (0d) - @shreyamalviya

  • PR Review and fixes (0.25d)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions