Better protection against typo in curator config file

I am a new user to curator and with the latest version of curator (4.0.0) I started with the following action config:

actions:
  1:
    action: delete_indices
    fitlers:
    - filtertype: pattern
      kind: prefix
      value: logstash-
    - filtertype: age
      source: name
      timestring: '%Y.%m.%d'
      direction: older
      unit: days
      unit_count: 5

Instead of 'filters' i typed in 'fitlers', which is a fairly common error to make.

As a result, all my indices in elastics are removed. And it took me some time to figure out why this happened.

I would suggest that curator provide better protection against this sort of disaster. For example, when unrecognized options are encountered, an error shall be raised.

I'd recommend you raise this as an issue against the Curator repo - https://github.com/elastic/curator/issues

Thanks, submitted as https://github.com/elastic/curator/issues/674

For safety's sake, always use the --dry-run flag until you're sure your configuration is fully functional.