submit_report.sh, kdump.etc: Add log submission mechanism

Finally we have a functional mechanism to upload the crash logs
to Valve servers (special thanks to TonyP for the API help).
Documentation is present in the README.MD as usual.

NOTE: worth to reinforce here what was alread mentioned in the
README: kdump-steamos doesn't perform any significant validation
against malicious usage of the log submission mechanism, like DDoS,
submitting a malicious ZIP binary, a very huge file, etc.
All of this is expected to be handled by the server side.

Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
This commit is contained in:
Guilherme G. Piccoli
2022-02-02 16:43:41 -03:00
parent b1e183e1dc
commit fae5982a50
4 changed files with 231 additions and 33 deletions

View File

@ -34,7 +34,8 @@ MAKEDUMPFILE_DMESG_CMD="--dump-dmesg"
# in size.
USE_PSTORE_RAM=1
# This is a log submission setting, based on Steam config files, and
# *should not* be changed, or else the log sending mechanism will be
# impaired.
# Below some log submission settings, based on Steam config files and Valve
# URLs. These settings *should not* be changed, or else the log sending
# mechanism will be impaired.
LOGINVDF="/home/doorstop/.local/share/Steam/config/loginusers.vdf"
POST_URL="https://api.steampowered.com/ICrashReportService/ACTIONCrashUpload/v1"