159 Commits

Author SHA1 Message Date
anonpenguin23
db3ed5161d
Update Go module dependencies, enhance error handling, and implement sticky port allocation
- Updated Go version to 1.24.4 and adjusted toolchain.
- Added indirect dependencies for `go-spew` and `go-difflib`.
- Enhanced error handling in the `authMiddleware` to better distinguish between database errors and invalid API keys.
- Implemented sticky port allocation for database instances, allowing reuse of previously saved ports across restarts.
- Improved logging for port allocation and database recovery processes, ensuring better visibility and error tracking.
2025-10-16 15:23:20 +03:00
anonpenguin23
4d05ae696b
Add admin handlers for database creation and metadata management
- Introduced `admin_handlers.go` to handle database creation requests via HTTP, including validation and response handling.
- Implemented `db_metadata.go` to manage database metadata caching and synchronization with a pubsub subscriber.
- Updated `gateway.go` to initialize the metadata cache and start the metadata subscriber in the background.
- Added new route for database creation in `routes.go` to expose the new functionality.
- Enhanced cluster management to support system database auto-joining and improved metadata handling for database operations.
2025-10-16 10:56:59 +03:00
anonpenguin23
36002d342c
Remove obsolete documentation files for Dynamic Database Clustering and Testing Guide
- Deleted the DYNAMIC_CLUSTERING_GUIDE.md and TESTING_GUIDE.md files as they are no longer relevant to the current implementation.
- Removed the dynamic implementation plan file to streamline project documentation and focus on updated resources.
2025-10-16 10:29:58 +03:00
anonpenguin23
dd4cb832dc
Add memory leak prevention in pubsub handler and improve database recovery logic
- Implemented a cleanup goroutine in the pubsub handler to remove old entries from the recent connections map, preventing memory leaks.
- Enhanced the database recovery process in the cluster manager by adding checks for quorum and ensuring proper handling of existing data during instance startup.
- Updated instance management to clear Raft state for leaders with existing cluster state and added background SQL readiness checks for followers.
- Improved logging for better visibility during recovery and instance startup processes.
2025-10-16 10:10:33 +03:00
anonpenguin23
94248e40b0
Updated default advertise address to 0.0.0.0 in main.go, removed unnecessary BEGIN/COMMIT statements from migration SQL files, and improved database initialization handling in cluster manager. Increased wait times for node readiness and SQL availability checks to 60 seconds. 2025-10-14 13:59:36 +03:00
anonpenguin23
0bd9749aaf
Made clustering with system db work and replicate but migrations do not run 2025-10-14 12:59:24 +03:00
anonpenguin23
85e0bc13f4
Fixed discoverability issues and bugs 2025-10-13 14:52:01 +03:00
anonpenguin23
f2d5a0790e
started working on clustering 2025-10-13 07:41:46 +03:00
anonpenguin23
2eb4db3ddb
Update CHANGELOG.md 2025-09-26 07:56:05 +03:00
anonpenguin
587cb3dc11
Merge pull request #41 from DeBrosOfficial/peer-id-identity
Peer id identity fixes
2025-09-26 07:55:16 +03:00
anonpenguin23
b6db781ce2
- Added identity/main.go to generate identity and peer id
- Added encryption module identity.go for reusable identity create, save etc funtions
- Updated make file to support identity/main.go
- Updated node/node.go on loadOrCreateIdentity to use encryption.identity
- Updated cli/main.go to remove fallbacks for identity
- Updated install-debros-network.sh script to use new ./cmd/identity and fixed port order on print
- Updated makefile and changelog
2025-09-26 07:53:20 +03:00
anonpenguin23
5d951daaf8
Updated changelog 2025-09-23 07:50:09 +03:00
anonpenguin23
ad1b389a53
Updated make file 2025-09-23 07:43:23 +03:00
anonpenguin23
3b08a91de3
Fixed wrong URL /v1/db to /v1/rqlite 2025-09-23 07:42:34 +03:00
anonpenguin23
f676659139
Update CHANGELOG.md 2025-09-23 07:22:49 +03:00
anonpenguin
05f2e61822
Merge pull request #36 from DeBrosOfficial/storage-refactor
Storage refactor
2025-09-23 07:20:50 +03:00
anonpenguin23
c0d8fcb895
- Created namespace_helpers on gateway
- Removed old pkg/gatway storage and migrated to new rqlite
- Updated readme
- Created new rqlite implementation
- Updated changelog
- Fixed migration error on migrations.go applySQL
2025-09-23 07:19:35 +03:00
anonpenguin23
16845b758d
- Remoevd old storage folder
- Created new rqlite folder
- Created rqlite adapter, client, gateway, migrations and rqlite init
- Updated node.go to support new rqlite architecture
- Updated readme
- Updated version
2025-09-23 06:00:57 +03:00
f46e9661eb
Merge pull request #35 from DeBrosOfficial/nightly
Nightly
v.0.44.0
2025-09-22 17:50:08 +03:00
anonpenguin23
c613dbd0ee
Updated changelog 2025-09-22 17:47:25 +03:00
anonpenguin
31920f504e
Merge pull request #34 from DeBrosOfficial/anyone-updates
Anyone updates
2025-09-22 17:43:43 +03:00
anonpenguin23
42598b1123
Removed anyone proxy from libp2p, anyone will be added
Updated readme to include all options for .yaml files
Added gateway.yaml file for gateway default configurations
2025-09-22 17:38:18 +03:00
anonpenguin23
25935fd3b1
Removed unused command setup-production-security.sh 2025-09-20 13:28:44 +03:00
anonpenguin23
ef0a6d5891 Update CHANGELOG.md v0.43.6 2025-09-20 13:06:48 +03:00
anonpenguin23
fc735c57b3 Update Makefile 2025-09-20 13:05:57 +03:00
anonpenguin
fd677e0290
Merge pull request #32 from DeBrosOfficial/bootstrap-peers
Added default bootstrap peers on config.go
2025-09-20 10:08:48 +03:00
anonpenguin23
3236e48725 Added default bootstrap peers on config.go 2025-09-20 10:07:32 +03:00
anonpenguin
5da956ab9d
Merge pull request #30 from DeBrosOfficial/port-change
Updated Gateway port from 8080/8005 to 6001 - Added Gateway port on
2025-09-20 08:18:47 +03:00
anonpenguin23
66f10df2e1 - Updated Gateway port from 8080/8005 to 6001 - Added Gateway port on
install-debros-network.sh
2025-09-20 08:15:31 +03:00
DeBros
fcbf043aca
Update README.md 2025-09-20 06:38:43 +03:00
DeBros
d866afbecf
Update README.md 2025-09-19 06:24:32 +03:00
anonpenguin23
fdd6dd2db3 Initialize changelog sections for unreleased and v0.43.4 versions v0.43.4 2025-09-18 15:32:06 +03:00
anonpenguin23
a9093355d8 Bump version to 0.42.4-beta and update repo URL 2025-09-18 15:31:03 +03:00
anonpenguin
44498ff381
Merge pull request #19 from DeBrosOfficial/convert-gitdebros
replaced git.debros.io with github.com
2025-09-18 15:29:43 +03:00
anonpenguin23
ff3b15108d replaced git.debros.io with github.com 2025-09-18 15:27:53 +03:00
anonpenguin23
82187de96c - Remove backoff_test.go and associated backoff tests - Created
node_test, write tests for CalculateNextBackoff, AddJitter, GetPeerId,
LoadOrCreateIdentity, hasBootstrapConnections
2025-09-18 07:44:23 +03:00
anonpenguin23
26b24bd7a4 - Added extra comments on main.go - Updated changelog 2025-09-18 06:34:07 +03:00
f54fcffe06 Added changelog v0.42.3 2025-09-15 15:44:37 +03:00
bbab23fd7c Updated version 2025-09-15 15:33:28 +03:00
16a2195685 Removed log from monitoring 2025-09-15 15:32:59 +03:00
5c05b75226 removed unused 2025-09-15 15:08:48 +03:00
2acf969e61 Add node namespace and improve monitoring
The above changes introduce node namespacing and various monitoring
improvements. Let's look at the key changes:

