You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to file
Michael Kaye e4cd44597c
Refactor docker build (#71)
2 days ago
.github Refactor docker build (#71) 2 days ago
changelog.d Refactor docker build (#71) 2 days ago
docs Block applications not listed in an allow list. (#67) 2 months ago
hooks clean up lint scripts 3 years ago
scripts use '/' instead of os.pathsep 2 months ago
.gitignore Cleanup script to search and remove rageshakes from applications based on a time (#61) 2 months ago
CHANGES.md 1.9.0 4 days ago
CONTRIBUTING.rst move CI to buildkite 3 years ago
Dockerfile Refactor docker build (#71) 2 days ago
LICENSE Add readme, contributing, license 6 years ago
README.md Migrate from Buildkite to GitHub actions (#64) 5 months ago
RELEASING.md Extra automation for release process (building binaries and docker containers) (#70) 4 days ago
docker-bake.hcl Refactor docker build (#71) 2 days ago
go.mod Bump gopkg.in/yaml.v2 from 2.2.2 to 2.2.8 (#43) 1 year ago
go.sum Bump gopkg.in/yaml.v2 from 2.2.2 to 2.2.8 (#43) 1 year ago
logserver.go Run `go fmt` over the codebase 12 months ago
main.go Block applications not listed in an allow list. (#67) 2 months ago
rageshake.sample.yaml Block applications not listed in an allow list. (#67) 2 months ago
slack.go fix lint 3 years ago
submit.go Block applications not listed in an allow list. (#67) 2 months ago
submit_test.go Block applications not listed in an allow list. (#67) 2 months ago
towncrier.toml 1.1 3 years ago

README.md

rageshake Build status

Web service which collects and serves bug reports.

rageshake requires Go version 1.16 or later.

To run it, do:

go build
./bin/rageshake

Optional parameters:

  • -config <path>: The path to a YAML config file; see rageshake.sample.yaml for more information.
  • -listen <address>: TCP network address to listen for HTTP requests on. Example: :9110.

HTTP endpoints

The following HTTP endpoints are exposed:

GET /api/listing/

Serves submitted bug reports. Protected by basic HTTP auth using the username/password provided in the environment. A browsable list, collated by report submission date and time.

A whole directory can be downloaded as a tarball by appending the parameter ?format=tar.gz to the end of the URL path

POST /api/submit

Submission endpoint: this is where applications should send their reports.

The body of the request should be a multipart form-data submission, with the following form field names. (For backwards compatibility, it can also be a JSON object, but multipart is preferred as it allows more efficient transfer of the logs.)

  • text: A textual description of the problem. Included in the details.log.gz file.

  • user_agent: Application user-agent. Included in the details.log.gz file.

  • app: Identifier for the application (eg 'riot-web'). Should correspond to a mapping configured in the configuration file for github issue reporting to work.

  • version: Application version. Included in the details.log.gz file.

  • label: Label to attach to the github issue, and include in the details file.

    If using the JSON upload encoding, this should be encoded as a labels field, whose value should be a list of strings.

  • log: a log file, with lines separated by newline characters. Multiple log files can be included by including several log parts.

    If the log is uploaded with a filename name.ext, where name contains only alphanumerics, ., - or _, and ext is one of log or txt, then the file saved to disk is based on that. Otherwise, a suitable name is constructed.

    If using the JSON upload encoding, the request object should instead include a single logs field, which is an array of objects with the following fields:

    • id: textual identifier for the logs. Used as the filename, as above.
    • lines: log data. Newlines should be encoded as \n, as normal in JSON).

    A summary of the current log file formats that are uploaded for log and compressed-log is available.

  • compressed-log: a gzipped logfile. Decompressed and then treated the same as log.

    Compressed logs are not supported for the JSON upload encoding.

    A summary of the current log file formats that are uploaded for log and compressed-log is available.

  • file: an arbitrary file to attach to the report. Saved as-is to disk, and a link is added to the github issue. The filename must be in the format name.ext, where name contains only alphanumerics, - or _, and ext is one of jpg, png, or txt.

    Not supported for the JSON upload encoding.

  • Any other form field names are interpreted as arbitrary name/value strings to include in the details.log.gz file.

    If using the JSON upload encoding, this additional metadata should insted be encoded as a data field, whose value should be a JSON map. (Note that the values must be strings; numbers, objects and arrays will be rejected.)

The response (if successful) will be a JSON object with the following fields:

  • report_url: A URL where the user can track their bug report. Omitted if issue submission was disabled.

Notifications

You can get notifications when a new rageshake arrives on the server.

Currently this tool supports pushing notifications as GitHub issues in a repo, through a Slack webhook or by email, cf sample config file for how to configure them.

Generic Webhook Notifications

You can receive a webhook notifications when a new rageshake arrives on the server.

These requests contain all the parsed metadata, and links to the uploaded files, and any github/gitlab issues created.

Details on the request and expected response are available.