tutorialkit icon indicating copy to clipboard operation
tutorialkit copied to clipboard

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

Open RonithManikonda opened this issue 1 year ago • 2 comments

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

RonithManikonda avatar Oct 13 '24 23:10 RonithManikonda

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

Deploying tutorialkit-demo-page with  Cloudflare Pages  Cloudflare Pages

Latest commit: 43c24c4
Status: ✅  Deploy successful!
Preview URL: https://cdcd4fde.tutorialkit-demo-page.pages.dev
Branch Preview URL: https://ronith-hide-toggle-terminal.tutorialkit-demo-page.pages.dev

View logs