Skip to content

Commit

Permalink
Just forward access token
Browse files Browse the repository at this point in the history
We can infer the username, so I think just forwarding what we actually
need might make this slightly more resiliant to future Grafana changes.

Signed-off-by: Jacob Baungard Hansen <[email protected]>
  • Loading branch information
jacobbaungard committed Aug 26, 2024
1 parent 19274a7 commit 875d967
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func GenerateGrafanaDataSource(
Timeout: "300",
CustomQueryParameters: "max_source_resolution=auto",
TimeInterval: fmt.Sprintf("%ds", mco.Spec.ObservabilityAddonSpec.Interval),
ForwardHeaders: []string{"X-Forwarded-Access-Token", "X-Forwarded-User"},
ForwardHeaders: []string{"X-Forwarded-Access-Token"},
},
},
{
Expand All @@ -122,7 +122,7 @@ func GenerateGrafanaDataSource(
Timeout: "300",
CustomQueryParameters: "max_source_resolution=auto",
TimeInterval: fmt.Sprintf("%ds", DynamicTimeInterval),
ForwardHeaders: []string{"X-Forwarded-Access-Token", "X-Forwarded-User"},
ForwardHeaders: []string{"X-Forwarded-Access-Token"},
},
},
},
Expand Down

0 comments on commit 875d967

Please sign in to comment.