Skip to content

Config page: Config persists, breaking DS, but I never hit "Save & Test" #109

@samjewell

Description

@samjewell

What happened:
I was on the Datasource config page, viewing the data there in order to search a config-as-code repo to see if it was configured there (and how). Turns out it was configured through the UI, but still I wanted to see and understand the configuration.

I started clicking around to understand how else it might have been configured, and to give myself more clues as to things like:

  • Where in AWS Console I could find the relevant resources that this DS points to, and
  • What other databases / tables / columns of data I might find, or be able to interact with.

At some point I:

  • Edited the Access Key ID and Secret Access Key fields, which cleared our the "Configured" value in the UI and replaced it with an empty text field for each
  • Then clicked on the Default region picker.

As soon as I did this, the edits were persisted 💔, and my datasource became completely broken, along with all dashboards powered by this datasource. I never hit Save & Test.

We ended up triggering an incident locally in response to this, as the dashboard which became broken is an important one for our org.

What you expected to happen:

The datasource configuration should NEVER be updated as long as I never hit the Save & Test button

How to reproduce it (as minimally and precisely as possible):

See it reproduced in this video:
https://github.com/user-attachments/assets/7e2e083f-f5d4-4100-b3e7-ce44c327d7b8

Screenshots

See video above

Anything else we need to know?:

Environment:

  • Grafana version: GrafanaCloud Steady
  • Plugin version: Athena 2.17.5
  • OS Grafana is installed on:
  • User OS & Browser: Chrome, MacOS
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions