perses / perses/plugins

Perses does not propagate proxy headers to all api calls

Open
#78 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
31
Forks
79
Avg merge
1d 17h
Merged PRs (30d)
41

Description

Problem

For some reason, perses does not propagate headers for the next endpoints:

  • /api/v1/label/name/values
  • /api/v1/metadata
  • /api/v1/series
    on a pages "Add panel" and "Explore"

STR:

  1. go to https://demo.perses.dev/projects/mike/dashboards/mike_dashboard?var-job=alertmanager&start=1h&refresh=0s
  2. edit the existing panel or add a new one
  3. type something in PromQL Expression input
  4. Check header for any of described above endpoints

Current result

proxy headers do not propagated into the request headers
Image

Expected result

proxy header should be propagate to all API calls

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

Reproduce the issue on the Add panel and Explore pages using the provided dashboard steps, then inspect requests to /api/v1/label/name/values, /api/v1/metadata, and /api/v1/series. Confirm which requests omit the proxy headers and verify that all three include them after the fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.