Joan López de la Franca Beltran
81a639bd1b
Secrets: Add user_auth.o_auth_id_token column to migrator ( #72239 )
2023-08-28 15:20:20 +02:00
Torkel Ödegaard
74d453f056
DashboardSchema: Remove old unused legacy props style and timepicker.enable ( #73879 )
...
* DashboardScheam: Remove old unused legacy props style and timepicker.enable
* Update
* fix test
2023-08-28 12:18:17 +02:00
Giuseppe Guerra
4ef98449ff
Plugins: Dynamic angular patterns: Add random offset to GCOM API calls, handle HTTP errors ( #73494 )
...
* Plugins: Dynamic angular patterns: Return error for != 2xx status code
* Add test for status code check
* Plugins: Dynamic angular patterns: Add random skew to periocic GCOM api calls
* Add test for random skew
* Changed randomSkew signature, ensure it is always positive
2023-08-28 11:34:05 +02:00
Jo
1a281ac49d
Experiment: tag UI devices for anon stats ( #73748 )
...
* experiment: attempt to tag only UI devices
* lint frontend
* use await
* use shorthand check
* do not assume build info exists
* do not assume build info exists
* Apply suggestions from code review
Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
---------
Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
2023-08-28 10:49:23 +02:00
Jo
5eed495cce
Chore: Port user services to identity.Requester ( #73851 )
...
* port api key api to signedinuser
* port users to signed in user interface
* fix tests
2023-08-28 10:42:24 +02:00
Karl Persson
01d98114b9
Authz: fix snapshot tests legacy guardian ( #73823 )
...
* Guardian: remove unused dependencies
* API: rewrite tests to use access control guardian
2023-08-28 09:49:10 +02:00
Ezequiel Victorero
a0e8cf8b66
PublicDashboards: Remove query expressions from dashboard model ( #72468 )
2023-08-25 15:35:22 -05:00
Torkel Ödegaard
3ee26df41e
PublicDashboards: Variables refactor ( #73476 )
...
Co-authored-by: Juan Cabanas <juan.cabanas@grafana.com>
Co-authored-by: Ezequiel Victorero <ezequiel.victorero@grafana.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2023-08-25 13:56:02 -05:00
Ieva
ca46a5c1af
Chore: prepare for removing RBACenabled
config option ( #73845 )
...
prepare for removing RBACenabled config option
2023-08-25 17:13:46 +02:00
Gabriel MABILLE
9e52414a91
LDAP: Fix active sync with large quantities of users ( #73834 )
2023-08-25 16:10:48 +02:00
Ieva
6885b3d577
Chore: remove checks for whether RBAC is disabled ( #73812 )
...
* remove checks for whether access control is disabled, as it is always enabled now
* linting
2023-08-25 14:19:58 +01:00
Hugo Kiyodi Oshiro
c69dd41bf9
Plugins: Forward feature toggles to plugins ( #72995 )
2023-08-25 15:01:54 +02:00
Karl Persson
5d14b6ba19
AuthProxy: Fix user retrieval through cache ( #73802 )
...
* AuthProxy: Change auth proxy sync cache key
2023-08-25 13:59:45 +02:00
Kyle Brandt
6d8fc42cdd
Prometheus: (Chore) Remove experimental unshipped prometheusWideSerie… ( #73751 )
2023-08-24 17:47:19 +03:00
Karl Persson
05c386504b
authz: Clean up acl endpoints and dashboard guardian ( #73746 )
...
* RBAC: remove unnessisary guardian construction and update tests
* RBAC: remove usage of guardian in UpdateFolderPermissions and refactor test
* RBAC: remove usage of guardian in update and get permissions for dashboards
2023-08-24 15:37:54 +02:00
George Robinson
bbef000202
Alerting: Add contact point for Grafana OnCall ( #73733 )
...
Add contact point for Grafana OnCall
2023-08-24 10:45:12 +02:00
Piotr Jamróz
b30e0aa5aa
Correlations: Add organization id ( #72258 )
...
* Add org_id to correlations
* Add tests
* Allow org_id to be null in case org_id=0 is used
* Create organization to ensure stable id is generated
* Fix linting
* Ensure backwards compatibility
* Add deprecation information
* Migrate correlations indices
* Default org_id when migrating
* Remove redundant default
* Make PK non-nullable
2023-08-24 09:39:30 +02:00
Karl Persson
31df4db1d3
Dashboards+Folder: remove unused function MakeUserAdmin ( #73635 )
...
* Dashboards+Folder: remove unused function MakeUserAdmin
* Remove dead branch
2023-08-23 12:54:06 +02:00
github-actions[bot]
69267cd28b
Alerting: Update Swagger spec ( #72568 )
...
chore: update alerting swagger spec
Co-authored-by: rwwiv <rwwiv@users.noreply.github.com>
2023-08-22 14:35:48 -04:00
Marcus Efraimsson
040b7d2571
Chore: Add errutils helpers ( #73577 )
...
Add helpers for the errutil package in favor of errutil.NewBase.
2023-08-22 12:52:24 +02:00
Ieva
ec9c35fae5
Chore: clean up access control for data sources ( #73010 )
...
* move DS guardian interfaces to OSS, move allow guardian to OSS
* update codeowner file
2023-08-21 14:26:49 +01:00
Karl Persson
618daf0518
Login: remove login.Service ( #73542 )
2023-08-21 13:15:31 +02:00
Karl Persson
1976ac0695
LDAP: use authn.IdentitySynchronizer to perform user sync ( #73471 )
...
* LDAP: use authn.IdentitySynchronizer to perform sync instaed of login.Service
* use user id as lookup param
2023-08-18 15:36:44 +02:00
Jo
26339f978b
Auth: Move access control API to SignedInUser interface ( #73144 )
...
* move access control api to SignedInUser interface
* remove unused code
* add logic for reading perms from a specific org
* move the specific org logic to org_user.go
* add a comment
---------
Co-authored-by: IevaVasiljeva <ieva.vasiljeva@grafana.com>
2023-08-18 11:42:18 +01:00
Karl Persson
124e0efe1f
Authn: external identity sync ( #73461 )
...
* Authn: Add interface for external identity sync
This interface is implemented by authnimpl.Service and just triggers PostAuthHooks and skipping last seen update by default
* Authn: Add SyncIdentity to fake and add a new mock
2023-08-18 11:11:44 +02:00
Agnès Toulet
878e94ae25
Rendering: Use image for server timeout errors ( #73462 )
2023-08-18 11:50:49 +03:00
George Robinson
7a9a869d86
Alerting: ScreenshotOptions From and To should be optional ( #73325 )
...
This commit updates the screenshot package to make From and To
optional. It also updates the docs for ScreenshotOptions so
this behavior is well documented.
2023-08-18 09:26:51 +01:00
linoman
2e050f25bf
Auth: Allow to auto-assign empty role ( #73326 )
...
Allow to auto-assign empty role
2023-08-17 18:32:58 +02:00
Karl Persson
ef6e1a9460
Hooks: Remove AddLoginHook and RunLogin hooks ( #73227 )
2023-08-17 09:51:45 +02:00
Will Browne
3c50db328d
Plugins: Make Installer responsible for removing plugins from file system ( #73323 )
...
* installer is responsible for removing from file system
* take plugin as arg
* remove resolve step
* return plugin in test
2023-08-16 15:44:20 +02:00
Ricardo Christmann
8ec4c1bdc8
DataSourceProxy: Fix url validation error handling ( #73087 )
...
* DataSourceProxy: Fix url validation error handling
* DataSourceProxy: Add unit test for proxyDatasourceRequest
* DataSourceProxy: Fix lint error
2023-08-16 11:58:41 +02:00
linoman
1c7f89c41b
Auth: Add empty role usage metrics for service and user accounts ( #73108 )
...
* Add tests for service accounts metrics usage
* Add service account store implementation
* Add service account service implementation
* Add tests for org metrics usage
* Add org implementation
* Add service implementation
2023-08-16 10:56:47 +02:00
Will Browne
75b0788377
Plugins: Remove registry dependency from process manager ( #73241 )
...
simplify
2023-08-16 10:46:00 +02:00
Dmitry Filimonov
d935e6ff57
Navigation: Remove "preview" from Pyroscope Profiles nav item ( #73070 )
...
* Pyroscope: Mark profiles as GA (removes "preview")
* update
2023-08-16 08:38:26 +00:00
Misi
d7166f5f96
RBAC: Remove unused scope from alert.instances:read fixed role ( #73268 )
...
Fix alert.instances:read scope for fixed role
2023-08-16 09:55:49 +02:00
Yuri Tseretyan
938e26b59f
Alerting: Add new metrics and tracings to state manager and scheduler ( #71398 )
...
* add metrics and tracing to state manager
* propagate tracer to state manager
* add scheduler metrics
* fix backtesting
* add test for state metrics
* remove StateUpdateCount
* update docs
* metrics can be null
* add tracer to new tests
2023-08-16 09:04:18 +02:00
Yuri Tseretyan
90e3f516ff
Alerting: Update Discord settings to treat 'url' as a secure setting ( #69588 )
...
* make discord url secure
* support migrating unsecure settings to secure settings
* Update public/app/features/alerting/unified/utils/receiver-form.ts
Co-authored-by: William Wernert <william.wernert@grafana.com>
---------
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
Co-authored-by: William Wernert <william.wernert@grafana.com>
2023-08-16 09:03:56 +02:00
Yuri Tseretyan
0717ec11d6
Alerting: Update state manager to change all current states in the case when Error\NoData is executed as Ok\Nomal ( #68142 )
2023-08-15 10:27:15 -04:00
Ivana Huckova
6880ab687c
Elasticsearch: Enable running of queries trough data source backend ( #73222 )
...
Elasticsearch: Enable enableElasticsearchBackendQuerying feature toggle by default
2023-08-14 17:05:08 +02:00
Karl Persson
16d24a8429
RBAC: remove LoadPermissionsMiddleware ( #73228 )
...
* PubDash: remove LoadPermissionMiddleware from tests
* RBAC: Remove unused LoadPermission middleware
2023-08-14 14:07:09 +02:00
Dan Cech
dd97038b00
Slug: Combine various slugify fixes for special character handling ( #73164 )
...
* combine various slugify fixes for special character handling
* a couple more test cases
* update more tests
* goimports
2023-08-10 16:12:50 -04:00
Jo
89c7116720
Auth: Move star service to identity interface ( #73114 )
...
* move star service to identity interface
* Update pkg/services/auth/identity/requester.go
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
* Update pkg/services/contexthandler/model/model.go
---------
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2023-08-10 17:17:27 +02:00
Will Browne
c5e9a82ccb
Plugins: Do not fail bootstrap stage if single decorate step fails ( #73147 )
...
* don't fail all if decorate step fails
* fix casing
* include err too
* cover pluginsintegration too
2023-08-10 14:46:38 +02:00
Jo
67de18ff06
Auth: Move Service Account service to SignedInUser Interface ( #73142 )
...
* move service account service to identity interface
* Update pkg/services/auth/identity/requester.go
2023-08-10 14:20:58 +02:00
Will Browne
d29f4a8f76
Plugins: Add context to StaticRouteResolver and ErrorResolver interfaces ( #73121 )
...
* add ctx
* fix tests
2023-08-10 10:32:12 +02:00
Jean-Philippe Quéméner
2266e09f94
Alerting: optimize rules with multiple loki range queries ( #73103 )
2023-08-09 19:00:51 +02:00
Will Browne
72da44db0e
Plugins: Add validation stage to plugin loader pipeline ( #73053 )
...
* first pass
* change validation signature
* err tracking
* fix
* undo golden
* 1 more
* fix
* adjust doc
* add test helper
* fix linter
2023-08-09 18:25:28 +02:00
Yuri Tseretyan
69c8200fc9
Alerting: Add more tests for state manager ProcessEvalResults ( #73019 )
...
Co-authored-by: Matthew Jacobson <matthew.jacobson@grafana.com>
2023-08-09 12:21:12 -04:00
Michael Mandrus
779e0fe311
Feature Toggles: Create API for updating feature toggle state from the feature toggle admin page ( #73022 )
...
* create roles for writing feature toggles
* create update endpoint / handler
* api changes
* add feature toggle validations
* hide toggles based on their state
* make FlagFeatureToggle read only
* add username log
* add username string
* refactor for better readability
* refactor unit tests so we can do more validations
* some skeletoning for the set tests
* write unit tests for updater
* break helper functions out
* update sample ini to match defaults
* add more logic to ReadOnly label
* add user documentation
* fix lint issue
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: J Stickler <julie.stickler@grafana.com>
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: J Stickler <julie.stickler@grafana.com>
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: J Stickler <julie.stickler@grafana.com>
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: J Stickler <julie.stickler@grafana.com>
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: J Stickler <julie.stickler@grafana.com>
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: J Stickler <julie.stickler@grafana.com>
---------
Co-authored-by: IbrahimCSAE <ibrahim.mdev@gmail.com>
Co-authored-by: J Stickler <julie.stickler@grafana.com>
2023-08-09 11:32:28 -04:00
Karl Persson
e53e22ef2a
Contexthandler: Remove code that is no longer used ( #73101 )
...
* Contexthandler: remove dead code
* Contexthandler: Add tests
* Update pkg/tests/api/alerting/api_alertmanager_test.go
Co-authored-by: Jo <joao.guerreiro@grafana.com>
---------
Co-authored-by: Jo <joao.guerreiro@grafana.com>
2023-08-09 15:17:59 +02:00