Commit Graph

22 Commits

Author SHA1 Message Date
Severin Alexander Bühler
d4d44f7898 feat: add ability to configure hs config with statictestnet (#104) 2025-04-21 13:38:01 +03:00
SHAcollision
606ee5feb7 Bump to next release candidate 2025-04-18 10:29:07 +02: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
Severin Alexander Bühler
6f94333101 chore: Renamed pubky member dir to pubky-client (#90)
* chore: Renamed pubky member dir to pubky-client

* fixed paths

* fixed wasm test workflow
2025-03-21 14:24:34 +02: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
SHAcollision
8e1056c397 chore: prepare release 2025-03-20 15:23:18 -04:00
Severin Alexander Bühler
3e761720de Feat(client): getHomeserver (#86)
* added method

* added wasm rust analyzer section

* getHomeserver wasm

* updated readme

* getHomeserver js test

* correct js typing

* fixed js getHomeserver call

* fmt and clippy

* Update pubky/README.md

Co-authored-by: SHAcollision <127778313+SHAcollision@users.noreply.github.com>

* moved get_homeserver from internal to auth

* reuse extract_host_from_packet

* removed unused imports

* removed version from testnet

* fixed tests

---------

Co-authored-by: SHAcollision <127778313+SHAcollision@users.noreply.github.com>
2025-03-19 11:17:13 +02:00
SHAcollision
6386f1ae43 feat: signup tokens (#80)
* Add admin and signup config

* Add signup tokens API, db, admin endpoint

* Add client api for signup codes

* Add tests and fixes

* Fix wasm build

* Lint

* enable and use same admin pswd on all test homeservers

* fix pr review comments

* Add nodejs and browser signup token to tests

* update signup example

* admin authing as layer

* Update pubky-homeserver/src/core/routes/auth.rs

Co-authored-by: Severin Alexander Bühler <8782386+SeverinAlexB@users.noreply.github.com>

* Update pubky-homeserver/src/core/routes/auth.rs

Co-authored-by: Severin Alexander Bühler <8782386+SeverinAlexB@users.noreply.github.com>

* rename getSignupToken util

* add is_used() SignupToken method

---------

Co-authored-by: Severin Alexander Bühler <8782386+SeverinAlexB@users.noreply.github.com>
2025-03-17 15:58:58 -04:00
SHAcollision
bb310d46d1 fix: improve start up times in some environments (#76) 2025-02-22 18:37:37 -04:00
SHAcollision
2f42481e4f chore: release 2025-02-20 09:07:38 -04:00
SHAcollision
c7f4292519 chore(deps): bump pkarr to 3.3.3 (#72) 2025-02-20 08:53:42 -04:00
SHAcollision
3489a88ed5 chore(deps): bump testnet pkarr relay to latest (#70)
* chore(deps): bump testnet pkarr relay to latest

* Pin commit height
2025-02-19 07:38:35 -04:00
SHAcollision
7e87e02ae9 chore(deps): bump pkarr to v3.3.1 pkarr-relay to v0.5.6 (#69)
* chore(deps): bump pkarr to v3.3.1 pkarr-relay to v0.5.6

* deps(testnet): force deps from workspace members
2025-02-18 07:00:39 -04:00
nazeh
7ef1020a41 chore(testnet): prepare for release 2025-02-13 20:59:55 +03:00
nazeh
f1d4125d29 chore: Release 2025-02-13 20:49:11 +03:00
nazeh
44ae44c2b2 chore(testnet): prepare for release 2025-02-13 20:15:12 +03:00
nazeh
91d834f9d8 feat: upgrade pubky-common and http-relay 2025-02-13 14:27:04 +03:00
nazeh
9ac41b43ec chore(testnet): update pkarr-relay 2025-02-13 12:37:45 +03:00
nazeh
f423257017 feat(testnet): testnet working with wasm tests 2025-02-12 21:38:31 +03:00
nazeh
fcf3086f1e feat(testnet): add testnet binary 2025-02-12 21:15:09 +03:00
nazeh
fee569dc32 feat(pubky): integrate pubky_testnet in pubky crate and pass tests 2025-02-12 19:12:19 +03:00
nazeh
1b932cb27b feat(testnet): start pubky-testnet crate 2025-02-12 14:41:24 +03:00