Commit graph

124 commits

Author SHA1 Message Date
Michael Kaye
02237888c9
Merge pull request #54 from matrix-org/michaelk/persist_unique_id_in_shakes
Persist prefix as a unique id in rageshakes
2022-04-14 14:13:08 +01:00
Michael Kaye
2ac7af0c18 Move comments onto their own line 2022-04-13 13:31:54 +01:00
Michael Kaye
79454de54f Add a comment about each part of the payload. 2022-04-13 13:29:19 +01:00
Michael Kaye
62e52e880d Rename parsedPayload into just "payload", it's not just about parsing any more. 2022-04-13 13:21:46 +01:00
Michael Kaye
8cdcc4bba8 Add changelog entry for unique ID 2022-04-06 15:59:09 +01:00
Michael Kaye
7cb7309097 Add ID field containing the prefix used to create the listing.
This listing needs to be unique for the rageshake to be stored to disk,
so can be relied upon in future to be unique(enough) for other services
working with the rageshake.
2022-04-01 14:17:59 +01:00
Michael Kaye
1d008a0aad Run go fmt over the codebase 2022-04-01 14:17:48 +01:00
Michael Kaye
eb19aca921 1.6 2022-02-22 15:54:18 +00:00
Michael Kaye
b01b5a5863
Merge pull request #53 from matrix-org/michaelk/tarball_of_files
Serve a tarball containing the contents of a given directory.
2022-02-22 15:51:37 +00:00
Michael Kaye
1137cb2c04 Correct the use of return 2022-02-22 15:40:46 +00:00
Michael Kaye
ba8725a3aa Factor out serveDirectory into it's own method 2022-02-17 11:47:21 +00:00
Michael Kaye
77e66be90f Guard against including directories in tarball, handle http errors better, add documentation. 2022-02-17 11:38:36 +00:00
Michael Kaye
714cc44807 Update documentation 2022-02-17 11:37:05 +00:00
Michael Kaye
7b2d70a3c9 Fix last minute refactor fial. 2022-02-09 16:31:56 +00:00
Michael Kaye
a2caf1c546 More whitespace 2022-02-09 16:12:05 +00:00
Michael Kaye
f318399536 changelog.d 2022-02-09 16:11:37 +00:00
Michael Kaye
2a4434281c Fix whitespace 2022-02-09 16:10:55 +00:00
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