* Move monitor code to a struct
- to store state in a struct
* explorer deprecation wip
* Replace explorer with ipinfo calls
* PR feedback
* Fix clippy
* Bump package version
* Remove ipinfo crate due to openssl dep
* Add remaining bandwidth log
* Agents authenticate with NSAPI
* /submit with better auth
- also adjust agent run script to authenticate, even in parallel
* /request better authentication
- moved agent API calls to Client struct
* Replay protection
* Fix testrun cleanup bug
- introduce a new column last_assigned which is different than
created_at so that stale testruns get cleaned up based on
last_assigned
- created_at is still useful for determining the "oldest" testrun
to be picked up
* Uniform request authentication
* Suppress ts-rs serde warnings
* Update cargo version
* All agents use the same key
- remove assigned_agent column
- remove logic which would stop agents with
the same key to connect
- as a safety measure, add cap to total no. of agents
* Compile & copy wg probe
* Node status agent WIP
* Enable debug logging
* Agent submits results
- add clap to agent
- agent runs network probe
- /submit endpoint on NS API
* Build clients with timeouts
* Update logging and dev scripts
* Replace /blaclisted endpoint
* Testruns fully functional
- task that queues testruns periodically
- testruns read/write in DB
* Probe scores fully working
- testruns are assigned on API
- submit updates testruns correctly on NS API side
- agent registers with API
- agent submits results correctly
* Clippy fixes
* PR feedback
* Clippy again
* PR feedback
* Run clippy earlier in CI
* Make refresh delay configurable in server & agent
* feat: add dockerfile and env variables
* Added workflow for pushing node status api on harbor
* Misc changes to pathing and using yq instead of jq
* fix: change the way we read env vars for nyxd, nym api and explorer
* fix: docker build workflow
* Remove config in favor of clap args
* Added naming and tags
* change from value to result
---------
Co-authored-by: Lawrence Stalder <lawrence@nymtech.net>
Co-authored-by: dynco-nym <173912580+dynco-nym@users.noreply.github.com>
Rebase + point to earlier network client code
Adjust to new Nym API types
Refer to earlier client code
Revert "Rebase + point to earlier network client code"
This reverts commit dd75e7dc0695c25b0883e2f5dd15b7d70165e9e8.
Point to earlier commit
* Setup new package
* Setup DB
* Fetch & store mixnodes/GWs
- refactor db package structure
- finally solve DATABASE_URL: absolute path works best
* Additional query functionality
- missing only daily summary, which requires type refactoring
* Replace type alias tuples with structs
* Insert summary
* Add github job to build package
* Build script for sqlx
* Remove data dir
- useless now that sqlx DB sits in OUT_DIR
* PR feedback