112 Commits

Author SHA1 Message Date
f580e3d8f4 Removed wrong kv store from network 2025-09-12 08:02:45 +03:00
b53ea93389 Bump version to 0.40.1-beta 2025-08-23 15:39:44 +03:00
df681be07f Refine authorization to distinguish API keys
Add deduplication to pubsub websocket handler to drop recent duplicate
messages within 2 seconds
2025-08-23 15:39:22 +03:00
3fe78ee62a Add OpenAPI spec and SDK authoring guide with TypeScript example
- Add machine-readable OpenAPI spec for Storage, Database, PubSub -
Document HTTP endpoints, auth, migrations, and SDK patterns - Provide
minimal TypeScript SDK example and code - Update README and add example
SDK files and configs - Bump version to 0.40.0-beta
2025-08-23 12:10:54 +03:00
829991da03 Add end-to-end tests for table drop and FK recreate migration 2025-08-23 11:57:15 +03:00
a3e0243e54 Add REST database endpoints to gateway with tests and docs
Implemented CRUD operations for database tables via REST: create-table,
drop-table, query, transaction, and schema retrieval. Included
authentication and namespace ownership enforcement. Added comprehensive
end-to-end tests for new database routes. Updated documentation with
usage examples and migration workflow.
2025-08-23 11:46:49 +03:00
68e1898dab Bump version to 0.39.0-beta 2025-08-23 11:32:08 +03:00
44e3f0a795 Preserve Hijacker/Flusher/Pusher in statusResponseWriter
Return full topic list without trimming namespace prefix in pubsub
handler
2025-08-23 11:31:30 +03:00
c9bb889f8b Improve Gateway handlers with internal auth and logging
- Use internal auth context for all downstream client calls in pubsub
and storage handlers to avoid circular auth and enforce security - Add
gateway component warning logs for pubsub websocket handler on error
conditions and important branch decisions - Fix pubsub topic
subscription and publishing to use un-namespaced topics; handle
namespace filtering explicitly on listing - Accept base64-encoded
payloads in storage E2E test to handle encoded responses transparently
2025-08-23 11:24:48 +03:00
03b3b38967 Improve gateway auth middleware to use internal auth context
Enforce GATEWAY_API_KEY in Makefile E2E test target Fix gateway E2E test
payload reading to use io.ReadAll Remove deprecated multi-node test
targets and cleanup Makefile comments
2025-08-23 11:14:11 +03:00
895f1d5dff Delete legacy e2e_test.go and add new gateway e2e tests 2025-08-23 10:39:58 +03:00
e15a547a10 Merge pull request 'Enforce API key/JWT authentication and namespace gating in client' (#18) from testing into main
Reviewed-on: #18
2025-08-23 07:29:21 +00:00
bd4154a183 Remove deprecated WHITEPAPER.md file 2025-08-22 11:16:15 +03:00
917b0e5acd Enforce API key/JWT authentication and namespace gating in client
- Require API key or JWT by default for client connections - Auto-derive
namespace from JWT claim or API key format `ak_<rand>:<namespace>` -
Deny calls if per-call namespace override mismatches resolved namespace
- Guard Storage, PubSub, Database, and NetworkInfo operations with
access checks - Add context helpers for consistent namespace override
handling - Update docs and add end-to-end and unit tests for
authentication logic
2025-08-20 23:01:51 +03:00
8e5b91dee0 Merge pull request 'feat: implement HTTP gateway with auth, storage, and namespace isolation' (#5) from gateway into main
Reviewed-on: #5
2025-08-20 09:56:09 +00:00
2ced1114d9 Add database migration and auth system enhancements
The commit adds a new database migration system and improves the
authentication flow with multi-wallet support. The migration system
provides robust SQL handling and versioning, while the auth system now
features automatic wallet detection and credential persistence.
2025-08-20 12:55:52 +03:00
1fca8cb411 Add authentication to protected CLI commands
This commit adds wallet-based authentication to protected CLI commands
by removing the manual auth command and automatically prompting for
credentials when needed. Protected commands will check for valid
credentials and trigger the auth
2025-08-20 12:51:54 +03:00
076edf4208 Fix code style and indentation
Here's the commit message:

``` Fix code style and indentation

Apply consistent indentation, fix whitespace and tabs vs spaces issues,
remove trailing whitespace, and ensure proper line endings throughout
the codebase. Also add comments and improve code organization. ```

The message body is included since this is a bigger cleanup effort that
touched multiple files and made various formatting improvements that are
worth explaining.
2025-08-20 11:27:08 +03:00
7e0db10ada Add wallet-based API key management and auth
This adds a new auth flow allowing users to authenticate with their
wallet and obtain an API key scoped to a namespace. It also moves API
key storage from config to the database for better persistence and
key-to-wallet linkage.

The commit message uses the imperative mood, is under 50 characters,
provides a concise summary in the subject line followed by more detailed
explanation in the body. This follows good Git commit message style
while capturing the key changes made.
2025-08-20 10:42:40 +03:00
17f72390c3 feat: add namespace enforcement and API key requirement to client operations 2025-08-16 18:12:08 +03:00
66cdf130fa feat: add gateway build metadata and run-gateway make target with env config 2025-08-16 16:41:34 +03:00
910dbc5bf6 feat: add namespaced pubsub API with websocket and HTTP endpoints 2025-08-16 16:29:54 +03:00
5b0a6864f9 feat: add version endpoint and expand storage/network API with granular handlers 2025-08-16 16:18:47 +03:00
5eca56cd1e feat: implement HTTP gateway with auth, storage, and namespace isolation 2025-08-16 16:04:00 +03:00
271d7bbafb Switch node startup to YAML config files
Update Makefile, README, and .gitignore to use configs/ Add YAML config
loading to node main.go Add gopkg.in/yaml.v3 dependency Remove unused
IsBootstrap field from NodeConfig
2025-08-14 15:49:07 +03:00
a6129d3fc2 Rewrite docs for modern node/client architecture and install system 2025-08-14 15:19:23 +03:00
170b06b213 Remove peer discovery from client; improve bootstrap and monitoring 2025-08-14 14:51:58 +03:00
138644aebd Remove bootstrap and node config files 2025-08-14 14:28:47 +03:00
c0dee632a8 Remove QUIC listen addresses and set TCP port to 4001 2025-08-14 14:27:35 +03:00
7818c6a04e Skip bootstrap connection if address resolves to self 2025-08-14 14:20:08 +03:00
0b60ac0791 Unify and simplify pubsub peer discovery logic
Enable PeerExchange globally and replace Anchat-specific discovery with
a generic, application-agnostic approach that uses periodic monitoring
and a single proactive announcement to find topic peers.
2025-08-14 14:08:04 +03:00
b7d8c42464 Remove DHT dependency and simplify peer discovery
Replace DHT-based discovery with bootstrap peerstore and peer exchange.
Update config and code to remove DHT references and dependencies. Add
data directory override support in node config. Cleanup related config
files and dependencies.
2025-08-14 14:02:58 +03:00
051babd8e3 Update node.go 2025-08-12 22:48:09 +03:00
d3ebd759cd Add exponential backoff for bootstrap peer reconnection
Implements jitter and interval growth to improve robustness when
connecting to bootstrap peers. Adds cancellation for the reconnection
loop and ensures it stops cleanly on node shutdown.
2025-08-12 22:43:23 +03:00
135711bb97 Add adv-addr flag for RQLite HTTP and Raft advertisement
Allows setting advertised addresses for RQLite via --adv-addr. Updates
config and startup logic to pass these addresses to RQLite.
2025-08-12 22:35:56 +03:00
1f6a4cd80b Update node startup flags and bootstrap instructions 2025-08-12 22:14:04 +03:00
d4616545aa Remove cli and node binaries 2025-08-12 22:10:10 +03:00
1a6806256d Remove legacy bootstrap and dev env logic 2025-08-12 22:06:10 +03:00
f8defe1110 Refactor node startup and config for simplified peer discovery
- Remove configmap.go and bootstrap-specific config logic
- Refactor main.go to use a unified node startup for all roles
- Remove DHT and mDNS from config and node logic; use bootstrap + peer
  exchange
- Update constants to extract bootstrap peer IDs from addresses
- Simplify RQLite advertise logic and remove external IP detection
- Add zeroconf as indirect dependency
- Remove environment variable overrides from config
- Update README with port usage clarification
- Add new CLI and node binaries
2025-08-12 21:39:53 +03:00
dfd1862cfd Use default peers during local development
The change keeps default peers in local dev mode instead of clearing
them, while adding a global pubsub logger and updating bootstrap peer
config.
2025-08-12 08:04:58 +03:00
d08626856f updated version number 2025-08-10 16:35:08 +03:00
2647f75ed6 added anyone proxy support 2025-08-10 16:34:11 +03:00
2015d454eb contribution related changes 2025-08-09 21:44:26 +03:00
3585c4c28d updated readme quick start 2025-08-09 21:13:29 +03:00
fbfea68f02 feat: improve dev-local bootstrap behavior and add client defaults logging 2025-08-09 17:55:21 +03:00
cf36d301d5 feat: add dev-local mode for localhost testing with auto-discovery of bootstrap peers 2025-08-09 17:50:02 +03:00
e76ad5cf16 feat: add NETWORK_DEV_LOCAL flag to force localhost defaults for DB and bootstrap peers 2025-08-09 17:34:59 +03:00
93d27e95d4 docs: update client configuration docs and standardize network defaults 2025-08-09 17:28:41 +03:00
7bcf32e527 feat: add configurable database endpoints with multiaddr to HTTP URL conversion 2025-08-09 17:04:36 +03:00
26e2bbb477 feat: improve logging for peer discovery and connection monitoring 2025-08-09 12:10:15 +03:00