Prerequisites
Authentication
To host the report on GCS (Google Cloud Storage), provide one of two ways to authenticate:Service Account (Recommended)
you can send the report to your GCS bucket by running the command:OAuth using gcloud
If you’re using OAuth with gcloud
, simply omit --google-service-account-path
:
--bucket-file-path <REPORT_PATH>
to
the edr send-report
command. Make sure the report’s file name ends with .html
.
Hosting the report as a website
You can host the report as the bucket’s website so that you can browse to it with a constant URL likehttps://storage.googleapis.com/<Elementary-Report-Bucket>/index.html
.
Here’s an example.
In order to do that, pass --update-bucket-website true
to send-report
in order to update the index.html
file in
the bucket.
Note: You might want to limit or grant access to your reports
bucket to certain users.
Configuration in file
If you prefer to useconfig.yml
file, you can add the following configuration instead of the CLI arguments: