Skip to content

Commit f90be66

Browse files
committed
Downgrade Grafana to 10.4.0 to fix token rotation bug
The latest Grafana version has a runaway auth token rotation bug that ignores GF_AUTH_TOKEN_ROTATION_INTERVAL_MINUTES=0 setting. Even with environment variable set, browser shows: - 1036 rotate requests in 12 seconds - Every 7-8ms: rotate 200 fetch context_srv.ts:252 - This floods the browser and freezes the UI Solution: Downgrade to stable Grafana 10.4.0 which doesn't have this bug. Also set rotation interval to 1 year (525600 minutes) as a safety measure. Grafana latest (11.x+) appears to have a regression in the auth token rotation logic.
1 parent 299bf65 commit f90be66

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker-compose.logging.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ services:
3333

3434
# Grafana - Visualization
3535
grafana:
36-
image: grafana/grafana:latest
36+
image: grafana/grafana:10.4.0
3737
container_name: grafana
3838
restart: unless-stopped
3939
ports:
@@ -43,7 +43,8 @@ services:
4343
- GF_USERS_ALLOW_SIGN_UP=false
4444
- GF_INSTALL_PLUGINS=
4545
# Fix auth token rotation loop causing UI freeze
46-
- GF_AUTH_TOKEN_ROTATION_INTERVAL_MINUTES=0
46+
# Set to very large value (1 year = 525600 minutes) to effectively disable
47+
- GF_AUTH_TOKEN_ROTATION_INTERVAL_MINUTES=525600
4748
- GF_AUTH_DISABLE_LOGIN_FORM=false
4849
- GF_AUTH_DISABLE_SIGNOUT_MENU=false
4950
# Performance tuning

0 commit comments

Comments
 (0)