-
-
Notifications
You must be signed in to change notification settings - Fork 130
Closed as not planned
Labels
Description
This issue is to discuss implementation of the point referenced in the title of #898.
My first concern would be on which flag to use to pass the file. The options that I can think of are:
- Use the
--experimental-policyflag. My main concern is this would imply the need to also set policy. - Add an optional file to the
--experimental-permissionflag (I'm still unsure that's even possible). - Creating a new flag (e.g.
--permission-file).
Another doubt I have is what would be the expected behaviour on precedence when permissions are set on both flags (e.g. --allow-fs-read) and file. Options:
- Fail when both set.
- Fail when both set for the same setting (e.g. not fail if permission to read set on file and permission to write set on flag but fail if read set on both) This doesn't make much sense IMO.
- Use the union of both.
- Use the intersection of both.
- Ignore file.
- Ignore flag.
I would go with:
1.2. Add an optional file to the --experimental-permission flag (If possible) as we wouldn't need a new flag.
2.1. Fail when both set. I'd assume that to be a mistake, and throw an error explaining the problem. Also this might prevent some sort of attacks using the unconfigured one.
Any ideas and suggestions are welcomed.