stackblitz / tutorialkit

TutorialKit by StackBlitz - Create interactive tutorials powered by the WebContainer API
https://tutorialkit.dev
MIT License
507 stars 49 forks source link

feat(terminal): restrict default allowed commands to 'ls' and 'echo' #372

Open RonithManikonda opened 1 month ago

RonithManikonda commented 1 month ago

Change the default value of terminal.allowCommands from an empty array to ['ls', 'echo']. This change prevents users from running all available commands by default in tutorials, enhancing security and focus. Lesson authors can still allow all commands by specifying terminal.allowCommands: [] in the metadata.

BREAKING CHANGE: The default value of terminal.allowCommands is now restricted to ['ls', 'echo']. To allow all commands, explicitly set terminal.allowCommands: [] in the metadata.

Closes #302

stackblitz[bot] commented 1 month ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

cloudflare-workers-and-pages[bot] commented 3 weeks ago

Deploying tutorialkit-demo-page with  Cloudflare Pages  Cloudflare Pages

Latest commit: 69ec710
Status: ✅  Deploy successful!
Preview URL: https://945c3ace.tutorialkit-demo-page.pages.dev
Branch Preview URL: https://ronith-hide-toggle-terminal.tutorialkit-demo-page.pages.dev

View logs