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

Fixes #26065: OpenSCAP report needs to be rendered without iframe with sanitized html #779

Conversation

clarktsiory
Copy link
Contributor

@clarktsiory clarktsiory commented Dec 13, 2024

https://issues.rudder.io/issues/26065

We have to read the report file (as the API does) in the snippet, as pass the information down, to create buttons with a download action (similar to Normation/rudder#5941).

The iframe can be used to render the original report by putting the sanitized content as string in the srcdoc attribute

Result :
Screenshot from 2024-12-13 16-16-40

@clarktsiory clarktsiory requested a review from fanf December 13, 2024 14:04
@clarktsiory
Copy link
Contributor Author

Commit modified

@clarktsiory clarktsiory force-pushed the bug_26065/openscap_report_needs_to_be_rendered_without_iframe_with_sanitized_html branch from 917530b to 6df43c9 Compare December 13, 2024 14:05
@clarktsiory
Copy link
Contributor Author

Commit modified

@clarktsiory clarktsiory force-pushed the bug_26065/openscap_report_needs_to_be_rendered_without_iframe_with_sanitized_html branch 2 times, most recently from 395f41a to 4c1fce2 Compare December 13, 2024 14:06
@clarktsiory
Copy link
Contributor Author

Commit modified

@clarktsiory
Copy link
Contributor Author

Commit modified

@clarktsiory clarktsiory force-pushed the bug_26065/openscap_report_needs_to_be_rendered_without_iframe_with_sanitized_html branch from 4c1fce2 to a8e4ce8 Compare December 13, 2024 14:27
@clarktsiory
Copy link
Contributor Author

PR updated with a new commit

@Normation-Quality-Assistant
Copy link
Contributor

OK, squash merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant force-pushed the bug_26065/openscap_report_needs_to_be_rendered_without_iframe_with_sanitized_html branch from 63d8806 to 1d5d87e Compare December 14, 2024 20:08
@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 1d5d87e into Normation:branches/rudder/8.2 Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants