Commit graph

107 commits

Author SHA1 Message Date
Michael Kaye
78060556a2 Serve a tarball containing the contents of a given directory.
This will make it easier to get all logs for a given bug; preventing users
needing to run scripts to download all files.

 - we cannot make the link exist in the directory listing as there are scripts
   that automate downloads which would pick this up.

 - Unsure if "?format=tar.gz" is the right option to enable this; I couldn't think
   of something easy to do but hard to not get picked up by existing automation, and
   wouldn't conflict with existing filenames.
2022-02-09 16:06:44 +00:00
Michael Kaye
b7ffb434e9 1.5 2022-02-08 15:03:54 +00:00
Michael Kaye
cc2374e431
Merge pull request #52 from matrix-org/michaelk/allow_json_files
Allow upload of files with a .json postfix.
2022-02-08 15:02:09 +00:00
Michael Kaye
a7724b7bc8 Serve .json files as application/json. 2022-02-08 14:20:45 +00:00
Michael Kaye
53e8947cb9 Changelog.d 2022-02-08 11:01:12 +00:00
Michael Kaye
18c8a83173 Allow upload of files with a .json postfix. 2022-02-08 10:58:21 +00:00
Michael Kaye
589e9254e7 1.4 2022-02-01 14:03:48 +00:00
Michael Kaye
a8c57f2eb9
Merge pull request #50 from matrix-org/michaelk/proxy_rageshake_requests
A generic webhook for notifications about reports.
2022-02-01 14:02:14 +00:00
Michael Kaye
095b55e640 Only create payload struct once.
(But keep making bytes.Buffer multiple times as these is read from by each http request)
2022-02-01 13:59:01 +00:00
Michael Kaye
4e3eeec92c genericWebhookURLs as a list rather than a single endpoint. 2022-02-01 13:26:29 +00:00
Michael Kaye
8e001408d8 Reduce cyclometric complexity 2022-01-31 16:24:25 +00:00
Michael Kaye
d8a5acd2e2 Makefile was for personal testing, should not have been committed. 2022-01-31 16:07:17 +00:00
Michael Kaye
adc43f50ec Changelog.d 2022-01-31 15:30:37 +00:00
Michael Kaye
81865b0193 Initial attempt at a generic webhook for reports.
Background submission to a notification server that doesn't block rageshake submission.
2022-01-31 15:25:17 +00:00
Michael Kaye
29c2f9a48f Merge the updates to go 1.15 then go 1.16 into a single changelog line. 2022-01-25 10:30:47 +00:00
Michael Kaye
a9deeaafa5 1.3 2022-01-25 10:28:53 +00:00
Michael Kaye
8beb68cd85
Merge pull request #41 from matrix-org/michaelk/permit_gz_extension
Allow files ending "txt.gz" or "log.gz" to be uploaded as a log file.
2022-01-25 10:00:46 +00:00
Michael Kaye
c4d23e3481
Merge pull request #44 from matrix-org/michaelk/docs_about_rageshake_files
Docs about rageshake files
2022-01-25 10:00:15 +00:00
Michael Kaye
5d59304d9b Add changelog 2022-01-24 13:48:01 +00:00
Michael Kaye
d830523731 All platforms (web, ios, android) provide feedback in various formats, none of which
contain log files.
2022-01-24 13:47:01 +00:00
Michael Kaye
c674f7e243 Update comment to be accurate. 2022-01-24 13:41:36 +00:00
Michael Kaye
ac76e5e706
Update submit.go
Refactor slightly to be clearer that we only add .gz if it's not already there.

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2022-01-24 13:38:50 +00:00
Quentin Gliech
3f4fa7242c
Merge pull request #47 from matrix-org/sandhose/docker-improvements
Build and push multi-arch Docker images on ghcr.io
2022-01-21 15:21:52 +01:00
Michael Kaye
108594b531 Link into docs for the logs and compressed-logs formats. 2022-01-21 11:52:45 +00:00
Michael Kaye
e5a067b4b9 Combine eleweb/eledesktop, add notes about process/thread ID. 2022-01-21 11:48:40 +00:00
Michael Kaye
bbe36198b7
Apply suggestions from code review
Some textual tweaks.

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2022-01-21 11:45:58 +00:00
Quentin Gliech
35650109cc
Add a healthcheck endpoint (#48)
Signed-off-by: Quentin Gliech <quenting@element.io>
2022-01-21 10:37:42 +00:00
Quentin Gliech
ab3c3d8e46
Set the workdir back to / in Docker image 2022-01-21 11:33:35 +01:00
Quentin Gliech
ec204d164a
Build and push a debug variant of the image 2022-01-21 11:23:54 +01:00
dependabot[bot]
ff28125e8b
Bump gopkg.in/yaml.v2 from 2.2.2 to 2.2.8 (#43)
Bumps [gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) from 2.2.2 to 2.2.8.
- [Release notes](https://github.com/go-yaml/yaml/releases)
- [Commits](https://github.com/go-yaml/yaml/compare/v2.2.2...v2.2.8)

---
updated-dependencies:
- dependency-name: gopkg.in/yaml.v2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-20 14:34:53 +00:00
Richard van der Hoff
99c9511e22
Create CODEOWNERS 2022-01-20 14:28:37 +00:00
Quentin Gliech
cc70dba38f
Newsfile.
Signed-off-by: Quentin Gliech <quenting@element.io>
2022-01-20 12:30:51 +01:00
Quentin Gliech
b2db9ef0aa
Build and push Docker image in GitHub Actions 2022-01-20 12:14:14 +01:00
Quentin Gliech
4f6855b733
Allow cross-platform build of the Docker image
Also allows it to run as non-root and set the rageshake binary as the
entrypoint rather than setting the command.

Signed-off-by: Quentin Gliech <quenting@element.io>
2022-01-20 11:43:13 +01:00
Michael Kaye
a5d3006fe0 More information about log formats 2022-01-19 13:34:54 +00:00
Michael Kaye
a8c1ca6740
Merge pull request #42 from matrix-org/michaelk/update_suggested_go_version
Update go version to 1.16
2022-01-19 13:09:08 +00:00
Michael Kaye
c6e4ad89ff Go.mod should require go 1.16 2022-01-19 12:45:47 +00:00
Michael Kaye
399590d556 Add changelog. 2022-01-19 12:44:15 +00:00
Michael Kaye
4ce47beb7b Update go version to 1.16
The linting scripts don't run on 1.15 any more, so builds are not
running against 1.15 any more.

Technically it will still compile and run against go 1.15 but if we
can't verify it in CI, it's not known to be true in future.
2022-01-18 18:13:03 +00:00
Michael Kaye
8e842a3fc2 Add changelog fragment. 2022-01-18 17:33:28 +00:00
Michael Kaye
523333f5a0 Don't append a second .gz extension 2022-01-18 17:30:50 +00:00
Michael Kaye
d337ec9843 Update test to look for file to not gain an additional .gz extension. 2022-01-18 17:28:01 +00:00
Michael Kaye
ff5ac238c4 Allow files ending "txt.gz" to be uploaded as a log file. 2022-01-18 17:25:44 +00:00
Michael Kaye
aa901b97da Record some information about submitted reports from existing clients.
Attempting to log what is in the wild, rather than what is expected/desired.
2022-01-18 17:24:23 +00:00
Faye Duxovni
c442ced2e1
Merge pull request #39 from matrix-org/fayed/fix-collisions
Add random string to report directories to prevent time-based collisions
2022-01-11 11:27:48 -05:00
Faye Duxovni
86b4ccc1df add random string to report directories to prevent time-based collisions 2021-12-14 08:10:54 -05:00
Tulir Asokan
065b2b9a04
Add support for creating GitLab issues (#37)
Signed-off-by: Tulir Asokan <tulir@maunium.net>
2021-08-10 18:04:58 +01:00
Mathieu Velten
5dbe86072c 1.2 2020-09-16 11:35:38 +02:00
Mathieu Velten
fab3f9b37d
Add email support (#35)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2020-09-16 11:25:56 +02:00
Richard van der Hoff
1042a93da1 fix thinkos in RELEASING.md 2020-06-05 09:33:50 +01:00