Skip to content

Add subresource integrity (SRI) for import of redoc.standalone.js #2875

@geld0r

Description

@geld0r

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

The HTML file created by build-docs includes the redoc.standalone.js as an inline script. For security reasons, Subresource Integrity should be defined for the file to ensure that it has not been tampered with.

Describe the solution you'd like

The generator should do that automatically or the hash should be provided for each new version to ensure that generated output has a valid integrity hash as well as crossorigin="anonymous" tag set.

Describe alternatives you've considered

For now I've manually generated the SRI hash with the tool linked below and integrated this into my generated output. However on next rebuild, this will be overridden and is at risk of being lost, opening up the security risk again.

Additional context

Metadata

Metadata

Assignees

No one assigned

    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