Skip to content

Enhancement - Add date to the report file name and at the top of the html report #1641

@yiskaneto

Description

@yiskaneto

Is your feature request related to a problem? Please describe.

I'd like to get the current date (year-month-day-hour-minute) as part of the name of the aws-<account-id.html file, currently if we run the report again the program will detect that a file with the previous name exists and will ask the user if we want to override the existing report, it's way more convenient to instruct the program to generate a report with the current date, this way we can have multiple reports to later review.

Also, it would be super useful to add the current date (UTC) to the right side or below the "Provider Name - Account ID" section in the html report, for example:

Provider Name - Account ID (Report date: Mon, 03 Jun 2024 20:20:17 GMT)

Describe the solution you'd like

This is possible by adjusting the loadAccountId function found on ScoutSuite/output/data/inc-scoutsuite/scoutsuite.js and the get_report_name function found on ScoutSuite/providers/aws/provider.py

I have opened the following PR to address this:

Additional context

This will greatly help when using ScoutSuite in a given pipeline that potentially runs this every n days.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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