influxdata / influxdata/influx-cli

Client does not work if db is behind reverse proxy

Open
#576 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
75
Forks
22
PR merge metrics
No merged PRs in 30d

Description

We have the influx db behind a caddy reverse proxy.
Port 8086 will be served via https://IP-ADDRESS/influxdb
This works fine with rest clients like eg. postman or bruno, they use the /influxdb.
But the cli client seems to forget the /influxdb, so it does not get a response from the influxdb, but from the reverse proxy.
See screenshot from bruno rest client, cli client with http and cli client with https.

Bruno:
Image

HTTP:

Image

HTTPS:

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by reproducing the CLI request against an InfluxDB URL served under the /influxdb path, comparing its HTTP and HTTPS behavior with Bruno or Postman. Done means the CLI preserves the configured path when communicating through the reverse proxy and receives the InfluxDB response.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.