Skip to content

Webapp: proxy dump does not show upstream proto #63

@saarasio

Description

@saarasio

The following proxy config has two gRPC upstreams. However the protocol is not shown in output of dump command -

$ curl -s 127.0.0.1:1323/proxy/dump/gw | jq
{
  "data": {
    "saaras_db_proxy": [
      {
        "proxy_id": 1,
        "proxy_name": "gw",
        "create_ts": "2019-11-16T20:52:17.667348+00:00",
        "update_ts": "2019-11-16T20:53:43.615024+00:00",
        "proxy_services": [
          {
            "service": {
              "service_id": 1,
              "service_name": "l",
              "fqdn": "127.0.0.1",
              "create_ts": "2019-11-16T20:52:24.630408+00:00",
              "update_ts": "2019-11-16T20:53:43.615024+00:00",
              "service_secrets": [],
              "routes": [
                {
                  "route_id": 1,
                  "route_name": "r",
                  "route_prefix": "/",
                  "create_ts": "2019-11-16T20:52:34.037305+00:00",
                  "update_ts": "2019-11-16T20:52:54.759904+00:00",
                  "route_upstreams": [
                    {
                      "upstream": {
                        "upstream_id": 1,
                        "upstream_name": "u",
                        "upstream_ip": "127.0.0.1",
                        "upstream_port": 50051,
                        "upstream_hc_path": "/",
                        "upstream_hc_host": "",
                        "upstream_hc_intervalseconds": 0,
                        "upstream_hc_timeoutseconds": 0,
                        "upstream_hc_unhealthythresholdcount": 0,
                        "upstream_hc_healthythresholdcount": 0,
                        "upstream_strategy": "",
                        "upstream_validation_cacertificate": "",
                        "upstream_validation_subjectname": "",
                        "upstream_weight": 100,
                        "create_ts": "2019-11-16T20:52:36.750408+00:00",
                        "update_ts": "2019-11-16T20:52:58.859747+00:00"
                      }
                    },
                    {
                      "upstream": {
                        "upstream_id": 2,
                        "upstream_name": "u2",
                        "upstream_ip": "127.0.0.1",
                        "upstream_port": 50052,
                        "upstream_hc_path": "/",
                        "upstream_hc_host": "",
                        "upstream_hc_intervalseconds": 0,
                        "upstream_hc_timeoutseconds": 0,
                        "upstream_hc_unhealthythresholdcount": 0,
                        "upstream_hc_healthythresholdcount": 0,
                        "upstream_strategy": "",
                        "upstream_validation_cacertificate": "",
                        "upstream_validation_subjectname": "",
                        "upstream_weight": 100,
                        "create_ts": "2019-11-16T20:52:40.087558+00:00",
                        "update_ts": "2019-11-16T20:53:01.261084+00:00"
                      }
                    }
                  ]
                }
              ]
            }
          }
        ]
      }
    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions