Commit Graph

9824 Commits

Author SHA1 Message Date
Floriane TUERNAL SABOTINOV 03280cd9b4 Revert "auth and gateway changes"
This reverts commit 7609d6ae4d.
2025-09-02 15:25:08 +02:00
Floriane TUERNAL SABOTINOV cd16239cf3 Revert "test lifetime span into tokio select"
This reverts commit 7fa5a778aa.
2025-09-02 15:24:52 +02:00
Floriane TUERNAL SABOTINOV 7fa5a778aa test lifetime span into tokio select 2025-08-27 14:12:15 +02:00
Floriane TUERNAL SABOTINOV 7609d6ae4d auth and gateway changes 2025-08-27 09:10:29 +02:00
Floriane TUERNAL SABOTINOV fa02376403 packet forwarding spans 2025-08-26 13:44:59 +02:00
Floriane TUERNAL SABOTINOV 68ebe93ba5 add span propagation test 2025-08-26 09:12:26 +02:00
Floriane TUERNAL SABOTINOV 0fe5264231 rm noisy instrument 2025-08-25 15:04:45 +02:00
Floriane TUERNAL SABOTINOV f6dffa2a38 debug handle_request instrument 2025-08-25 15:04:18 +02:00
Floriane TUERNAL SABOTINOV d86a393412 initial_auth missing span 2025-08-25 12:33:33 +02:00
Floriane TUERNAL SABOTINOV 281de87871 missing span 2025-08-25 11:37:24 +02:00
Floriane TUERNAL SABOTINOV bc47fdfdfd handle_binary 2025-08-22 15:38:56 +02:00
Mark Sinclair 05dd39699d add tracing event formatter with trace_id and span_id 2025-08-06 11:28:53 +01:00
mfahampshire 5cf97977a1 add feature flag to tracing-sub 2025-08-05 20:30:13 +02:00
Mark Sinclair a47a10fdde JSON log format 2025-08-05 18:29:18 +01:00
mfahampshire 2a8265371d try fix the propogation of trace_id across client-node v2 2025-08-05 19:09:42 +02:00
mfahampshire 0b7513ff55 try fix the propogation of trace_id across client-node 2025-08-05 18:43:15 +02:00
mfahampshire 312c51535f adding tracing to syslog 2025-08-05 18:10:56 +02:00
mfahampshire 54fb9ebfab try add traceID to syslogs 2025-08-05 17:54:05 +02:00
mfahampshire 3ec9c4d8d7 change to check authv2 2025-08-05 16:20:56 +02:00
mfahampshire 6d0b899648 yet more logging 2025-08-05 14:43:38 +02:00
mfahampshire bb5187eb0a warning logs (more) 2025-08-05 14:04:34 +02:00
mfahampshire 558df0975b warning logs 2025-08-05 12:11:46 +02:00
mfahampshire 952fcdb2b3 added tracing command for testing + extra logging 2025-08-05 11:21:31 +02:00
mfahampshire 7bc4a69a1c pull guard into main fn scope 2025-08-04 18:22:58 +02:00
mfahampshire dd1e46ec15 force connect to gateway 2025-08-04 14:29:14 +02:00
mfahampshire 8c219f0603 Made logging conditional on execution 2025-08-04 12:44:12 +02:00
mfahampshire 8c0addb987 moved telemetry to logging from mod 2025-08-02 00:27:31 +02:00
mfahampshire fc53eec241 add telemetry builder to node.run() 2025-08-01 17:17:14 +02:00
Mark Sinclair 12649627a5 tidy up 2025-08-01 13:58:17 +01:00
mfahampshire 99684e79e4 think its fixed 2025-08-01 14:53:18 +02:00
Mark Sinclair fc76c2d7a0 wip 2025-08-01 12:58:52 +01:00
Mark Sinclair 18f7ba92bb wip 2025-07-31 20:09:38 +01:00
import this 33339c085d [DOCs/operators]: Update ISP list (#5918)
* update ISP list

* remove typo
2025-07-31 13:47:27 +00:00
Sachin Kamath 863f329106 docs: update validator instructions and waitlist callout (#5922) 2025-07-30 15:03:39 +00:00
import this 314a37cabe WG exit policy scripts update (#5921)
* add NIP-3 ports to WG manager script

* add monero ports to local testing script

* console output snippet update
2025-07-30 09:43:39 +00:00
Jack Wampler 917f391948 Make DNS Resolver fallback optional (#5920)
default to no dns system fallback, but keep support
2025-07-29 11:00:24 -06:00
Jędrzej Stuczyński a4e674c98b basic zulip client for sending messages (#5913) 2025-07-24 16:22:35 +01:00
Bogdan-Ștefan Neacşu b975d08342 Remove old free credential handle (#5864)
* Set cached storage counters to 0 (#5812)

* Set cached storage counters to 0

* u64 to i64 log possible error

* Check addition too

Debug commit

Remove more data from wg storage peer

Put actual ticket type in storage

Simplify add peer

Finish rebase

Pass defguard Peer

Cache less data for consumption

GatewayStorage traits

Wg API trait

Mock test structures

Unit test for peer controller

EcashManager trait

Init test of Authenticator

Remove peer test

* Fix windows different API

* Use make_bincode_serializer like in other places

* Add log_slow_statements to gateway storage

* Use correct LevelFilter

* Fix clippy

* More win fix

* Win clippy

* Use two error variants more

* Use only one Arc<RwLock<T>> instead of many more

* Remove commented test

* Specific trait import
2025-07-23 17:07:12 +03:00
Jędrzej Stuczyński 8e44f9f07f chore: allow compatibility with 'CDLA-Permissive-2.0' (#5910) 2025-07-23 14:48:40 +01:00
benedetta davico 8461d085a5 Merge pull request #5906 from nymtech/release/2025.13-emmental
merge release/2025.13-emmental to develop
2025-07-22 16:23:29 +02:00
Drazen Urch af9f6e5ca0 Allow PG database backend (#5880)
* feat(db): add SQL query wrapper for PostgreSQL placeholder conversion

- Created query_wrapper module with functions to automatically convert
  SQLite ? placeholders to PostgreSQL $1, $2, ... format
- Updated build.rs to handle mutually exclusive feature flags
- Modified one query in mixnodes.rs as proof of concept
- Added type conversions for PostgreSQL compatibility (u32->i64, u16->i32)

This is a checkpoint commit before converting all queries to use the wrapper.

* feat(nym-node-status-api): add PostgreSQL database support via feature flags

Implement dual database support for SQLite and PostgreSQL through Cargo feature flags.
The implementation uses a query wrapper that automatically converts SQLite-style ?
placeholders to PostgreSQL-style $1, $2, ... placeholders at runtime.

Key changes:
- Add query wrapper functions that handle placeholder conversion
- Convert all sqlx::query\! macros to use wrapper functions
- Handle type conversions between databases (i64 vs i32)
- Add feature-gated implementations for database-specific SQL syntax
- Update Makefile with clippy targets for both database features
- Document database support in README

* feat(nym-node-status-agent): add multi-API support with random selection

Agents can now connect to multiple APIs and randomly select one for each testrun:
- Accept multiple --server arguments in format "address:port:auth_key"
- Randomly shuffle server list before attempting connections
- Try each server until a testrun is obtained
- Submit results back only to the API that provided the testrun
- Continue to next server if one is down or has no testruns available

* feat(nym-node-status): implement primary/secondary server architecture

- Agent now requests testruns only from primary server (first in list)
- Results are submitted to all configured servers in parallel
- Secondary servers accept external testruns via new v2 endpoint
- Added auto-creation of gateway and testrun records on secondary servers
- New database queries: get_or_create_gateway, insert_external_testrun
- Client library enhanced with submit_results_with_context method

* Bump Node status API version

* Fix build workdir

* Bump to 3.1.4

* Fix types and queries

* 3.1.6

* Fix gateway perf, bump 3.1.7

* NodeId -> i32, 3.1.8

* Bump agent version

* i64 -> i32

* Use image yq

* Migration and more types

* Update remaining JSONB columns

* Simplify server config

* Update build path

* Change delimiter

* bump agent

* Split up pg and sqlite builds

* More typing fixes, build-and-push script

* Fix Dockerfile-pg

* Bump node-status-api

* TYping

* Agent build script

* More logging around testruns

* Fail loudly on read errors

* Cleanup

* Debug get gateways query

* Fix get_gateways query

* Use pg cert, 3.1.16

* Submit regular results to primary server

* Bump freshenss cutoff

* Update Cargo.lock

* fix: resolve rebase conflicts and compilation errors

After rebasing onto develop, fixed several issues:
- Fixed borrowed data escapes error by using sqlx::query directly in transaction functions
- Removed unused imports and cleaned up code
- Maintained database-specific implementations for transaction functions

* fmt

* Make PG default to make lives easier

* Performance improvements for Explorer v2

* Fix sqlite build

* Fix PG migration

* Tests round 1

* DB tests

* More tests

* And some more tests

* And some more, more tests

* cargo fmt

* Fix some failing lints

* Fix lioness version problems

* Clippy in tests

---------

Co-authored-by: dynco-nym <173912580+dynco-nym@users.noreply.github.com>
2025-07-22 15:25:43 +02:00
import this a9ae2017f5 [DOCs/operators]: Release notes/v2025.13 emmental & NIP-3 announcement (#5908)
* initialise PR, add dev notes and bump node version

* add operators tool and update api stats
2025-07-22 12:10:43 +00:00
Bogdan-Ștefan Neacşu 09ebe7f9e9 Support mnemonic in the NS agent (#5883)
Co-authored-by: benedettadavico <benedetta.davico@gmail.com>
2025-07-22 14:21:12 +03:00
Andrej Mihajlov b72915c224 Merge pull request #5905 from nymtech/am/sqlx-guard-obtain-db-path-from-pool
sqlx-pool-guard: obtain filename from connect options
2025-07-22 11:57:55 +02:00
Andrej Mihajlov add3e864e3 sqlx-pool-guard: obtain filename from connect options 2025-07-22 11:09:39 +02:00
benedettadavico 578c9b0567 update changelog nym-binaries-v2025.13-emmental 2025-07-22 11:09:35 +02:00
Andrej Mihajlov 8f6f696f36 Merge pull request #5896 from nymtech/am/handle-table-allocate-more-memory 2025-07-22 11:09:11 +02:00
Jędrzej Stuczyński e9165763b6 Feature/dkg snapshot epoch (#5900)
* define storage item for holding historical DKG state

* make all epoch storage operations go through proxy functions

* make each saving action also apply to the historical item

* removed usage of update_epoch function

* test correct save heights

* exposed query for the epoch state at specified height

* regenerated contract schema

* restored default cw-plus behaviour as in hindsight it makes more sense
2025-07-21 17:32:57 +01:00
mfahampshire 6c1149708b GW Probe docs: Go dep. + new required mnemonic (#5897)
* add note on go dep

* updated -h and useage doc
2025-07-18 12:36:30 +00:00
Mark Sinclair aaf6931d78 nym-node-status-ui placeholder (#5902)
Co-authored-by: Mark Sinclair <mmsinclair@users.noreply.github.com>
2025-07-17 20:04:45 +01:00