Commit Graph

48 Commits (f565302a0fac93984d08314836d0ef5500a48bb6)

Author SHA1 Message Date
binwiederhier e96e35b40b Newly created access tokens are now lowercase only 2023-06-14 11:20:29 -04:00
Michael Manganiello ebd4367dda Fix false positive in ContainsAll function
As the `ContainsAll` is working with a match counter, it could return
a false positive when the `haystack` slice contains duplicate elements.

This can be checked with the included testing scenario, with
`haystack = [1, 1]` and `needles = [1, 2]`. Iterating over the haystack
to check for items to be present in needles will increase the match
counter to 2, even if `2` is not present in the first slice.
2023-05-12 09:51:47 -03:00
binwiederhier 76d46ec646 Minor tweaks 2023-02-15 10:55:01 -05:00
binwiederhier e6bb5f484c Self-review, round 2 2023-02-09 15:24:12 -05:00
binwiederhier d44a11325d More visitor log fields 2023-02-07 16:20:49 -05:00
binwiederhier e3b39f670f WIP tier CLI 2023-02-06 22:38:22 -05:00
binwiederhier 16c14bf709 Add Access Tokens UI 2023-01-27 23:10:59 -05:00
binwiederhier c874a641df Rate limits make sense now! 2023-01-26 22:57:18 -05:00
binwiederhier 236254d907 Add bandwidth limit to tier; fix display name sync issues 2023-01-25 10:05:54 -05:00
binwiederhier 954d919361 Delayed deletion 2023-01-22 22:21:30 -05:00
binwiederhier 9c082a8331 Introduce text IDs for everything (esp user), to avoid security and accounting issues 2023-01-21 23:15:22 -05:00
binwiederhier 598d0bdda3 Some tests 2022-12-31 16:08:49 -05:00
binwiederhier bd2ec7b2af More manager tests 2022-12-29 11:09:45 -05:00
binwiederhier 57814cf855 Tests 2022-12-29 09:57:42 -05:00
binwiederhier 367d024a2d Simplify API endpoints; add endpoint tests 2022-12-28 19:55:11 -05:00
Karmanyaah Malhotra de2ca33700 recommended fixes [1 of 2] 2022-10-07 16:17:04 -05:00
Karmanyaah Malhotra c2382d29a1 refactor visitor IPs and allow exempting IP Ranges
Use netip.Addr instead of storing addresses as strings. This requires
conversions at the database level and in tests, but is more memory
efficient otherwise, and facilitates the following.

Parse rate limit exemptions as netip.Prefix. This allows storing IP
ranges in the exemption list. Regular IP addresses (entered explicitly
or resolved from hostnames) are IPV4/32, denoting a range of one
address.
2022-10-05 16:04:42 -05:00
Philipp Heckel 5014bba0b3 Replace interface{} 2022-10-01 16:31:48 -04:00
Philipp Heckel bddde5c637 Bump Go version, Generics whoooo 2022-10-01 15:50:48 -04:00
Philipp Heckel 419bfecd6f Reformatting, make update 2022-09-27 12:37:02 -04:00
Philipp Heckel 95bd876be2 Fix HTTP Spec priority header parsing 2022-07-01 09:28:42 -04:00
Philipp Heckel a160da3ad9 Tests 2022-06-21 11:18:35 -04:00
Philipp Heckel 0080ea5a20 All --wait-cmd 2022-06-20 23:03:16 -04:00
Philipp Heckel 9918f4965d Only use last X-Forwarded-For address as visitor address, closes #328 2022-06-16 15:31:09 -04:00
Philipp Heckel e12995e218 Logging in subscribe and publish command 2022-06-02 11:59:22 -04:00
Philipp Heckel 613348d37e Continued work on Windows CLI 2022-05-09 16:22:52 -04:00
Philipp Heckel 5a9b2122c2 Make simple actions parsing work 2022-04-19 09:14:32 -04:00
Philipp Heckel 4af9c07577 WIP: Since ID, works 2022-02-26 15:57:10 -05:00
Philipp Heckel 1552d8103e More docs docs docs 2022-02-01 23:39:57 -05:00
Philipp Heckel e309775ac1 More auth CLi 2022-01-23 00:54:18 -05:00
Philipp Heckel e8cb9e7fde Better mime type probing 2022-01-10 13:38:51 -05:00
Philipp Heckel b5183612be Fix attachment pruning logging; .mp4 extension issue 2022-01-09 22:06:31 -05:00
Philipp Heckel 9171e94e5a Fix file extension detection; fix HTTPS port 2022-01-06 14:45:23 +01:00
Philipp Heckel 5eca20469f Attachment size limit 2022-01-06 01:04:56 +01:00
Philipp Heckel 2930c4ff62 Preview URL 2022-01-04 19:45:29 +01:00
Philipp Heckel 3bc8ff0104 Docs 2021-12-25 00:57:02 +01:00
Philipp Heckel 11b5ac49c0 Fully working email feature 2021-12-25 00:13:09 +01:00
Philipp Heckel 873c57b3d8 Send emails 2021-12-23 21:04:17 +01:00
Philipp Heckel 68d881291c Docs, LoadConfig, config test 2021-12-22 13:46:17 +01:00
Philipp Heckel 9315829bc4 Query filters 2021-12-21 21:22:27 +01:00
Philipp Heckel e3dfea1991 Docblocks, a handful of tests, but not enough 2021-12-19 14:27:26 -05:00
Philipp Heckel f266afa1de WIP CLI 2021-12-18 14:43:27 -05:00
Philipp Heckel 1e8421e8ce WIP: CLI, relates to #46 2021-12-16 20:33:01 -05:00
Philipp Heckel b437a87266 Disallow subscribing to /docs 2021-12-08 22:13:59 -05:00
Philipp Heckel 802ef17cb4 Fix data races 2021-12-07 16:03:01 -05:00
Philipp Heckel be50af0a7a Begin unit tests, relates to #35 2021-12-07 11:45:15 -05:00
Philipp Heckel 43c9a92748 Detail page in web UI 2021-11-08 09:24:34 -05:00
Philipp Heckel b145e693a5 Add firebase support 2021-10-29 13:58:14 -04:00