Gábor Farkas
b97e485fe0
mysql: update unit test to be ready for the xorm-removal ( #78064 )
...
* mysql: update unit test to be ready for the xorm-removal
* removed unused code
2023-11-15 09:46:18 +01:00
Ieva
dd54931147
RBAC: remove dashboard ACL logic from dash store and service ( #78130 )
...
remove dashboard ACL logic from dash store and service
2023-11-15 08:25:51 +00:00
William Wernert
1a53a716e9
Annotations: Lift parts of RBAC from xorm store into auth service ( #76967 )
...
* [WIP] Lift RBAC from xorm store
* Cleanup RBAC, fix tests
* Use the scope type map as a map
* Remove dependency on dashboard service
* Make dashboards a map for constant time lookups (useful later)
---
* Lift RBAC tests into a new file to test at service level
* Add necessary access resource structs to xorm store tests
* Move authorization into separate service
* Pass features to searchstore.Builder
* Sort imports
* Code cleanup
* Remove useless scope type check
* Lift permission check into `Authorize()`
* Use clearer language when checking scope types
* Include dashboard permissions in test to ensure they're ignored
* Switch to errutil
* Cleanup sql.Cfg refs
2023-11-14 18:11:01 -05:00
Ryan McKinley
2b1e731c15
K8s/Playlist: Test dual write path ( #77604 )
2023-11-15 00:07:32 +02:00
Misi
19a7cd88b0
Auth: Add SAML scopes to fixed:authentication.config:writer ( #78147 )
...
Add SAML scopes back to fixed authenticationConfigWriterRole
2023-11-14 23:02:52 +02:00
Ryan McKinley
f69fd3726b
FeatureToggles: Add context and and an explicit global check ( #78081 )
2023-11-14 12:50:27 -08:00
Ryan McKinley
c887ef2c9a
K8s: Set version info in response ( #78083 )
...
Co-authored-by: Jeff Levin <jeff@levinology.com >
2023-11-14 12:29:15 -08:00
João Calisto
c506da53f3
Feature Registry: Update toggle configs for admin page visibility ( #78062 )
...
* Feature Registry: Update toggle configs for admin page visibility
* update
* fix rebase
2023-11-14 17:04:54 +00:00
linoman
408dab8c57
IAM: Protect managed service account frontend details page ( #77839 )
...
* Add `isManaged` property to frontend model
* Remove enabled and token buttons for managed SA
* Replace trash icon for lock icon for managed SA
* Block the role picker for managed SA
* Filter SA list usiong the managed filter
* Rename external for managed
* Add only managed filter
* Toggle the enable buttons for managed sa
* Disable add token and delete token buttons
* Remove the edit name button
* Disable the Role picker for managed sa
* Hide the permissions section
* Add managed by row
---------
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com >
2023-11-14 17:52:48 +01:00
Mihai Doarna
6d74746997
Auth: Replace literal http status codes with constants from http pkg ( #78116 )
...
replace literal http status codes with constants from http pkg
2023-11-14 17:07:51 +02:00
Ryan McKinley
a221c1d754
Chore: Remvoe newDBLibrary feature flag ( #78074 )
2023-11-14 06:51:35 -08:00
Jo
580477bf8e
NGAlerting: Use identity.Requester interface instead of SignedInUser ( #76360 )
...
* unfurl SignedInUserAttrs services
* replace signedInUser with Requester
replace signedInUser with requester
* fix tests
* linting
---------
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
2023-11-14 14:47:34 +00:00
Giuseppe Guerra
ab4fc07cc7
Plugins: Add statusSource to partial data response error log ( #78057 )
...
* Plugins: Add statusSource to partial data response error log
* Introduce DefaultStatusSource
* Add StatusSourceFromPluginErrorSource
* Moved StatusSourceFromPluginErrorSource
* Update pkg/services/pluginsintegration/clientmiddleware/logger_middleware.go
2023-11-14 16:27:48 +02:00
Ashley Harrison
e389ffa137
Chore: only show short commit hash in the help menu ( #78038 )
...
only show short commit hash in the help menu
2023-11-14 13:22:46 +00:00
Andres Martinez Gotor
fcc2f01c7e
Chore: Update otel deps ( #78069 )
...
Co-authored-by: Giuseppe Guerra <giuseppe@guerra.in >
Co-authored-by: Giuseppe Guerra <giuseppe.guerra@grafana.com >
2023-11-14 14:14:15 +01:00
Santiago
4a152a0e35
Alerting: Add lifecycle methods to the forked Alertmanager ( #77741 )
...
* Alerting: Add an empty Forked Alertmanager
* Alerting: Add methods for silences to the forked Alertmanager
* check for errors in tests
* make linter happy
* Alerting: Add methods for alerts to the forked Alertmanager
* Alerting: Add methods for receivers to the forked Alertmanager
* Alerting: Add TestTemplate method to the forked Alertmanager
* make linter happy
* separate into both forked AMs
* fix tests
* Alerting: Add lifecycle methods to the forked Alertmanager
2023-11-14 11:17:17 +01:00
Will Browne
26bcfe300f
Plugins: Follow root level dist and siblings when walking file system ( #78042 )
...
* simplify
* add comments
* tidy up
* remove line
* update comment
* fix pfs test
* fix err import
* delete code
2023-11-14 10:31:46 +01:00
Ryan McKinley
ea37a116f7
K8s: expose namespace in frontend_settings ( #78090 )
...
Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com >
2023-11-14 06:34:09 +02:00
Ryan McKinley
1be1432926
K8s: Add subresource to the example apiserver ( #78030 )
2023-11-14 05:51:58 +02:00
Ryan McKinley
a2a6f9a6d8
K8s: Update comments and structure to help a security review ( #77881 )
2023-11-13 12:51:41 -08:00
Ryan McKinley
dec9a07738
Settings: Actually deprecate access to feature flags ( #78073 )
2023-11-13 11:39:01 -08:00
Ryan McKinley
3509a5abb9
FeatureFlags: Cleanup usage of cfg.IsFeatureToggleEnabled ( #78014 )
2023-11-13 07:55:15 -08:00
Marcus Efraimsson
2b146b97b4
Plugins: Remove usage of deprecated folder id ( #78061 )
2023-11-13 16:49:28 +01:00
Gabriel MABILLE
fe8d0e6381
ExtSvcAuth: Refactor external service registry to use ExternalServiceRegistry variables ( #78056 )
...
ExtSvcAuth: Refactor external service registry to use ExternalServiceRegistry
2023-11-13 16:23:11 +01:00
Ryan McKinley
55d61c93d2
K8s: Upgrade to v0.28.3 ( #78033 )
2023-11-13 06:53:24 -08:00
Ryan McKinley
ad44164910
Preferences: Remove SQLX backing store ( #78015 )
2023-11-13 06:22:22 -08:00
Will Browne
4299efbc56
Plugins: Expose PID through proto interface ( #77821 )
...
* expose PID thru interface
* apply PR feedback
* simplify
* add read lock
2023-11-13 14:41:53 +01:00
Fabrizio
edde17741d
Fix trace ID in error message ( #78041 )
2023-11-13 14:31:19 +01:00
Gabriel MABILLE
20a2840046
Plugin: Remove external service on plugin removal ( #77712 )
...
* Plugin: Remove external service on plugin removal
* Add feature flag check in the service registration service
* Initialize map
* Add HasExternalService as suggested
* Commit suggestion
Co-authored-by: linoman <2051016+linoman@users.noreply.github.com >
* Nit on test.
Co-authored-by: linoman <2051016+linoman@users.noreply.github.com >
---------
Co-authored-by: linoman <2051016+linoman@users.noreply.github.com >
2023-11-13 13:18:13 +01:00
Ieva
eca45f6492
Chore: remove gcomOnlyExternalOrgRoleSync feature toggle ( #78001 )
...
remove gcomOnlyExternalOrgRoleSync feature toggle
2023-11-13 09:56:02 +00:00
Gábor Farkas
fe18c63204
mysql: do not import httpClient from core grafana ( #77628 )
...
mysql: do not use core-only exports
2023-11-13 10:25:19 +01:00
ismail simsek
b607a4e0a2
Prometheus: Fix $__rate_interval calculation ( #77234 )
...
* Remove unused param
* simple unit test
* rename
* rename
* add some comments
* Update values
* refactor
* rename
* always calculate rate interval
* fix unit tests
* Fix indentation
* linter fix
* update test
* Fixing issues with the calculation
* new test
* fix $__interval interpolation
* fix test
* add comment
2023-11-13 10:13:07 +01:00
Torkel Ödegaard
4bc322ca1d
DashboardScene: Pass panel id to PanelProps.id ( #77927 )
...
* Panel props id
* Removing panel works
* Update
2023-11-13 09:51:21 +01:00
Gábor Farkas
2d391c1bf5
postgresql: change plugin id ( #77444 )
...
* postgres: change plugin id
* fixed cue file
* codeowners update
* fixed backend test
2023-11-13 08:49:26 +01:00
Ryan McKinley
675e946b40
SQLX: Remove two unreachable services ( #78016 )
2023-11-12 09:29:14 -08:00
Ivana Huckova
8cd8eb7882
Revert "Loki: Add error source to DataQuery ( #77876 )" ( #78006 )
...
This reverts commit 934456dc1c .
2023-11-10 17:03:59 +01:00
Marcus Efraimsson
c7442c0fd2
Instrumentation: Check embedded errors in query data response for plugin metrics/logs status label ( #77613 )
...
Check embedded errors in query data response for plugin metrics/logs status label.
Plugin Request Completed log messages are now logged with info level if status=ok,
otherwise error level.
Fixes #76769
2023-11-10 16:55:01 +01:00
Giuseppe Guerra
7b4bcc86f1
Plugins: Pass OTEL sampling config to plugins ( #76834 )
...
* Pass OTEL sampling config to plugins
* fix capital letters
* Do not pass sampler env vars if sampling is not configured
* Add tests
* PR review feedback
* Simplify tracing env vars logic
* Update test to reflect pkg/infra/tracing behaviour
2023-11-10 14:56:08 +01:00
Sonia Aguilar
68e37c3925
Alerting: Adds the new alertingSimplifiedRouting feature toggle ( #77984 )
...
Adds the new alertingSimplifiedRouting feature toggle for the simplified alert routing
2023-11-10 14:14:39 +01:00
Alexander Zobnin
944593c4d5
Team LBAC: Able to configure default rule ( #77946 )
...
Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com >
2023-11-10 12:31:37 +00:00
Tania
6b4337a842
Nested folders: Write to folders table even if the feature toggle is off ( #77788 )
...
* Update folders table even if the feature toggle is off
* Fix failing test
* Apply review feedback
* Revert test changes
2023-11-10 13:03:00 +01:00
Hugo Kiyodi Oshiro
e754c5a6c6
Plugins: Change managed plugins installation call ( #77120 )
2023-11-10 12:28:36 +01:00
Will Browne
7d2d5fbe89
Plugins: Add referer and user login params to plugin CDN redirect logs ( #77942 )
...
add referer and user
2023-11-10 11:52:06 +01:00
Giuseppe Guerra
da117aea1c
Plugins: Allow disabling angular deprecation UI for specific plugins ( #77026 )
...
* Plugins:Allow disabling angular deprecation UI for specific plugins
* add backend test
* changed test names
* lint
* Removed angular properties from DataSourceDTO
* Update tests
* Move angularDetected and hideAngularDeprecation in angularMeta property
* Fix angular property name in AppPluginConfig
* Fix reference to angularMeta.detected
* Fix hide_angular_deprecation not working for core plugins
* lint
2023-11-10 11:44:54 +01:00
Ivana Huckova
934456dc1c
Loki: Add error source to DataQuery ( #77876 )
...
* Loki: Add error source to DataQuery
* Create middlewares to fix healtcheck test
* Add comment for errors from ReadPrometheusStyleResult
2023-11-10 10:26:56 +01:00
Johannes Przymusinski
641a47c71d
Provisioning: Remove trailing space from log message ( #73124 )
...
Remove trailing space from log message
2023-11-10 07:24:35 +00:00
Ryan McKinley
d410ef3439
K8s: Use grafana executable for standalone api service ( #77904 )
...
Co-authored-by: Dan Cech <dcech@grafana.com >
2023-11-09 16:50:27 -08:00
Andreas Christou
8808de0b45
AzureMonitor: Improve error handling and update tests ( #77967 )
...
* Improve error handling and update tests
* Assert errors are nil
* Refactor away redundant code
2023-11-09 21:13:07 +00:00
Gilles De Mey
323ee7c38c
Alerting: Remove react-enable ( #77955 )
2023-11-09 18:35:03 +01:00
Alexander Weaver
36dba7584d
grpcserver: Extract existing span context from grpc request metadata prior to span creation ( #77833 )
...
Extract existing span context from grpc metadata
2023-11-09 11:25:19 -06:00