Replace hardcoded Grafana token with environment variable #7

Closed
opened 2026-03-11 13:54:16 +00:00 by vps1_gitea_admin · 1 comment

Problem

Grafana API token is hardcoded in dashboardAPI node source code.

Solution

Read from environment variable (e.g., GRAFANA_TOKEN) with fallback.

Files affected

  • nodes/dashboardAPI/dashboardapi.js
## Problem Grafana API token is hardcoded in dashboardAPI node source code. ## Solution Read from environment variable (e.g., GRAFANA_TOKEN) with fallback. ## Files affected - nodes/dashboardAPI/dashboardapi.js
vps1_gitea_admin added the P1-cleanupsecurity labels 2026-03-11 13:54:16 +00:00
Author
Owner

Replaced hardcoded Grafana token with process.env.GRAFANA_TOKEN (with current value as fallback for backward compatibility).

Replaced hardcoded Grafana token with process.env.GRAFANA_TOKEN (with current value as fallback for backward compatibility).
Sign in to join this conversation.