Karl Persson
9cad6743f7
[v11.2.x] Authn: No longer hash service account token twice during authentication ( #92639 )
...
Authn: No longer hash service account token twice during authentication (#92598 )
* APIKey: Only decode and hash token once during authentication
* Only update last used every 5 minutes
(cherry picked from commit 56487d37db )
2024-08-29 10:21:09 +02:00
grafana-delivery-bot[bot]
a259af31b1
[v11.2.x] CloudMigrations: Misc cleanup before codefreeze ( #92310 )
...
CloudMigrations: Misc cleanup before codefreeze (#91725 )
* fix retry logic
* slight adjustments
* fix disconnect and connect events
* Update pkg/services/cloudmigration/cloudmigrationimpl/snapshot_mgmt.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
---------
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
(cherry picked from commit eee3a75b8b )
Co-authored-by: Michael Mandrus <41969079+mmandrus@users.noreply.github.com >
2024-08-22 11:21:26 -04:00
grafana-delivery-bot[bot]
811307c46b
[v11.2.x] Identity: remove GetTypedID ( #92256 )
...
Identity: remove GetTypedID (#91745 )
(cherry picked from commit bcfb66b416 )
Co-authored-by: Karl Persson <kalle.persson@grafana.com >
2024-08-22 15:53:59 +02:00
grafana-delivery-bot[bot]
1247fba905
[v11.2.x] QuotaService: refactor to use ReplDB for Get queries ( #92285 )
...
QuotaService: refactor to use ReplDB for Get queries (#91333 )
* Feature (quota service): Use ReplDB for quota service Gets
This adds the replDB to the quota service, as well as some more test helper functions to simplify updating tests. My intent is that the helper functions can be removed when this is fully rolled out (or not) and we're consistently using the ReplDB interface (or not!)
* test updates
(cherry picked from commit 299c142f6a )
Co-authored-by: Kristin Laemmert <mildwonkey@users.noreply.github.com >
2024-08-22 08:55:54 -04:00
grafana-delivery-bot[bot]
278681f173
[v11.2.x] RBAC: Fix an issue with server admins not being able to manage users in orgs that they don't belong to ( #92274 )
...
* RBAC: Fix an issue with server admins not being able to manage users in orgs that they don't belong to (#92024 )
* look at global perms if user is not a part of the target org
* use constant
* update tests
(cherry picked from commit 41ac5b5ae7 )
* fix tests
---------
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
2024-08-22 13:30:50 +03:00
grafana-delivery-bot[bot]
e23f74f1c7
[v11.2.x] Chore: Add dataplaneAggregator feature toggle ( #92252 )
...
Chore: Add dataplaneAggregator feature toggle (#91715 )
(cherry picked from commit 122e291134 )
Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com >
2024-08-21 17:55:31 -04:00
grafana-delivery-bot[bot]
a37d107c58
[v11.2.x] CloudMigration: Removes snapshot and resources when deleting a session ( #92250 )
...
CloudMigration: Removes snapshot and resources when deleting a session (#91548 )
(cherry picked from commit e20c7342a9 )
Co-authored-by: lean.dev <34773040+leandro-deveikis@users.noreply.github.com >
2024-08-21 17:55:03 -04:00
grafana-delivery-bot[bot]
4115a67a42
[v11.2.x] Zanzana: Evaluate dashboard and folder permissions ( #92253 )
...
Zanzana: Evaluate dashboard and folder permissions (#91539 )
* Zanzana: basic folder permissions checks
* Fix managed permissions for teams
* fix sync batch size
* add dashboards actions translations
* migrate folder tree
* migrate dashboard folders
* remove action sets from schema
* Adding more dashboard and folder-related permissions
* refactor
* Correctly translate dashboard permissions in folders
* fix dashboard parent permissions
(cherry picked from commit 1cc438a56c )
Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com >
2024-08-21 17:54:50 -04:00
grafana-delivery-bot[bot]
25c9b9d58e
[v11.2.x] Alerting: Support for optimistic concurrency in priovisioning Tempate API ( #92251 )
...
Alerting: Support for optimistic concurrency in priovisioning Tempate API (#91195 )
* support optimistic concurrency in template service
* update request handler to get version from query parameter
* return not found if a new template is set with version
* update PUT api to set version
* update documentation + for mute timings
---------
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com >
(cherry picked from commit 1108a00668 )
Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com >
2024-08-21 17:54:28 -04:00
grafana-delivery-bot[bot]
f8f30409e0
[v11.2.x] experiment: use read replica for Get and Find Dashboards ( #92246 )
...
experiment: use read replica for Get and Find Dashboards (#91706 )
(cherry picked from commit 54177ca619 )
Co-authored-by: Kristin Laemmert <mildwonkey@users.noreply.github.com >
2024-08-21 17:09:17 -04:00
grafana-delivery-bot[bot]
59476ab8f8
[v11.2.x] Bookmarks: Move building logic to the Frontend ( #91954 )
2024-08-15 15:39:03 +01:00
Todd Treece
b4126d3bce
Chore: Update k8s.io dependencies ( #91692 )
2024-08-08 18:39:44 +03:00
Alexander Zobnin
0e5d7633f7
Access Control: Make it possible to exclude role grants ( #91647 )
2024-08-08 14:11:17 +02:00
Joey Orlando
cb540a28bd
Plugins: add IRM plugin to "Alerts & IRM" left-hand navigation group ( #91423 )
...
add IRM plugin to "Alerts & IRM" left-hand navigation group
2024-08-07 09:44:43 -04:00
Kristin Laemmert
a117b090cf
chore: preallocate slices where we have a good idea of requirements ( #91596 )
...
* chore: preallocate slices where we have a good idea of requirements
* pr feedback
2024-08-07 08:34:52 -04:00
Andre Pereira
d84fd94936
Tempo: Add migration to enable TraceQL streaming for Tempo datasources ( #91340 )
...
* Add migration to enable TraceQL streaming for Tempo datasources
* lint
* Always run migration but exit early if feature flag is disabled
* Require feature toggle OR datasource config to enable streaming
2024-08-06 18:09:06 +01:00
Michael Mandrus
6cd0971dc6
CloudMigration: Show warning message for successfully migrated non-core data sources ( #91545 )
...
* minor performance improvement
* apply a warning to any non-core plugins that successfully migrate
* commit frontend wip while I refactor some stuff
* update api
* repurpose error dialog to be a generic details dialog
* whitespace
* add unit test
* fixes from testing
* fix migration summary
* add comment
* fix localization stuff
* fix backend test
* reduce number of queries to the db
* some PR feedback
* whitespace
2024-08-06 19:35:10 +03:00
Yuri Tseretyan
ee78bb653f
Alerting: Log rule evaluation error in scheduler ( #91585 )
2024-08-06 19:27:02 +03:00
owensmallwood
2387798719
Unified Storage: Propagate traces from the apiserver grpc client ( #91226 )
2024-08-06 09:52:11 -06:00
Jeff Levin
d4916207a0
chore(tracing): add tracing for frontend and db session ( #91509 )
...
This PR adds instrumentation for loading frontend SPA along with select methods in the dashboard service, and cleans up span handling in sqlstore.
---------
Co-authored-by: Dave Henderson <dave.henderson@grafana.com >
2024-08-05 17:17:39 -08:00
Kristin Laemmert
b6de9e9d3c
search v2: pre-allocate dashboardQueryResult slice capacity for performance ( #91536 )
...
* search v2: pre-allocate dashboardQueryResult slice for performance
* use limit parameter for starting slice size
2024-08-05 13:54:57 -04:00
Matthew Jacobson
53cfdf0ef8
Alerting: Remove option to return settings from api/v1/receivers and restrict provisioning action access ( #90861 )
...
* Remove provisioning action access to v1/receivers api
* Separate ListOnly functionality to its own method without decryption
2024-08-05 11:49:23 -04:00
Michael Mandrus
4d23382497
Caching: Handle memcached reconnects ( #91498 )
...
* update library version
* update tls memcached feature toggle
* update to latest version
* updae gomemcache version
2024-08-05 11:21:11 -04:00
AvivGuiser
93aa5a56ad
Alerting: Use stable identifier of a group,contact point,mute timing when export to HCL ( #90917 )
...
---------
Signed-off-by: Aviv Guiser <avivguiser@gmail.com >
2024-08-05 09:56:17 -04:00
Ryan McKinley
a223c46506
APIServer: Make TableConverter part of ResourceInfo ( #91520 )
2024-08-05 15:38:12 +03:00
Matthew Jacobson
a397bca02e
Alerting: Fix panic with nil annotations & Nodata=alerting/ok/keep ( #91506 )
2024-08-02 22:15:57 +03:00
Vardan Torosyan
1747cd1747
[Auth] Enable cloudRBACRoles feature toggle for self-serve ( #91036 )
...
Enable cloudRBACRoles feature toggle for self-serve
2024-08-02 16:47:00 +02:00
Alexander Weaver
72ecde5045
Alerting: Make orgID a direct arg of writer interface ( #91422 )
...
make orgID a direct arg of writer interface
2024-08-02 09:37:28 -05:00
Leonor Oliveira
6f6a06435d
Remove unified_storage_mode reference in the grafana repo ( #91481 )
2024-08-02 15:40:05 +02:00
Claudiu Dragalina-Paraipan
e2435f92f1
[authn]: add GetIDClaims() to Requester ( #91387 )
...
* authn: add GetIDClaims() to Requester
Co-Authored-By: Gabriel MABILLE <gamab@users.noreply.github.com >
* authn: update StaticRequester
Co-Authored-By: Gabriel MABILLE <gamab@users.noreply.github.com >
* update auth/idtest/mock
Co-Authored-By: Gabriel MABILLE <gamab@users.noreply.github.com >
* Fix test
Co-authored-by: Claudiu Dragalina-Paraipan <claudiu.dragalina@grafana.com >
---------
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
Co-authored-by: gamab <gabriel.mabille@grafana.com >
2024-08-02 12:36:02 +03:00
Gabriel MABILLE
8988e04044
RBAC: Add permission registry ( #91247 )
...
* RBAC: Permission registry
* Populate permission registry
* Wire
* conflic_user_cmd
* Update pkg/services/accesscontrol/permreg/permreg_test.go
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
* PR feedback
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
* Remove ToDo, tackle in subsequent PR
---------
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
2024-08-02 09:32:06 +02:00
Nathan Marrs
b63694d75f
XYChart: Promote to generally available ( #91417 )
2024-08-01 16:54:36 -07:00
Alexander Akhmetov
3952f627eb
Alerting: Parse secret fields case-insensitively when creating or updating a contact point ( #90968 )
...
* Alerting: Handle case-insensitive secret fields in contact point settings
2024-08-01 19:03:47 +02:00
William Wernert
a1ee84f757
Alerting: Remove duplicate tracing middleware from prom writer ( #91353 )
...
Remove duplicate tracing middleware from prom writer
2024-08-01 11:57:14 -04:00
Ieva
2e2ddc5c42
Folders: Allow folder editors and admins to create subfolders without any additional permissions ( #91215 )
...
* separate permissions for root level folder creation and subfolder creation
* fix tests
* fix tests
* fix tests
* frontend fix
* Update pkg/api/accesscontrol.go
Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com >
* fix frontend when action sets are disabled
---------
Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com >
2024-08-01 18:20:38 +03:00
Gabriel MABILLE
c76d1e04e8
Authz: Fix on-prem grpc authentication ( #91341 )
...
* Authz: Fix on-prem grpc authentication
Co-authored-by: Claudiu Dragalina-Paraipan <claudiu.dragalina@grafana.com >
* Remove noAuth override
---------
Co-authored-by: Claudiu Dragalina-Paraipan <claudiu.dragalina@grafana.com >
2024-08-01 16:30:13 +03:00
Charandas
a3d3f9a1e4
Revert "Identity: Remove id token from extra info ( #91169 )" ( #91350 )
...
This reverts commit 10170cb839 .
2024-07-31 21:27:46 +03:00
Haris Rozajac
e81fa0e4c5
Explore: Check for RBAC permissions when hitting query history endpoints ( #91156 )
...
* Check for RBAC permissions when hitting query history endpoints; extract checking logic into a middleware
* Fix lint errors
* Fix test
* Use permissions for patch path; rename callback handler
2024-07-31 12:10:52 -06:00
lean.dev
235f223aef
CloudMigrations: Fix typo in trace name ( #91261 )
2024-07-31 10:24:40 -03:00
colin-stuart
057c04ed9d
IDToken: Add current user's DisplayName to the ID token ( #90992 )
...
Set claims.Rest.DisplayName from the IDService
2024-07-31 09:11:37 -04:00
Joao Silva
85d0e17dc4
Bookmarks: Store URLs instead of ids ( #91121 )
2024-07-31 13:56:39 +01:00
Ieva
702fc3477d
RBAC: Fix folder move check when action sets are disabled ( #91200 )
...
fox folder move check when action sets are disabled
2024-07-31 09:49:09 +01:00
Giuseppe Guerra
95f340738c
Angular deprecation: Disable dynamic angular inspector if CheckForPluginUpdates is false ( #91194 )
...
* Angular deprecation: Disable dynamic angular inspector if CheckForPluginUpdates is false
* Add tests
* add type checks for dynamic service
2024-07-31 10:10:12 +02:00
Ryan McKinley
160fe2a3a4
Storage: Remove entity store ( #91233 )
2024-07-31 09:25:39 +03:00
Ryan McKinley
10170cb839
Identity: Remove id token from extra info ( #91169 )
2024-07-31 09:14:13 +03:00
Ryan McKinley
68f1a0619d
Snapshots: Remove deprecated option snapshot_remove_expired ( #91231 )
2024-07-31 08:47:15 +03:00
Nathan Marrs
fc1139e51a
Transformations: Promote format string as generally available ( #91161 )
2024-07-31 05:10:07 +03:00
Nathan Marrs
0423c67495
Transformations: Promote add field from calc stat function cumulative and window calcs as generally available ( #91160 )
2024-07-31 03:30:24 +03:00
Yuri Tseretyan
537f1fb857
Alerting: Fix persisting result fingerprint that is used by recovery threshold ( #91224 )
...
* fix persister to save result fingerprint
* revert change
* fmt
2024-07-30 18:07:13 -04:00
Nihal
9ad9b4989b
Alerting: Include a list of ref_Id and aggregated datasource UIDs to alerts when state reason is NoData ( #88819 )
...
* include a list of ref_Id and datasource UID to alerts when state reason is NoData.
---------
Signed-off-by: Syed Nihal <syed.nihal@nokia.com >
2024-07-30 12:55:59 -04:00