Today’s Development Updates: Analytics, GPRC & Security Improvements
What developments have taken place today?
This commit improved the accuracy of client IP address capture in analytics data by utilizing a helper function, helper.GetRealAddr(c.Request)
, instead of directly accessing c.ClientIP()
. This enhancement provides a more reliable source of client IP information.
A new type parameter has been introduced and implemented across several functions, including BuildUrl
, BuildStatsUrl
, BuildUrlTableData
, prepareAnalyticsData
, getSearchConfig()
, and updateChartSelect
. This allows for differentiated analytics data transmission to the gRPC server based on a specified type. The update also includes error handling within the URL construction process and validation of user-selected values from an HTML element.
The configuration file has been updated to include a gRPC token, facilitating communication with the gRPC service. Furthermore, changes have been made to the gRPC connection string and authorization header – specifically, shifting the server address and updating the x-authorization
metadata for enhanced security and connectivity. A short delay is implemented before attempting to establish a gRPC connection.
These combined modifications represent significant improvements by enabling flexible analytics data transmission, enhancing data reliability, strengthening security protocols, and streamlining communication with the gRPC service.