Timothy Allard
03/27/2024, 9:25 PMedr send-report … command and am running into an issue in prod:
elementary.exceptions.exceptions.InvalidArgumentsError: You must provide a platform to upload the report to (Slack token / S3 / GCS).
We’re running 0.12.1 due to a pandas conflict, but I don’t see any options in the help command to set the platform. Any guidance would be appreciated. Thank youNoy Arie
03/28/2024, 10:37 AMTimothy Allard
03/28/2024, 1:54 PMTimothy Allard
03/28/2024, 1:59 PMconfig..py file: https://github.com/elementary-data/elementary/blob/master/elementary/config/config.py#L200Timothy Allard
03/28/2024, 2:02 PMedr send-report --profiles-dir <redacted> --profile-target <redacted> --gcs-bucket-name <redacted> --bucket-file-path <redacted>/edr_target/report.htmlTimothy Allard
03/28/2024, 2:40 PMsend-report is `config.validate_send_report()`: https://github.com/elementary-data/elementary/blob/master/elementary/monitor/cli.py#L691C9-L691C38 which then checks for `has_gcs`: https://github.com/elementary-data/elementary/blob/master/elementary/config/config.py#L200 has_gcs then checks for a bucket name, which we’re providing. But then it also checks for has_gcloud : https://github.com/elementary-data/elementary/blob/master/elementary/config/config.py#L235 has_gcloud either expects a service account path or tries to use the default google auth: https://github.com/elementary-data/elementary/blob/master/elementary/config/config.py#L229Timothy Allard
03/28/2024, 2:43 PMgoogle.auth just looks for the GOOGLE_APPLICATION_CREDENTIALS which is set as an ENV var in our test env. 🤔Noy Arie
03/28/2024, 3:05 PMGOOGLE_APPLICATION_CREDENTIALS defined as well?Timothy Allard
03/28/2024, 3:23 PM