Skip to content

[flutter/dart] Is it possible to ask for permission for dangerous operations for Flutter contributors #186419

Description

@hellohuanlin

Use case

Background: #186412

It is scary that a random Flutter script can nuke folders like ~/Desktop. The damage is real - in my case, I lost my repos (with a few local branches that I didn't push), but it could have been worse for other contributors.

Proposal

I wonder if it is possible to limit what flutter/dart can do, and explicitly ask for permission for dangerous operations like this. As a flutter contributor, I'd appreciate this kind of protection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: proposalA detailed proposal for a change to Flutterteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions