Commit Graph

  • 3885893316
    db: split password & user Yorick van Pelt 2023-04-30 21:44:48 +0200
  • 44e74b5d0c
    passwords: add version field, more constants for params Yorick van Pelt 2023-04-30 21:38:30 +0200
  • 8f5ce1d9fc
    improve rl.authenticateUser Yorick van Pelt 2023-04-30 21:26:10 +0200
  • f5e107e3a0
    comparePassword: eliminate unsafe slice Yorick van Pelt 2023-04-30 21:20:41 +0200
  • 11975d7911
    use constant-time hash comparison Yorick van Pelt 2023-04-30 21:08:36 +0200
  • 0643176ed1
    Run go fmt Yorick van Pelt 2023-04-30 18:17:18 +0200
  • 8e949f837b
    Use PHC hashes for password storage Yorick van Pelt 2023-04-30 18:16:52 +0200
  • 788e75c4c1
    Add users system, required for uploading new pastes Yorick van Pelt 2023-04-30 12:03:23 +0200
  • fbab9028f4 Bump all dependencies master Daan Sprenkels 2021-10-03 10:43:56 +0200
  • a45705540c Replace Paste.Content field by P.URL and FU.PasteID sql Daan Sprenkels 2021-05-31 09:27:09 +0200
  • 29ee3dc6fd Merge pull request 'Add request_duration_seconds metric' (#72) from metrics into master mrngm 2021-05-16 21:10:48 +0200
  • 306705cb28 Optimize query for updating metricURLsTotalGauge Daan Sprenkels 2021-05-16 20:40:36 +0200
  • c4ff0ab1b7 Add request_duration_seconds metric Daan Sprenkels 2021-05-16 20:24:00 +0200
  • a26894dac8 Refactor metric collection Daan Sprenkels 2021-05-16 20:21:44 +0200
  • 4f07bc4c2a Update bindata.go Daan Sprenkels 2021-05-13 10:46:06 +0200
  • 9ff11cc14c Remove boltdb leftovers Daan Sprenkels 2021-05-13 10:44:32 +0200
  • 38b27b4d11 mod: Remove explicit go-bindata dep; NFC Daan Sprenkels 2021-05-13 10:43:23 +0200
  • 590003aa36 Update dependencies Daan Sprenkels 2021-05-08 22:45:04 +0200
  • 30ab6f9228 Fix gopls issues Daan Sprenkels 2021-05-08 22:42:13 +0200
  • 6603ad886f Merge branch 'master' of gitea.hashru.nl:dsprenkels/rushlink Daan Sprenkels 2021-05-07 10:17:35 +0200
  • b8d1ca459c Fix gopls issues Daan Sprenkels 2021-05-07 10:17:17 +0200
  • 5cb0a59f00 README: indicate change to ENV for configuration, refresh systemd unit file, introduce Gorm and db migration tool Gerdriaan Mulder 2021-05-05 22:29:08 +0200
  • 1fe9553cc9 Merge pull request 'Use SQL database instead of bolt' (#71) from sql into master mrngm 2021-05-05 21:34:26 +0200
  • 3f09c1517d migrate: Fix 'no such table: migrations' err Daan Sprenkels 2020-12-31 14:34:33 +0100
  • f530a543f9 db: Test truncated keys are invalid; NFC Daan Sprenkels 2020-12-17 15:15:04 +0100
  • f527f2fb38 Automigrate when opening db Daan Sprenkels 2020-12-17 15:14:45 +0100
  • 1ecb11c65f db: Do not warn during paste key generation Daan Sprenkels 2020-12-17 14:49:52 +0100
  • 0048004252 Use sql database instead of bolt Daan Sprenkels 2020-10-25 17:33:51 +0100
  • f36fa30eff Rename current db to boltdb Daan Sprenkels 2020-10-23 16:14:57 +0200
  • 104dbab335 db: Refactor switch; NFC Daan Sprenkels 2020-07-27 18:47:37 +0200
  • a8eba1b0df db: Add a test for key validation; NFC Daan Sprenkels 2020-07-27 18:46:45 +0200
  • 9d952edc67 Add a functional test for /nr Daan Sprenkels 2020-07-27 17:08:10 +0200
  • 50baaeadf1 Fix /nr Daan Sprenkels 2020-07-27 16:57:55 +0200
  • 26be9b5104 Validate key format before retrieving from database Daan Sprenkels 2020-07-27 16:57:09 +0200
  • 6d3e8028cb Use high-entropy URLs for file uploads Daan Sprenkels 2020-07-27 14:53:19 +0200
  • 1c09bb0a71 Fix incorrect router setup Daan Sprenkels 2020-07-27 14:22:43 +0200
  • 03a04389ae Add a test for issue #66 Daan Sprenkels 2020-07-06 18:02:57 +0200
  • af6d762378 Stop rendering after an invalid Accept value Daan Sprenkels 2020-07-06 18:01:50 +0200
  • 7a369a1dae Merge pull request 'Error with 400 Bad Request when both 'file' and 'shorten' set' (#65) from issue-56 into master Daan Sprenkels 2020-07-06 17:14:38 +0200
  • 8904b648b7 Error w/ 400 when both 'file' and 'shorten' set Daan Sprenkels 2020-05-30 18:34:59 +0200
  • 70538f170f Add a test for issue #56 Daan Sprenkels 2020-05-30 18:04:39 +0200
  • bbfe64a3a2 Merge pull request 'Add request logging to panic recovery' (#63) from issue-61 into master Daan Sprenkels 2020-07-06 17:12:59 +0200
  • 5a39d6a37c Add request logging to panic recovery Daan Sprenkels 2020-05-30 17:36:18 +0200
  • 2883af7d31 Merge pull request 'Fix error handling in renderStatic' (#64) from issue-60 into master Daan Sprenkels 2020-07-06 17:04:58 +0200
  • d37222f82a Fix error handling in renderStatic Daan Sprenkels 2020-05-30 17:53:46 +0200
  • badc22b8d0 Merge pull request 'db: Change db file mode to 660' (#62) from issue-58 into master mrngm 2020-06-28 12:15:57 +0200
  • a58b9815bc Remove unused newPasteHandlerURLEncoded func; NFC Daan Sprenkels 2020-05-30 19:29:27 +0200
  • 0b2297a2e8 Add a test for issue #60 Daan Sprenkels 2020-05-30 17:49:44 +0200
  • 77e89251e7 db: Change db file mode to 660 Daan Sprenkels 2020-05-30 17:07:35 +0200
  • 847fd8072b Bump dependencies Daan Sprenkels 2020-05-30 17:05:04 +0200
  • 5a5a0dc5ec Merge pull request 'Don't capture cursor in screenshot.' (#55) from mara/rushlink:master into master Daan Sprenkels 2020-05-21 20:02:41 +0200
  • dbb6a954e1 Don't capture cursor in screenshot. Mara Bos 2020-05-12 22:17:42 +0200
  • 2c889e0808 Prevent directory traversal in file upload Daan Sprenkels 2020-05-12 20:01:03 +0200
  • 737a26fee3 test: Look for StatusFound instead of StatusOk; NFC Daan Sprenkels 2020-05-12 19:09:25 +0200
  • 016ffa8949 meta: Do 410 Gone if paste deleted Daan Sprenkels 2020-05-11 22:45:56 +0200
  • b9119a0df5 meta: Fix CanDelete string Daan Sprenkels 2020-05-11 22:32:35 +0200
  • a4cec1e4b0 meta: Add a delete button Daan Sprenkels 2020-05-11 22:26:45 +0200
  • b7ea5dfa4f Redirect to /xd42/meta after upload Daan Sprenkels 2020-05-09 00:43:07 +0200
  • a0c8383555 template: Fix <pre> nesting Daan Sprenkels 2020-05-11 20:58:09 +0200
  • bbe787da5d Merge pull request 'Make rushlink script more portable.' (#48) from mara/rushlink:master into master mrngm 2020-05-04 12:12:46 +0200
  • 28ddaee9d9 Make rushlink script more portable. Mara Bos 2020-05-04 12:06:06 +0200
  • 01adfa8f2f Merge pull request 'Add a test for issue #45; NFC' (#46) from test-issue-45 into master Daan Sprenkels 2020-04-27 13:00:31 +0200
  • c57e719e15 Add a test for issue #45; NFC Daan Sprenkels 2020-04-22 18:26:24 +0200
  • c0e4ac2c40 mod: Bump dependencies Daan Sprenkels 2020-04-22 19:30:20 +0200
  • b73317c249 Add generated bindata.go file to repo Daan Sprenkels 2020-04-22 19:05:56 +0200
  • 8e89955ce9 Remove debug logging statement; NFC Daan Sprenkels 2020-04-22 18:25:55 +0200
  • e476797da0 db: Prevent infinite recursion when closing Daan Sprenkels 2020-04-22 18:25:27 +0200
  • 728d3833c3 Change redirect status code to Temporary Redirect Daan Sprenkels 2020-04-22 18:24:46 +0200
  • 42ccc18002 User url.Parse instead of url.ParseRequestURI Daan Sprenkels 2020-04-22 16:11:32 +0200
  • 63a588ba59 db: Add docstrings to FileUpload; NFC Daan Sprenkels 2020-04-22 15:59:51 +0200
  • 3da165a57b Merge pull request 'Add copy-to-clipboard button to meta page' (#44) from issue-42 into master Daan Sprenkels 2020-04-14 16:08:07 +0200
  • 09481f47e6 Do not show button if clipboard not available Daan Sprenkels 2020-04-05 18:46:40 +0200
  • 1dd0d17ba5 Add copy-to-clipboard button to meta page Daan Sprenkels 2020-04-05 18:14:02 +0200
  • 7c0bfaee76 .gitignore: Ignore .vscode dir; NFC Daan Sprenkels 2020-04-05 18:15:41 +0200
  • a766d5d596 Update .gitignore; NFC Daan Sprenkels 2020-04-05 18:11:16 +0200
  • c28dfd0cb4 Merge pull request 'Add rushlink --screenshot.' (#41) from mara/rushlink:master into master Daan Sprenkels 2020-03-26 09:37:25 +0100
  • 732b1fc2a6 Add rushlink --screenshot. Mara Bos 2020-03-24 14:42:26 +0100
  • 8403ad2258 Make rushlink --delete work with urls that have a file extension. Mara Bos 2020-03-24 14:42:00 +0100
  • ad1ce67495 Merge pull request 'Add command line tool to submit and delete files and links.' (#39) from mara/rushlink:master into master Daan Sprenkels 2020-03-23 17:00:45 +0100
  • 11ea63e1fc Add command line tool to submit and delete files and links. Mara Bos 2020-03-23 16:18:07 +0100
  • 0a35cb2508 Merge branch 'master' of gitea.hashru.nl:dsprenkels/rushlink Daan Sprenkels 2020-01-05 00:15:23 +0100
  • de19234108 return after serving meta page Daan Sprenkels 2020-01-05 00:14:53 +0100
  • 9a690e2b8b README: restructure to accentuate building/deploying Gerdriaan Mulder 2019-12-28 19:24:59 +0100
  • ac2c62f9e6 README updated with -root_url and sample systemd unit file Gerdriaan Mulder 2019-12-28 18:47:20 +0100
  • 095348d614 web: Add an example w/ upload from process output Daan Sprenkels 2019-12-19 23:29:09 +0100
  • 245dd64f82 Directly serve files instead of redirect Daan Sprenkels 2019-12-19 23:17:37 +0100
  • 5e6ce9c2be Replace io.Copy w/ http.ServeContent for download Daan Sprenkels 2019-12-19 20:01:17 +0400
  • 8dce4e8483 web: Indent <pre> with padding-left (no spaces) Daan Sprenkels 2019-12-17 23:11:06 +0530
  • ffeb9a3362 Rename --host => --root-url Daan Sprenkels 2019-12-17 15:43:32 +0530
  • 3d07acb222 Show meta page immediately after create Daan Sprenkels 2019-12-17 15:33:29 +0530
  • c46a26f8a2 web: Implement drag-and-drop upload Daan Sprenkels 2019-12-16 16:21:41 +0530
  • 087b9920e6 [refactor] Add !=nil check in renderCreateSuccess Daan Sprenkels 2019-12-16 11:26:30 +0530
  • ca859adab1 Redirect to /meta after upload/shorten Daan Sprenkels 2019-12-16 10:51:21 +0530
  • d34ac11d5e Update metadata info view Daan Sprenkels 2019-12-16 10:19:17 +0530
  • 824c6f41e2 Enable submit using web interface Daan Sprenkels 2019-12-16 09:53:36 +0530
  • f32e47b4c8 Add deprecation warning for omitting --host Daan Sprenkels 2019-12-15 17:08:32 +0530
  • 8cbe984ba4 Default {{.Host}} to https:// Daan Sprenkels 2019-12-15 17:06:48 +0530
  • 0bffde1dc1 Implement --host flag to override {{.Host}} Daan Sprenkels 2019-12-15 16:48:50 +0530
  • 41f4de43ac Return both URLs after upload Daan Sprenkels 2019-12-15 12:42:10 +0530
  • 728b5d9d4b Add extension to FileUpload request url Daan Sprenkels 2019-12-15 12:19:32 +0530