Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Remove discover] Implement new PDF reports in dashboards #6556

Open
4 of 6 tasks
Tracked by #6120
asteriscos opened this issue Mar 27, 2024 · 7 comments · May be fixed by #6558
Open
4 of 6 tasks
Tracked by #6120

[Remove discover] Implement new PDF reports in dashboards #6556

asteriscos opened this issue Mar 27, 2024 · 7 comments · May be fixed by #6558
Assignees
Labels
level/task Task issue type/enhancement Enhancement issue

Comments

@asteriscos
Copy link
Member

asteriscos commented Mar 27, 2024

Description

We need to adapt the current PDF report features so it can generate reports from embeddable dashboards. This will allow us to progressively deprecate the legacy discover dependencies and deprecate AngularJS in the plugins.

Implementation restrictions

  • The PDF reports capability must not use any AngularJS related feature.

Tasks

  • Adapt the existing PDF report feature to use embeddable dashboards
  • Adapt the generation of PDF reports
    • modules
    • groups
    • agents inventory
    • configuration
@asteriscos asteriscos changed the title Implement new PDF reports in dashboards [Remove discover] Implement new PDF reports in dashboards Mar 27, 2024
@asteriscos asteriscos added level/task Task issue type/enhancement Enhancement issue labels Mar 27, 2024
@Desvelao Desvelao linked a pull request Mar 27, 2024 that will close this issue
6 tasks
@Desvelao Desvelao linked a pull request Mar 27, 2024 that will close this issue
6 tasks
@Desvelao
Copy link
Member

Changes

  • Replace query.getOpenSearchQuery from global source to use the search context
  • Update the development branch with latest changes of 4.9.0 branch

@Desvelao
Copy link
Member

Problem

After updating the development branch and trying to generate the PDF report on Theat Hunting application that has already replaced the dashboard, I got errors. It seems the old dashboard is rendered and causes that take screenshots of visualizations that are not rendered, and this causes a problem when building the PDF report on the backend side.

This issue #6594 should remove the render of the old dashboard, and this problem should disappear.

@Desvelao
Copy link
Member

Desvelao commented Apr 30, 2024

Changes

  • Update the development branch with the latest changes of 4.9.0 branch
  • Adapt the generation of PDF reports using the data source on:
  • Dashboard of Threat Hunting, VirusTotal, MITRE ATT&CK
  • Adapt the generation of PDF reports of agent inventory using the data source
  • Fix error in time range filter when using the Today and This week special date ranges

@Desvelao
Copy link
Member

Desvelao commented Apr 30, 2024

Problem

I found a problem on the generation of PDF report of Amazon Web Services related to the geolocation map visualization. It seems the library to convert the DOM node to image fails. I reviewed the previous versions and this visualization is not included on the reports, so this should be a known issue: #5086.

I will try to research if we can solve this.

Update 2024/05/02

I continue researching about the problem related to converting to png the map visualization on the Amazon Web Services application.

I found an issue abut the error: tsayen/dom-to-image#455

Update:
I found a possible solution applying a patch to the dom-to-image library:
tsayen/dom-to-image#243 (comment)
image

@Desvelao
Copy link
Member

Desvelao commented May 2, 2024

Changes

  • Dashboard of File Integrity Monitoring

@Desvelao
Copy link
Member

Desvelao commented May 3, 2024

Changes

  • Dashboard of Docker
  • Dashboard of Malware Detection

@Desvelao
Copy link
Member

Desvelao commented May 6, 2024

Changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue type/enhancement Enhancement issue
Projects
Status: On hold
Development

Successfully merging a pull request may close this issue.

2 participants