Load restapi_routes from config into runtime on startup#5467
Draft
Load restapi_routes from config into runtime on startup#5467
restapi_routes from config into runtime on startup#5467Conversation
Co-authored-by: renecannao <3645227+renecannao@users.noreply.github.com> Agent-Logs-Url: https://github.com/sysown/proxysql/sessions/40d309f0-bd3d-4616-9cd6-fa7d8f1cb355
Co-authored-by: renecannao <3645227+renecannao@users.noreply.github.com> Agent-Logs-Url: https://github.com/sysown/proxysql/sessions/40d309f0-bd3d-4616-9cd6-fa7d8f1cb355
Co-authored-by: renecannao <3645227+renecannao@users.noreply.github.com> Agent-Logs-Url: https://github.com/sysown/proxysql/sessions/40d309f0-bd3d-4616-9cd6-fa7d8f1cb355
Copilot
AI
changed the title
[WIP] Add functionality to load restapi_routes from config file
Load Mar 20, 2026
restapi_routes from config into runtime on startup
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


restapi_routesdefined inproxysql.cnfwere parsed inconsistently and did not support the config shape used in deployment manifests, which leftruntime_restapi_routesempty after startup. This change aligns REST API route loading with the expected config format and startup behavior used by other config-backed sections.Config parsing
restapi_routesas a config section, while preserving support for the legacyrestapisection.id, matching the common SQL workaround and letting SQLite assign it.Runtime startup behavior
restapi_routesin the shape expected by the existing runtime load path.Safety hardening in the touched path
Coverage
LOAD RESTAPI FROM CONFIG.runtime_restapi_routesis populated.Example config now supported directly:
With this format, the route is loaded into
restapi_routesfrom config and becomes available inruntime_restapi_routeson startup.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
cdn.mysql.com/usr/bin/curl curl -C - -O -s REDACTED(dns block)/usr/bin/wget wget -nc -q REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.