Commit Graph
15548 Commits
Author SHA1 Message Date
Andrej Ocenas eff847e31f Query Library: Move backend to enterprise (#100371) 2025-02-17 08:56:55 +02:00
Ryan McKinleyandRoberto Jimenez Sanchez cfd29c1653 Provisioning: Keep the existing k8s name if it is specified in metadata (#100672)
* keep name

* keep name

* Revert "keep name"

This reverts commit 29f87bcaeb.

* Commit stale go.mod

* Keep name also for sync deletions

---------

Co-authored-by: Roberto Jimenez Sanchez <roberto.jimenez@grafana.com>
2025-02-14 17:06:37 +01:00
Mariell Hoversholm b09104c1a0 Provisioning: Refactor webhook to another interface (#100733) 2025-02-14 15:45:19 +01:00
Mariell Hoversholm 09ee1233cf Provisioning: Support rotating secrets (#100705) 2025-02-14 13:40:43 +01:00
Roberto Jiménez Sánchez bdab859198 [Provisioning] Consolidate job status report in JobProgressRecorder (#100718)
* Log also successful operation

* Consolidate stop logic under TooManyErrors

* Use error for TooManyErrors

* Pass the progress recorder

* Define JobProgressRecorder interface

* Do not expect workers to return status

* Remove scenarios due to pointers

* Use recorder to manage the entire state
2025-02-14 13:29:40 +01:00
Roberto Jiménez Sánchez 0c1af19daa [Provisioning] Pay back some technical debt (#100720)
* Handle pagination in github client

* Add some unit test coverage

* Remove unknown repository

* Remove unknown leftover

* Revert "Add some unit test coverage"

This reverts commit 420c9674d2.

* Revert "Revert "Add some unit test coverage""

This reverts commit f7eca41957.

* Revert unit tests in github package

* Remove S3 case as it's now deprecated
2025-02-14 13:14:16 +01:00
Roberto Jiménez Sánchez e2e93bed67 [Provisioning] Use ProgressRecorder in Export Job (#100703)
* Use progress recorder instead
* Use recorder for folders
* More refactoring
* Move things to resources
* More situations
* Fix more TODOs
* Refactor progress to precalculate summary
* Do not store results
* Fix bug with dashboards error
2025-02-14 11:07:34 +01:00
Mariell Hoversholm 9b7b68195e Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-02-14 07:38:22 +01:00
Will Assis c963032915 search: handle "sharedwithme" use-case in both legacy/US modes (#100286)
* handle "sharedwithme" use-case in both legacy/US modes

* display "Shared with me" as location in dashboard list

* fix missing "TotalHits" prop in mode 2
2025-02-13 15:56:29 -05:00
Stephanie Hingtgen e2081c3e0c K8s: Fix legacy fallback provisioning (#100566) 2025-02-13 21:32:25 +02:00
Ryan McKinley e99c72cacc Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-02-13 21:22:26 +03:00
xavi eeadb7e771 IAM: Log error when malformed json arrays are found in SSO configs (#99896) 2025-02-13 18:02:54 +01:00
linoman 19777ba3e9 Skip flaky test that's breaking the CI pipelines (#100640) 2025-02-13 17:49:21 +01:00
Georges Chaudy b58b5b5768 grpc: improve grpc logger (#100606)
use proper grpc logging
2025-02-13 17:39:33 +01:00
Will Assis 155492c8a5 search: handle "permission" query param in search (#100607)
handle "permission" query param in search
2025-02-13 11:35:53 -05:00
Gabriel MABILLE 90eb499b78 PublicDashboards: Fetch dashboard as Grafana (#100344) 2025-02-13 17:17:14 +01:00
Roberto Jiménez Sánchez 18a938cf03 [Provisioning] Remove S3 Option (#100638)
Remove S3 option
2025-02-13 17:10:10 +01:00
Roberto Jimenez Sanchez cf78a43bd7 Fix bug using unencrypted instead 2025-02-13 16:43:09 +01:00
Mariell Hoversholm 1f36907481 Provisioning: Encrypt webhook secret (#100612)
* feat: encrypt webhook secret

* chore: regen code
2025-02-13 16:27:55 +01:00
Todd Treece 5a74a1a0f6 Metrics: Use correct gatherer in graphite bridge (#100624) 2025-02-13 10:19:22 -05:00
Ryan McKinley e83f764da9 merge main 2025-02-13 18:17:00 +03:00
Ivan Ortega Alba 527fc3bb21 Dashboards: Remove schemaVersion < min_version validation (#100555) 2025-02-13 06:56:16 -08:00
Yuri Tseretyan 9dd75aee32 Alerting: Refactor State Transition (part 2 of n) (#99985)
* split create to create and patch and move to state

patch will be refactored further

* move setNextState to state transition

* move tests

* split tests for patch function
2025-02-13 09:45:16 -05:00
Ryan McKinley ebeb0c67be merge main 2025-02-13 17:17:46 +03:00
Ryan McKinley 06de4c0041 Provisioning: legacy → git → unified (#100481) 2025-02-13 17:13:32 +03:00
Karl Persson a58564a35e Unified Storage: Register metrics (#100600)
use seperate once struct
2025-02-13 14:24:59 +01:00
Karl Persson be60ef0500 IDToken: cache invalidation (#100592)
* Make org role part of id token cache key. This way we will always sign a new token when it changes

* Remove calls to remove id token
2025-02-13 14:10:58 +01:00
Ivana HuckovaandWill Browne a69fac6e16 Mark grpc data source timeouts as cancelled queries (#100573)
* Set up to reproduce issue locally

* add check for deadline exceeded

* Revert "Set up to reproduce issue locally"

This reverts commit d8d9b354ca.

* Trigger build

---------

Co-authored-by: Will Browne <will.browne@grafana.com>
2025-02-13 13:40:53 +01:00
Mariell Hoversholm 45a586c725 feat: regen openapi 2025-02-13 13:25:21 +01:00
Ryan McKinley 3c56e32b0c K8s/Utils: Find title in unstructured content (#100576) 2025-02-13 14:04:03 +03:00
Karl Perssonandgamab 1b1954de28 Authz: add support to use folder api to fetch folder tree (#100038)
* Add FolderStore interface

* Authz: add implementation to use folders api and use it inproc with loopback config

* Add tracing and add rest.Config for talking with folder api using access tokens

* Restructure test to get rid of circular dependencies in tests

* use correct group version kind

---------

Co-authored-by: gamab <gabriel.mabille@grafana.com>
2025-02-13 11:59:59 +01:00
Tito Lins ae9837b793 Alerting: Add alertmanager integration tests (#100106) 2025-02-13 11:36:45 +01:00
Karl Persson 0b4c622df8 AuthN: Refetch user on "ErrUserAlreadyExists" (#100346)
* AuthN: Refetch user on "ErrUserAlreadyExists"
2025-02-13 11:27:57 +01:00
Ryan McKinley 5c8eaa2abf remove unused change 2025-02-13 12:58:25 +03:00
Mariell Hoversholm 158eebe45b Provisioning: Encrypt GitHub token (#100515)
* feat: new secrets impl

* fix: send interval as a number

* feat: use UUIDs for webhook secrets

* Provisioning: Encrypt GitHub token

* refactor: have a wrapping interface

* refactor: simplify decryption

* refactor: move encryption to mutation hook

* feat: use omitempty again

* feat: always decrypt

* chore: update comment to reality
2025-02-13 10:33:26 +01:00
Dominik SüßandMarcus Andersson 8a8e47fcea PluginExtensions: Added support for sharing functions (#98888)
* feat: add generic plugin extension functions

* updated betterer.

* Fixed type issues after sync with main.

* Remved extensions from datasource and panel.

* Added validation for extension function registry.

* Added tests and validation logic for function extensions registry.

* removed prop already existing on base.

* fixed lint error.

---------

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2025-02-13 10:18:55 +01:00
Mariell Hoversholm dbc4031a2a Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-02-13 09:20:15 +01:00
Karl Persson df64dd0762 LibraryElements: Propagate service identity in context when searching for dashboards (#100220)
* Propagate service identity in context when searching for dashboards
2025-02-13 09:17:16 +01:00
Mariell Hoversholm 2dee9ccbbc APIServer: Cancel forked context after handler returns (#100504)
We currently cancel the context when the adapter function is done. We should wait for the entire handler we're wrapping
to finish before cancelling our context.
2025-02-12 23:54:58 -08:00
Ivan Ortega Alba 2b2b19478a Dashboard V0->V1 Migration: Schema migration v41 (#100554) 2025-02-13 08:19:51 +01:00
Ryan McKinley 7051c5389c merge main with sprinkles stats commeted out 2025-02-13 09:53:51 +03:00
Ryan McKinley f2911bdebb Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2025-02-13 09:45:28 +03:00
owensmallwood a34e7e176d Unified Storage: Sprinkles latency metric (#100542)
* add sprinkles latency metric

* fixes failing tests - forgot to register metric only once
2025-02-12 16:22:18 -06:00
Sergej-Vlasov d1dee968c3 Schema V2: Adjust quick_ranges in time settings and remove time_options (#100135)
* adjut quickRanges type in v2

* clean up unused time_options property

* remove deprecated time_options property on time picker

* add schema migration for time_options

* adjust test
2025-02-12 19:23:09 +00:00
Ivan Ortega Alba e60e217a23 Dashboard V0->V1 Migration: Schema migration v37 (#99962) 2025-02-12 21:19:57 +02:00
Ivan Ortega Alba 950726a3c5 Dashboard V0->V1 Migration: Schema migration v38 (#99778) 2025-02-12 19:52:39 +01:00
Alexander Akhmetov 3cc4320aa9 Alerting: Add rule conversion package (#100224) 2025-02-12 19:38:48 +02:00
Roberto Jiménez Sánchez 06a8465bd4 [Provisioning] Record resource changes by group and resource in sync (#100535) 2025-02-12 19:40:48 +03:00
Clarity-89 0f382ea04f Merge branch 'main' into grafana-git-ui-sync 2025-02-12 17:00:53 +02:00
Misi ee0a1391df Auth: Add OrgRole to ID token (#100383)
* Changes for Users and ServiceAccounts

* Align tests
2025-02-12 05:51:29 -08:00