security: add security doc.#148
Conversation
plainheart
left a comment
There was a problem hiding this comment.
As requested in apache/echarts#21276, do we need to add some examples with the present ECharts APIs to enable users to get simple risk handling? 🤔
|
Add a doc for contributors of echarts. Security Checklist for ContributorsSecurity issues should be given special attention. Although ECharts focuses on visualization logic and generally assumes that inputs originate from trusted sources, contributors should stay cautious of potential security risks during implementation. They should either mitigate these risks whenever possible, or highlight them in the document for each API (including ECharts options). XSS is one of the most common security risks, especially when using
Before committing a pull request, please check your new design and implementation against the CHECKLIST below.
Security Guidelines explain the security model, checklists, and safe usage recommendations based on the perspective of developers using ECharts. ECharts contributors should also follow this document and update it as necessary. |
@plainheart An example is added to the Security doc in this PR, using |
Should unavoidable be more appropriate? Others LGTM |
Add security doc for ECharts-caller, including security boundaries, checklists, and recommendations.