Commit Graph

444 Commits

Author SHA1 Message Date
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
6c4821fe7a fix (pkarr-republisher): Include in Github workflow (#89) 2025-03-20 13:08:28 +02: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
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
b685f8a085 feat: client api for pkarr record republishing (#79)
* feat: add public method to repub homeserver and repub on signin

* Add extract host unit test

* refactor and expose to wasm

* lint

* Fixes add republish tests

* Use pubky timestamp

* Fix wasm spawn

* update republish min time

* fix wasm build

* fix: change republish wasm apii to expect public key

* Update pubky/src/native/internal/pkarr.rs

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

* Update pubky/src/native/internal/pkarr.rs

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

* r record to s signed_packet

* clean up determine host

* fix max_record_age api and change to 1h

---------

Co-authored-by: Severin Alexander Bühler <8782386+SeverinAlexB@users.noreply.github.com>
2025-03-17 10:46:33 -04:00
SHAcollision
3407a90756 chore(tests): add wasm tests to CI (#83)
* ci: add WASM testing workflow to GitHub Actions

* ci: enhance WASM testing workflow with testnet startup and cleanup

* ci: enhance testnet setup and testing workflow with improved logging and connectivity checks

* trying something different

* fix: skip testing browser

---------

Co-authored-by: Miguel Medeiros <miguel@miguelmedeiros.com.br>
2025-02-28 19:57:10 -03:00
SHAcollision
bb310d46d1 fix: improve start up times in some environments (#76) 2025-02-22 18:37:37 -04:00
SHAcollision
00fbd47cb8 chore: add doctests to CI (#77) 2025-02-22 15:48:14 -03:00
Miguel Medeiros
a74dc347b4 ci: split workflows and improve CI efficiency (#75)
* feat: add parallel PR check workflow

* fix: remove branch restriction for PR check workflow

* fix: suppress clippy warnings for needless lifetimes in CI workflows

* refactor: consolidate Clippy checks and streamline test workflows

* feat: add documentation workflow and remove legacy Rust CI workflow

* feat: trigger PR check workflow on push to main branch

* fix: update test command to use CI profile in PR check workflow

* fix: enhance test command with partitioning and retries for improved performance

* fix: remove partitioning from test command in PR check workflow

* fix: update test job to use matrix strategy for multiple crates

* fix: enhance test command with additional options for better output and error handling

* fix: remove silent mode from test command for clearer output

* fix: add check for existing tests before running in PR check workflow

* fix: add missing fi statement to close if condition in PR check workflow

* fix: improve test command logic to handle no tests found scenario
2025-02-21 16:51:00 -04:00
SHAcollision
bc7c723439 fix(tests): update apis on docs (#73) 2025-02-21 06:39:54 -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
James
16fc27126d Merge pull request #67 from pubky/catch-21/dockerfile-testnet
fix: Dockerfile build pubky-testnet
2025-02-13 18:11:26 +00: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
49108e21d8 chore(js): publish @synonymdev/pubky@0.4.0 2025-02-13 20:57:00 +03:00
nazeh
f1d4125d29 chore: Release 2025-02-13 20:49:11 +03:00
nazeh
304f73dbc2 chore(homeserver): update Cargo.toml 2025-02-13 20:29:38 +03:00
nazeh
d5ff45127d chore(homeserver): prepare for release 2025-02-13 20:18:58 +03:00
nazeh
44ae44c2b2 chore(testnet): prepare for release 2025-02-13 20:15:12 +03:00
James Browning
98e51b4389 fix: dockerfile builds either pubky-homeserver or pubky-testnet 2025-02-13 17:13:21 +00:00
nazeh
1435fe8686 chore(homeserver): prepare for release 2025-02-13 19:13:40 +03:00
nazeh
6b92c39af0 feat(homeserver): add Server header with version number 2025-02-13 18:54:48 +03:00
James Browning
1efbe1cb23 fix: Dockerfile build pubky-testnet 2025-02-13 15:46:21 +00: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
201c039cfe feat(common): remove unnecessary Result<> in infallible functions 2025-02-13 14:20:32 +03:00
nazeh
574dde8813 chore: Release 2025-02-13 13:36:36 +03:00
nazeh
1b59d57b6e feat(http-relay): make Config private, and complete documentation 2025-02-13 13:35:13 +03:00
nazeh
de7a19f680 docs: fix broken links 2025-02-13 13:28:25 +03:00
nazeh
15cfeef84d fix(pubky): testnet hardcoded configurations 2025-02-13 13:08:24 +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
fb8efe3866 fix(pubky): bad method documentation 2025-02-12 19:58:22 +03:00
nazeh
c27194f96c chore(pubky): add categories to Config.toml 2025-02-12 19:14:38 +03:00
nazeh
fee569dc32 feat(pubky): integrate pubky_testnet in pubky crate and pass tests 2025-02-12 19:12:19 +03:00
nazeh
863a78e6e1 refactor(homeserver): remove unnecessary testnet property in the Config 2025-02-12 16:40:33 +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
a780176fa5 chore(common): add README.md 2025-02-12 01:44:54 +03:00
nazeh
291125d951 chore(common): upgrade dependencies 2025-02-12 01:28:17 +03:00