Commit Graph

10 Commits

Author SHA1 Message Date
Severin Alexander Bühler
2937baf360 chore (repo): Version Unification (#133)
* part1

* pre-release

* last changes

* fixed testnet issue
2025-05-19 12:20:59 +03:00
Severin Alexander Bühler
30e5387fd4 fix: Changed default pkarr relays (#131)
* fix: Changed default pkarr relays

* fmt

* Update native.rs
2025-05-16 15:32:02 +03:00
Severin Alexander Bühler
93ae488196 feat: Only block disabled users from writing files, not reading #130 2025-05-16 14:05:38 +03:00
Severin Alexander Bühler
44eb42dd9a Fix: Rate limit - can not extract user limit key & memory leak (#127)
* before ThrottledBody

* added upload rate limiting

* before dynamic rate limiting

* flexible rate limiter + config

* fixed tests

* fmt and clippy

* reset auth.js e2e

* more cleaning up

* improved code and added comments

* limit downloads too

* fmt and clippy

* improved sample comments

* fixed comment

* removed http dependency in favour of axum:http

* parse speed units as lowercase

* replaced regex with glob

* clippy and fmt

* fix: user rate limiting finding limit key

* fmt

* turn **/* patterns into **

* improved cleanup task
2025-05-14 10:05:01 +03:00
Severin Alexander Bühler
639eec4d26 fix(homeserver): move exposed admin endpoints behind pw protection (#115)
* move exposed admin endpoints behind pw protection

* removed /admin path

* fmt

* fixed tests

* fmt

* fixed singuptoken url in js client
2025-04-29 17:25:46 +03:00
SHAcollision
b3c134c73e feat(homeserver): add user disk quota (#108)
* Add user disk quotas

* fix extract helpers

* Add tests

* improve err message

* pr review fixes

* small fixes

* PR fixes

* fix unnecesary clone

* fix default user bug
2025-04-29 10:10:49 +02:00
Severin Alexander Bühler
1613c625ea feat(homeserver): Admin delete entry + ban user endpoints (#110)
* moved changes over from feat/moderation

* fixed test

* changed label for webapi

* small fixes

* fixed delete_entry status code

* use axum statuscodes

* tested events

* fmt

* valid /pub in handler, not route path

* added used_bytes to migration

* fmt

* fixed tests
2025-04-29 09:42:55 +03:00
Severin Alexander Bühler
55d52ec4b8 chore(homeserver): Refactor Core (#96)
* first draft

* config2 for the time being

* more refactoring

* write default config if it doesnt exist

* added relays to config

* some refactor

* proper bootstrap nodes and relay config validation

* small comments

* rename module

* renamings

* turn listen_ports to listen_socket

* connected config with homeserver

* cleaned up old config

* cleaned up config_old

* removed old config.example.toml

* cleanup tryfrom conversions

* removed dirs-next

* review cleanup

* extracted default config to its own toml file

* use hostname_validator for rfc1123 domain verification

* Domain struct

* fmt

* small config restructure

* use SignupMode in config and moved it to config dir

* moved and simplified lmdb

* save to switch branches

* lots done already

* missin lock file

* pkarr config

* constants

* app context

* used context in more places

* made homeserver independant

* testing feature

* added datadirmock

* getting the hang about testing

* fixed homeserver core tests

* added HandleHolder

* make the homeserver tasks stop when its dropped

* make server handles optional

* properly cleanup all background tasks

* moved logs

* fixed config default toml

* fmt, clippy

* moved stuff around

* lots of moving and readme

* fixed pkarr republisher tests

* removed docs from include

* fixed and refactored testnet

* make simple_testnet work

* httprelay shutdown

* different testnets

* fixing tests1

* fixing tests

* fixing more tests

* unified pkarr versions

* fixed config with bootstrap nodes and relays

* split up test_republish_on_signin to prevent timing issues

* fixed all tests in e2e?

* fixed multi publisher tests

* fixed pubky-client readme

* fixed testnet readme

* added better errors

* admin error

* fixed tests

* format

* clippy

* cllippy

* fixed testnet ports

* fixed client future issue

* improved testnet

* fixed cache_size pkarr relay issue

* small improvements

* fixed low prio dns record

* removed fixed testnet test due to port conflicts

* fixed browserify issues

* fmt

* clippy

* changed wait for testnet hs admin

* fixed docs clippy issues

* added comments

* moved icann_domain

* renamed datadirs

* implemented default for MockDataDir

* renamed run() to start()

* removed unwraps

* fmt

* fixed rename test

* cleaned up admin trace

* added santity values for periodic backup conf and user keys republisher

* fmt

* fmt

* fixed readme lint

* removed println

* fixed admin server edge to anyhow

* added ipv6 support

* removed unnecessary expects

* renamed testnet

* fmt

* renamed me

* changed import

* fmt
2025-04-18 10:00:43 +03:00
SHAcollision
283a38e9cc feat(homeserver): fallback missing pubky-host header to query param (#94)
* feat(homeserver): fallback missing pubky-host header to query param

* fix: host and overwrite with pubky-host

* add query pubky-host test
2025-03-26 09:33:40 -04:00
Severin Alexander Bühler
ca0995cb23 chore: Moved e2e tests / Fixes circular dependency (#88)
* moved e2e tests

* moved e2e tests to its own workspace member

* fmt
2025-03-21 13:15:33 +02:00