mirror of
1
Fork 0
gotosocial/internal
kim 69dd5fed2c
[feature] domain block wildcarding (#1178)
* for domain block lookups, lookup along subdomain parts

Signed-off-by: kim <grufwub@gmail.com>

* only lookup up to a max of 5 domain parts to prevent DOS, limit inserted domains to max of 5 subdomains

Signed-off-by: kim <grufwub@gmail.com>

* add test for domain block wildcarding

Signed-off-by: kim <grufwub@gmail.com>

* check cached status first, increase cached domain time

Signed-off-by: kim <grufwub@gmail.com>

* fix domain wildcard part building logic

Signed-off-by: kim <grufwub@gmail.com>

* create separate domain.BlockCache{} type to hold all domain blocks in memory

Signed-off-by: kim <grufwub@gmail.com>

* remove unused variable

Signed-off-by: kim <grufwub@gmail.com>

* add docs and test to domain block cache, check for domain == host in domain block getter funcs

Signed-off-by: kim <grufwub@gmail.com>

* add license text

Signed-off-by: kim <grufwub@gmail.com>

* check order in which we check primary cache

Signed-off-by: kim <grufwub@gmail.com>

* add better documentation of how domain block checking is performed

Signed-off-by: kim <grufwub@gmail.com>

* change

Signed-off-by: kim <grufwub@gmail.com>

Signed-off-by: kim <grufwub@gmail.com>
2022-12-14 10:55:36 +01:00
..
ap [feature] Support PKCS1 "RSA PUBLIC KEY" pem block type (#1179) 2022-11-30 23:13:13 +01:00
api [bugfix] fix unordered favorites (#1245) 2022-12-13 12:33:49 +01:00
cache [feature] domain block wildcarding (#1178) 2022-12-14 10:55:36 +01:00
concurrency [feature] various worker / request queue improvements (#995) 2022-11-08 10:35:24 +01:00
config [feature] support configuring database caches (#1246) 2022-12-11 13:03:15 +00:00
db [feature] domain block wildcarding (#1178) 2022-12-14 10:55:36 +01:00
email [chore] use our own logging implementation (#716) 2022-07-19 10:47:55 +02:00
federation [bugfix] Don't call `strings.ToLower()` on usernames when selecting account by domain+username (#1190) 2022-11-30 17:44:02 +01:00
gotosocial test the media manager a bit, add shutdown logic 2022-01-10 18:36:09 +01:00
gtserror [feature] Read + Write tombstones for deleted Actors (#1005) 2022-11-11 12:18:38 +01:00
gtsmodel [feature] overhaul the oidc system (#961) 2022-12-06 14:15:56 +01:00
httpclient Additional IP range validations (#1152) 2022-11-26 11:09:55 +00:00
id [feature] Prune timelines once per hour to plug memory leak (#1117) 2022-11-22 18:38:10 +00:00
log [chore] simplify logging to remove "safetywriter" given os.File has concurrency protection (#1083) 2022-11-20 17:40:15 +01:00
media [feature] allow uncaching of other media types (#1234) 2022-12-12 12:22:19 +01:00
messages Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
netutil [chore] Remove duplicate prefixes from sanitizer (#1195) 2022-12-01 20:34:55 +01:00
oauth [feature] `oob` oauth token support (#889) 2022-10-08 13:49:56 +02:00
oidc [feature] overhaul the oidc system (#961) 2022-12-06 14:15:56 +01:00
processing [feature] Start implementing refetch of lost media files via `/api/v1/admin/media_refetch` (#1221) 2022-12-10 21:43:11 +00:00
regexes [feature] Add `admin media prune orphaned` CLI command (#1146) 2022-11-25 17:23:42 +00:00
router [feature] Add opt-in RSS feed for account's latest Public posts (#897) 2022-10-08 14:00:39 +02:00
state [chore] move caches to a separate State{} structure (#1078) 2022-12-08 18:35:14 +01:00
storage [bugfix]: Prevent extension of S3 presigned url TTL (#1208) 2022-12-05 11:09:22 +01:00
stream Fix streamed messages ending up in wrong timeline(s) (#325) 2021-11-22 19:03:21 +01:00
text [chore] markdown: disable Smartypants rendering (#1111) 2022-11-22 11:08:50 +01:00
timeline [chore] move caches to a separate State{} structure (#1078) 2022-12-08 18:35:14 +01:00
trans [chore] Test fixes (#788) 2022-08-31 17:31:21 +02:00
transport [bugfix] Use Host domain for UA (#1156) 2022-11-27 00:09:09 +00:00
typeutils [feature] Allow users to create + delete bookbarks, and view bookmarked statuses (#1168) 2022-12-09 11:37:12 +01:00
uris [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
util [feature] Start implementing refetch of lost media files via `/api/v1/admin/media_refetch` (#1221) 2022-12-10 21:43:11 +00:00
validate [feature] Allow newly uploaded emojis to be placed in categories (#939) 2022-11-14 22:47:27 +00:00
visibility [bugfix] Prevent future statuses entering timelines (#1134) 2022-11-24 13:54:49 +01:00
web [chore/frontend] remove references to unused bundle.js (#1128) 2022-11-23 15:32:57 +01:00