This message was deleted.
# opni
a
This message was deleted.
b
When the noAuth gateway provider is configured, is this expected browser navigation flow?
Also here is the relevant line from the grafana log:
Copy code
logger=context userId=0 orgId=0 uname= t=2023-09-18T01:23:59.634314985Z level=info msg="Request Completed" method=GET path=/login/generic_oauth status=302 remote_addr=myremoteaddr time_ms=0 duration=118.804µs size=310 referer=<https://grafana.myhostname/login> handler=/login/:name
Any suggestions for resolving this issue?
b
do you have a grafana hostname configured in the helm chart values?
b
Yes.
Hostname is redacted
grafana.myhostname
as referenced in the above grafana log.
It seems that to make grafana redirects work w/the noauth provider, the Monitoring Backend Grafana hostname must be set to `grafana.`<Helm-value `gateway.hostname`>. This requirement was not clear to me from the docs.
b
that's the default if you don't specify your own grafana hostname
you can override it when installing the monitoring backend
b
@brief-jordan-43130 My attempts to override it while using the noauth provider resulted in error: https://rancher-users.slack.com/archives/C0208PX1V7Y/p1695001162124649?thread_ts=1695000647.502709&amp;cid=C0208PX1V7Y
b
if you set a custom hostname, the
grafana.
prefix is not applied. here is the exact logic for how the redirect uri is configured:
Copy code
if Spec.Auth.Noauth != nil {
  return fmt.Sprintf("<https://%s/login/generic_oauth>", Spec.Auth.Noauth.GrafanaHostname)
} else {
  return fmt.Sprintf("<https://grafana>.%s/login/generic_oauth", Spec.Hostname)
}
where Spec.Hostname is the gateway's hostname
b
Yes, I originally misunderstood the below url calculation:
Copy code
fmt.Sprintf("<https://grafana>.%s/login/generic_oauth", Spec.Hostname)