elementary icon indicating copy to clipboard operation
elementary copied to clipboard

Allow credentials in `config.yml` to be used for only one command

Open JavierLopezT opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. I need to use the edr send-report to upload my report to GCS, but I dont want to have anything sent to Slack. However, I need to send the alerts of edr monitor to Slack.

I have both google and slack credentials configured in the config.yml file, but I would like edr send-report to ignore the slack ones.

Describe the solution you'd like To have something in the configs like

google:
  service_account_path: service_account_path
  gcs_bucket_name: gcs_bucket_name
  command: report

As well as maybe a flag for indicating which config to use, so for instance: edr send-report --google

Describe alternatives you've considered I am aware that this is possible to workaround passing explicitly the slack token and google credentials to the respective commands and have the config file empty or non existent, but its more convenient to have the file or the flag

Would you be willing to contribute this feature? Yes, under some guidance

JavierLopezT avatar Jun 09 '23 14:06 JavierLopezT