Commit Graph

123 Commits

Author SHA1 Message Date
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
5eb61d589b chore(homeserver): Refactor config (#91)
* 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
2025-03-25 09:44:05 +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
Severin Alexander Bühler
5393b4575a feat: Pkarr republisher for user and homeserver keys (#85)
* added bin folder

* removed published_secrets.txt

* added single key publisher

* read and republish

* some changes

* made everything nice

* added RetrySettings

* added resilient client

* fmt

* renamed package

* readme

* added user key republisher

* fmt

* extracted DB and homeserver core from mod

* homeserver packet republish periodically

* small changes

* with final message

* conditional republish

* fmt

* clippy

* moved bin to examples

* improved readme

* handle relay only clients

* handled no dht available

* ignore corrupt users

* handle heed entry errors

* improved unwraps

* fixes

* fixes

* added republish interval to config

* use warn when some keys are missing

* removed old todo

* fixes

* fmt

* fix relays

* use resilient client in homeserverkeyrepublisher

* moved some news to default

* more defaults

* fixed tests

* fmt

* test

* removed resilient client for homeserver publish again

* clippy

* made code simpler

* refactored code

* added .vscode to gitingore

* resutlt match
2025-03-18 17:07:07 +02: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
nazeh
d98fb8e04d chore: fix lint issue 2025-02-13 21:06:11 +03:00
nazeh
2c8682e3a9 chore: Release 2025-02-13 21:00:47 +03: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
91d834f9d8 feat: upgrade pubky-common and http-relay 2025-02-13 14:27:04 +03:00
nazeh
9065d157d6 chore: Release 2025-02-13 14:20:46 +03:00
nazeh
574dde8813 chore: Release 2025-02-13 13:36:36 +03:00
nazeh
9ac41b43ec chore(testnet): update pkarr-relay 2025-02-13 12:37:45 +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
e9fe570719 feat(homeserver): remove testnet logic, use pubky_testnet instead 2025-02-12 16:22:07 +03:00
nazeh
1b932cb27b feat(testnet): start pubky-testnet crate 2025-02-12 14:41:24 +03:00
nazeh
f75d4ca158 chore(homeserver): upgrade dependencies 2025-02-12 10:41:16 +03:00
nazeh
5aecbf3c57 chore(httprelay): upgrade dependencies 2025-02-12 10:11:28 +03:00
nazeh
ce1037e88d chore: Release 2025-02-12 01:45:37 +03:00
nazeh
291125d951 chore(common): upgrade dependencies 2025-02-12 01:28:17 +03:00
nazeh
7eb64cb97e chore: use published versions of pkarr and pkarr-relay 2025-02-11 12:23:14 +03:00
nazeh
028156c0b1 fix(http-relay): add cors 2025-02-10 18:49:40 +03:00
nazeh
62ddf0fbe6 feat(js): export AuthRequest in js as a wrapper around native 2025-02-09 22:45:58 +03:00
nazeh
32a9e653b2 feat(pubky): update to pkarr v3 release candidate 2025-02-07 23:56:27 +03:00
nazeh
8be809c159 feat: update pkarr and mainline and add pubky ClientBuilder 2025-02-04 21:56:23 +03:00
nazeh
f4325bbc3f feat(homeserver): update Config and pkarr to support reverse proxies 2025-01-17 12:27:04 +03:00
nazeh
a14f8008b8 feat: use reserved HTTP_PORT service param for testnet 2025-01-08 13:37:37 +03:00
nazeh
9b7c7c6352 feat: update to pkarr v3-rc1 and mainline v5-rc1 2025-01-06 10:00:47 +03:00
nazeh
992607a7a7 feat(homeserver): add http relay in homeserver testnet for js testing 2024-12-17 18:00:52 +03:00
nazeh
de7d34eca1 feat(http-relay): add http relay crate to help with local testing 2024-12-17 13:36:05 +03:00
nazeh
1c0ff6c028 feat(js): add logging in wasm and setLogLevel function 2024-12-15 16:17:12 +03:00
nazeh
6262bb75cd feat(homeserver,js): connect to testnet from js 2024-12-15 15:14:12 +03:00
nazeh
c97e63ac88 feat(js): update error handling after removing crate::error 2024-12-14 20:39:08 +03:00
nazeh
453aa40d88 fix(pubky): fix authz test with in process http relay 2024-12-14 16:37:58 +03:00
nazeh
3ebdeff354 feat(homeserver): use Pkarr Relay in testnet and new Config simplifications 2024-12-14 12:48:53 +03:00
nazeh
1a30f7d62d chore: update dependencies 2024-12-11 14:33:28 +03:00
nazeh
628049984e feat(pubky): update pkarr and use anyhow 2024-12-03 12:02:26 +03:00
nazeh
b1bef6aa3e wip(js): migrate wasm bindings to support pubky in host 2024-11-26 19:14:00 +03:00
nazeh
9b5a4f98f2 feat(homeserver): separate core to simplify testing 2024-11-26 17:45:55 +03:00
nazeh
c9ae34584c feat(pubky): add TLS support for homeserver 2024-11-26 13:04:19 +03:00
nazeh
1993a73d6d feat(pubky): add custom cookie jar .. requires https 2024-11-25 18:24:34 +03:00
nazeh
05cad66366 feat(pubky): support GET /pub/*path for native urls 2024-11-21 22:44:52 +03:00
nazeh
d3367096d6 feat(pubky): use Pkarr v3 endpoint resolvers in Client::request 2024-11-14 17:37:48 +03:00
nazeh
af390e8087 feat(pubky): PubkyClient::builder().build() return result 2024-11-14 15:17:36 +03:00