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

Docs: add note forbidding allowance of user input of JS #1394

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

josmperez
Copy link
Contributor

Add note to best practices doc telling plugin developers not to allow the plugin's users to input random JS.

Fixes: #1233

@josmperez josmperez added type/docs Changes only affect the documentation no-changelog Don't include in changelog and version calculations labels Dec 10, 2024
@josmperez josmperez self-assigned this Dec 10, 2024
@josmperez josmperez requested a review from a team as a code owner December 10, 2024 21:48
@josmperez josmperez requested a review from jackw December 10, 2024 21:48
Copy link

github-actions bot commented Dec 10, 2024

Hello! 👋 This repository uses Auto for releasing packages using PR labels.

✨ This PR can be merged. It will not be considered when calculating future versions of the npm packages and will not appear in the changelogs.

Copy link
Collaborator

@mckn mckn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe change it as suggested to also highlight that the plugin developer should not enter any kind of code that will be executed in the browser or at the server side. So we should not allow the user to enter golang code either. Or code that gets executed on potential third party services.

docusaurus/docs/get-started/best-practices.md Outdated Show resolved Hide resolved
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
@josmperez josmperez requested a review from mckn December 11, 2024 17:17
@josmperez josmperez requested a review from academo December 16, 2024 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Don't include in changelog and version calculations type/docs Changes only affect the documentation
Projects
Status: 🔬 In review
Development

Successfully merging this pull request may close these issues.

Docs: Make it clear that JavaScript input is not allowed [UXR]
3 participants