- Add node_namespace config field for partitioning node identifiers -
Initialize pubsub with peer exchange enabled - Reduce client monitoring
interval to 30s - Add metric announcement logging

I would write this commit message as:

Add node namespace and improve monitoring

- Add node_namespace config for partitioning identifiers - Enable pubsub
peer exchange - Adjust monitoring intervals and add logging - Initialize
pubsub with namespace support

The subject line captures the two main themes (namespacing and
monitoring), while the body provides helpful details about the specific
changes made.
2025-09-13 11:29:16 +03:00
9d7c094360 Add Go debug configurations and bump version to 0.42.1
The debug configurations and version bump changes are simple enough to
be captured in the subject line alone, so no body is needed.
2025-09-13 11:00:39 +03:00
6b2512a983 Bump version to 0.42.0-beta and add node monitoring
Add detailed connection and system resource monitoring for nodes using a
new node monitoring package. Remove previous client-only monitoring.
Update openapi specs formatting and add new OS stat dependency.
2025-09-13 07:35:48 +03:00
44ab3eb66d Add pre-push hook to run all tests before pushing 2025-09-13 06:02:56 +03:00
feffcd2a74 updated version 2025-09-12 08:06:22 +03:00
fa7468d833 Updated readme 2025-09-12 08:05:49 +03:00
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