Commit Graph

57908 Commits

Author SHA1 Message Date
Konrad Lalik 41a2aa41f8
Alerting: Remove rule type switch for modified export mode (#102287) 2025-03-20 15:19:52 +01:00
Bogdan Matei d3832c7f8b
Dynamic Dashboards: Implement new toolbar (#102195) 2025-03-20 15:45:20 +02:00
Alexa V 47b94cf17b
Dashboard: Fix Core Panel Migrations - table panel (#102146)
*add the automigrate logic to the dashboard migrator
* Add unit tests to the dashboard migrator version 24
2025-03-20 07:43:31 -06:00
Felix Dreissig 1e0d7102cc
Docs: Add auth for metrics to hardening page (#102475) 2025-03-20 14:22:54 +01:00
Mustafa Sencer Özcan 8bea901306
Revert "test(unified-storage): Create initial e2e test scenario for unified storage" (#102514) 2025-03-20 13:43:05 +01:00
Juan Cabanas 7b94308c3e
CollapsableSection: Change css properties (#101630) 2025-03-20 09:17:11 -03:00
Oscar Kilhed 0f14bccc68
Dynamic dashboards: Duplicate tabs and rows (#102370)
Duplicate tabs and rows
2025-03-20 12:39:48 +01:00
renovate[bot] bc0c650cf4
Update scenes to v6.5.2 (#102525)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-20 13:22:01 +02:00
Sven Grossmann 5fc6d253f8
Logs: Always keep displayed fields with changed queries (#102493)
* Logs: Always keep displayed fields with changed queries

* Remove unused var
2025-03-20 11:58:00 +01:00
Beverly Buchanan d9ca794b30
Docs: Update service account doc (#102498)
added content from support ticket
2025-03-20 11:37:45 +01:00
Mihai Doarna bf53d278b7
Revert "Team: Include user UID in GetTeamMembers() output" (#102519)
Revert "Team: Include user UID in GetTeamMembers() output (#102373)"

This reverts commit e5b6b7b370.
2025-03-20 12:24:41 +02:00
Mariell Hoversholm 07bfa602f2
App Platform: Pin bleve to fix CVE-2022-31022 (#102513)
This pins Bleve to a soon-to-be v2.5.0 commit.

Fixes CVE-2022-31022. We can unpin when v2.5.0 releases (likely March 25th).
We do not need any new features or similar, though there are some fixes that are nice to receive.

We will **not** backport this fix as we aren't actually vulnerable to anything via CVE-2022-31022; we never use its code, nor does Bleve. The reason we are fixing this is to get Trivy to stop complaining.

Fixes: #97439
2025-03-20 11:19:57 +01:00
Jean-Philippe Quéméner 72c9d0dd28
fix(unified-storage): use new context for background operations (#102518) 2025-03-20 11:15:13 +01:00
Gábor Farkas 30f5445bcd
datasources: querier: single-tenant: explicit permission-check (#102189) 2025-03-20 11:14:53 +01:00
Will Browne 5b67ae1876
Plugins: Remove support for secrets manager plugins (#101467)
* remove secrets manager code

* remove unused struct

* add test toggles back

* rollback golden file changes

* add missing TestMain

* update betterer
2025-03-20 10:00:59 +00:00
Timur Olzhabayev a1a3aa0665
Feat: Make expressions work with plugins that set `alerting:false` but `backend:true` in their `plugin.json` files (#102232)
* Making expressions depend on backend parameter instead of alerting

* Fallback to old behavior just in case we have weird edge cases

* adding render test for the button

* prettier fixes
2025-03-20 10:49:10 +01:00
Bogdan Matei 3ddfa3229a
Dynamic Dashboards: Add repeat responsive items (#102440) 2025-03-20 11:37:27 +02:00
Denis Vodopianov 06545aa770
Chore: Migrate bwplotka/bingo-managed go-swagger with go tools directive (#102434)
* Preparation to migrate go-swagger to go tool

* Replace bingo managed go-swagger with go tool

* rollback bingo managed go-swagger to golang 1.18

* add swagger to the Dockerfile

* update go-swagger version

* Revert "update go-swagger version"

This reverts commit c06008f386.

* update golang.go/x/crypto to v0.31.0

* update workspace
2025-03-20 10:09:00 +01:00
Matthew Jacobson 371ea5cda7
Alerting: Fix loss of TimeInterval location on remote AM apply (#102510)
* Alerting: Fix loss of TimeInterval location on remote AM apply

deepcopy.Copy does not correctly copy PostableUserConfig because it ignores
unexported fields. As a result, TimeInterval locations default to UTC instead
of retaining their original values.

* make update-workspace
2025-03-20 09:54:33 +01:00
a3exodus 7b8e5467bb
Docs: Fix Incorrect LBAC Data Source Reference (#102509) 2025-03-20 08:51:56 +00:00
Yulia Shanyrova cbdf2eecab
Plugins: Update some links in plugin jsons due of mistakes in previous PR (#102214)
* update some links in plugin jsons update backend tests

* fix the test

* fix the test

* Update public/app/plugins/datasource/azuremonitor/plugin.json

Co-authored-by: David Harris <david.harris@grafana.com>

* more docs links added, fix tests

---------

Co-authored-by: David Harris <david.harris@grafana.com>
2025-03-20 09:25:04 +01:00
Fabrizio a858ddc470
Update recommended-practices.md to fix 109's header (#102310)
Minor PR, just to use a `h2` (`##`) header for item 109, as for all other item.
2025-03-20 09:20:14 +01:00
Tania ad5d7e9ad6
Use OpenFeature provider (#102116)
* Migrate pinNavItems to open feature

* Use Boolean method instead of BooleanValue
2025-03-20 08:40:15 +01:00
renovate[bot] 81c32ff023
Update scenes to v6.5.0 (#102473)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-20 08:48:17 +02:00
Leon Sorokin d52c837f09
ValueMappings: Allow omitting From or To in MappingType.RangeToText (#102416) 2025-03-20 02:53:10 +02:00
grafana-pr-automation[bot] efc8756de5
I18n: Download translations from Crowdin (#102504)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-20 02:39:19 +02:00
Jean-Philippe Quéméner 694e4de935
feat(unified-storage): run dual writer in background if possbile (#102492) 2025-03-19 23:27:16 +01:00
Beverly Buchanan 27245622a9
Docs: Edit Google Cloud Monitoring data source (#102411)
* changed content organization and created before you begin section

* Update docs/sources/datasources/google-cloud-monitoring/_index.md

Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>

---------

Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
2025-03-19 17:27:42 -04:00
Jev Forsberg 02187dcb68
Feature: Add releasefinder (#102381)
* baldm0mma/ initial commit for release finder script

* baldm0mma/ check origin branches

* baldm0mma/ restructure a more robust output

* baldm0mma/ add directives

* baldm0mma/ update to more explicit handling of hashes

* baldm0mma/ debug first tag

* baldm0mma/ update logic for initial release

* baldm0mma/ update language

* baldm0mma/ update to show all release branches

* baldm0mma/ update logic to reflect security releases also

* baldm0mma/ add commit info

* baldm0mma/ remove commit messages

* baldm0mma/ add myself as codeowner

* baldm0mma/ handle backports

* baldm0mma/ add upcoming release info

* baldm0mma/ update syntax
2025-03-19 14:45:23 -06:00
Isabel Matwawana a132b12daf
Docs: fix typo in cloud link (#102488)
Fixed link typo
2025-03-19 15:41:51 -04:00
Timur Olzhabayev a29e49f472
Chore: Promoting frontendSandboxMonitorOnly to private preview (#102213)
* Since pluginsFrontendSandbox is private preview we can make frontendSandboxMonitorOnly also private preview

* Running toggle generation command
2025-03-19 20:07:26 +02:00
Timur Olzhabayev 5f0faf2dd6
Chore: Promoting feature toggle pluginsSriChecks GA (#102212)
* Making pluginsSriChecks GA

* make it disabled by default
2025-03-19 19:45:04 +02:00
Gabriel MABILLE 8767a8f9a1
AuthZ: Improve getUserPermissions query (INNER JOIN, UNION ALL) (#102441) 2025-03-19 16:54:32 +01:00
Matheus Macabu 4c59219adb
SecretsManager: Add reststorage logic with validations (#102464)
* SecretsManager: rename keeper + securevalues rest file

* SecretsManager: add rest of xkube helper methods

* SecretsManager: add domain errors to contracts

* SecretsManager: copy over Keeper reststorage from feature branch

* SecretsManager: copy over SecureValue reststorage from feature branch

---------

Co-authored-by: PoorlyDefinedBehaviour <brunotj2015@hotmail.com>
Co-authored-by: Dana Axinte <53751979+dana-axinte@users.noreply.github.com>
Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com>
2025-03-19 16:31:10 +01:00
Matheus Macabu 2ade94bbf7
SecretsManager: Add roles and access control to APIs (#102456) 2025-03-19 16:30:07 +01:00
Victor Marin 616ec9831b
Remove scopes to adhoc conversion code (#101699) 2025-03-19 17:24:21 +02:00
Marco de Abreu ce350df79b
Storage: Add resource version matching in unified storage API (#102417)
Add NotOlderThan support to getHistory

Add support for Exact

Add tests

Refactor tests

Add error test

Co-authored-by: Marco de Abreu <18629099+marcoabreu@users.noreply.github.com>
2025-03-19 16:16:48 +01:00
Mihai Doarna e5b6b7b370
Team: Include user UID in GetTeamMembers() output (#102373)
* include user UID in GetTeamMembers() output

* move user.uid next to the other user fields

* generate openapi specs

* remove new line at EOF

* fix sql select syntax

* fix sql select syntax

* fix sql select syntax

* fix sql select syntax
2025-03-19 16:47:45 +02:00
Andres Martinez Gotor ebddc79780
Stats: Propagate context when listing sandbox plugins (#102207) 2025-03-19 15:29:30 +01:00
Yuri Tseretyan c3f00eb403
Alerting: log body of unexpected response from Mimir (#102382)
log body of unexpected response

Signed-off-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
2025-03-19 10:14:05 -04:00
Tito Lins 42472dbe7e
Alerting: handle mimir BadRequest write errors (#102027) 2025-03-19 14:56:00 +01:00
Ashley Harrison 24391a0277
Internationalisation: Auto markup some translations (#102389)
* auto markup admin

* more automarkup

* betterer results
2025-03-19 13:49:17 +00:00
Josh Hunt ebeef2064e
GrafanaUI: Fix Combobox throwing error with too many items (#102452) 2025-03-19 13:42:59 +00:00
Esteban Beltran 053ee5cb1f
Frontend Sandbox: Use DOMPurify to sanitize innerHTML (#102302) 2025-03-19 15:24:32 +02:00
Peter Štibraný 0566ddbf4d
Speed up truncation in mysql, postgres and sqlite in integration tests. (#102439)
Speed up truncation in sqlite, mysql and postgres integration tests.
2025-03-19 14:16:20 +01:00
Georges Chaudy 4927376f32
unistore: use the same connection string as grafana (#102387) 2025-03-19 13:56:54 +01:00
Matheus Macabu 3aba5cb2b7
SecretsManager: Bootstrap API service (#102444)
Co-authored-by: Dana Axinte <53751979+dana-axinte@users.noreply.github.com>
Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com>
2025-03-19 13:41:29 +01:00
Kyle Brandt 3f2ef07872
SSE: Fix goroutine leak in math operation expression parsing (#102380)
---------

Co-authored-by: Sam Jewell <sam.jewell@grafana.com>
2025-03-19 08:34:49 -04:00
Will Assis 216b6e96a9
fix(unified-storage): update instrumentation_server metric gatherer (#102399)
* update instrumentation_server used by the module server to use prometheus gatherer from wire instead of DefaultRegisterer
2025-03-19 08:15:13 -04:00
kay delaney 4eab2ea9d3
Scenes: Implement drag and drop support for SceneCSSGridLayout (#99386)
* Draft: Move css grid stuff to main

* Scenes: Implement drag and drop support for SceneCSSGridLayout

* Fix some nits

* WIP Refactor

* Added a comment

* Add orchestrator to v2schema and fix error (#100964)

* Add orchestrator to v2schema and fix error

* Display placeholder directly when starting to drag

---------

Co-authored-by: kay delaney <kay@grafana.com>

* Fix merge issue

* Fix panel drag offset and remove console.logs

* Fix small nit

* Fix issue where layout options weren't refreshed on changing layout

* Return empty array from useEditPaneOptions if dashboard body isn't LayoutOrchestrator

* Expect layoutOrchestrator when serializing scene

* Fix tests to expect orchestrator instead of layoutManager

* Fix tests in transformSaveModelSchemaV2ToScene.test.ts

* Fix tests in transformSceneToSaveModelSchemaV2.test.ts

* More test fixes

* fix lint issues

* Small fixes

* default to adding layout orchestrator?

* Empty commit

* delete artifactspage.go

* remove artifactspage.tmpl.html

* betterer

* WIP refactor, not ready for review

* Slightly fix placeholder behavior. still broken though

* Fixed some visual glitches. Still very buggy

* Fix layout bugginess when initiating dragging

* more WIP

* Fix some broken logic

* clean up

* Move LayoutOrchestrator to dashboard state

* More cleanup

* Fix misaligned placeholders after changing layout options or resizing browser

* Fix issue with dragging vs selection

* Fix scroll position jumping when dragging in vertically-oriented grid

* Fix import order errors

* Remove '!' from layoutOrchestrator references

* Add LazyLoader support

* Dynamic Dashboards: Responsive Grid drag and drop minor fixes (#102430)

Changes

---------

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
Co-authored-by: Bogdan Matei <bogdan.matei@grafana.com>
2025-03-19 13:53:58 +02:00