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

feat(repl): run "deno repl" with no permissions #16795

Merged
merged 5 commits into from
Dec 7, 2022

Conversation

bartlomieju
Copy link
Member

This commit changes "deno repl" command to run with no permissions by default
and accept "--allow-*" flags.

Screenshot 2022-11-24 at 21 29 44

This change is dictated by the fact that currently there is no way to run REPL with
limited permissions. Technically it's a breaking change in the CLI command, but
there's agreement in the team that it has merit and it's a good solution.

Running just "deno" command still starts the REPL with full permissions allowed,
but now a banner is printed to inform users about that:

Screenshot 2022-11-24 at 21 29 58

Ref #16770 (comment)
Ref #12665

@bartlomieju bartlomieju added this to the 1.29 milestone Nov 24, 2022
@bartlomieju
Copy link
Member Author

@dsherret please take a look

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM. Nice change

@bartlomieju bartlomieju merged commit 1a472ad into denoland:main Dec 7, 2022
@bartlomieju bartlomieju deleted the repl_permissions branch December 7, 2022 19:22
@dsherret
Copy link
Member

dsherret commented Dec 8, 2022

@bartlomieju this broke the pty_complete_imports test. It hangs now.

Edit: took a look and easy fix #16992

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants