cli icon indicating copy to clipboard operation
cli copied to clipboard

Should `platform drush cset` be run non-interactively

Open andriokha opened this issue 1 year ago • 0 comments

Hi, I'm not sure if this is a bug or expected behavior, but it strikes me as potentially risky. I'm not being asked for confirmation when running platform drush cset. In the following example I run the same drush command twice, once via ddev affecting a local environment, and once via platform affecting the production environment. The platform version doesn't ask for confirmation and is affecting the config on production.

$ ddev drush cset config_ignore_auto.settings ignored_config_entities '[]'

 ┌ Do you want to update ignored_config_entities key in config_ignore_auto.settings config? ┐
 │ Yes                                                                                      │
 └──────────────────────────────────────────────────────────────────────────────────────────┘

$ platform drush cset config_ignore_auto.settings ignored_config_entities '[]' && echo success
success
$ env | grep -E '(PLATFORM|DRUSH)'
$ platform --version
Platform.sh CLI 5.0.22

Thanks!

andriokha avatar Oct 07 '24 13:10 andriokha