Redirect to pubsub node and some bug fixes #7

Closed
noormohammedb wants to merge 0 commits from pubsub_redirect into main

Implemented redirect for pubsub required grpc call
new environment variable to set public endpoint of the brain
fixed app node resource update
local_brain without tls for development
SPDX-License-Identifier: Apache-2.0
improved logging and some querys
updated proto and and changed app resource disk mb to gb
improved tests with mocking random ip for registration

Implemented redirect for pubsub required grpc call new environment variable to set public endpoint of the brain fixed app node resource update local_brain without tls for development SPDX-License-Identifier: Apache-2.0 improved logging and some querys updated proto and and changed app resource disk mb to gb improved tests with mocking random ip for registration
noormohammedb added 13 commits 2025-06-19 14:00:11 +00:00
fixed app node filter query
updated proto change mb to gb on app node resource
tests for get one node for app and vm
tests for node resource updates on vm and app
fix test for app node filtering implemented ip based node filtering
mocking random public ip for node
local brain binary for test without tls
refactor test grpc services to use grpc only stream
implement public IP handling
Add pub_sub_node field to vm_node table in SQL schema
Refactor BRAIN_GRPC_ADDR to use LazyLock for dynamic IP assignment
Implement current_brain_endpoint function to retrieve public IP
using remote address on daemon registration as pubsub endpoint
validating pubsub node using client req remote address
remove fetching public ip
Refactors the `check_pubsub_node` function to return an `Option<Status>`
to indicate whether a redirect is needed.
Introduces new environment variable to set public endpoint of the brain
refactor redirect validation to db module
validating pubsub node on all vm
fixed some vm tests
fix app_node schema
improved query handling with bind on check pubsub node
test for app pubsub node
update storage unit to GB in AppNodeResources and related files
fixed app node filter query
updated proto change mb to gb on app node resource
tests for get one node for app and vm
tests for node resource updates on vm and app
fix test for app node filtering implemented ip based node filtering
mocking random public ip for node
local brain binary for test without tls
refactor test grpc services to use grpc only stream
Updates ActiveApp with IP and fixes hratls_pubkey mapping
reduced rustls logging to debug
fixed double deleting new_app_req from both daemon and cli side
enhanced new_app logging
noormohammedb requested review from ghe0 2025-06-19 14:00:19 +00:00
Owner

LGTM

LGTM
noormohammedb force-pushed pubsub_redirect from f74fc94851 to d4e499126d 2025-06-19 15:34:15 +00:00 Compare
ghe0 added 1 commit 2025-06-19 17:36:30 +00:00
ghe0 closed this pull request 2025-06-19 17:38:46 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: testnet/brain#7
No description provided.