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] and rwwiv
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 and IevaVasiljeva
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
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 and Ieva
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 and Matthew Jacobson
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
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 and Jo
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
Jo and Ieva
5d8e6aa162
Auth: Org Invite and Team API SignedInUser interfacing ( #73085 )
...
* fix ngalert Evaluate sig change
* interface for teams and org invites
* Update pkg/api/org_invite.go
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
---------
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
2023-08-09 12:33:35 +02:00
Sven Grossmann
1343c74362
Logs: Disable query splitting due to conflicts with transformations ( #73086 )
...
* disable query splitting for now
* change stage of `lokiQuerySplitting`
2023-08-09 13:21:38 +03:00
Jo
97ba611e4c
Chore: Fix ngalert Evaluate signature change ( #73084 )
...
fix ngalert Evaluate sig change
2023-08-09 11:27:14 +02:00
Jo and Ieva
bd1a856d33
Auth: Add SignedIn user interface NamespacedID ( #72944 )
...
* wip
* scope active user to 1 org
* remove TODOs
* add render auth namespace
* import cycle fix
* make condition more readable
* convert Evaluate to user Requester
* only use active OrgID for SearchUserPermissions
* add cache key to interface definition
* change final SignedInUsers to interface
* fix api key managed roles fetch
* fix anon auth id parsing
* Update pkg/services/accesscontrol/acimpl/accesscontrol.go
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
---------
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
2023-08-09 09:35:50 +02:00
Karl Persson
144e4887ee
Auth: Use authn.Service for all tests ( #72921 )
...
* Dashboards: Fix tests when authn broker is enabled.
StarService was not configured for tests, the call was guarded by !c.IsSignedIn
* Change default to be anon user to match expectations from tests
* OAuth: rewrite tests to work with authn.Service
* Setup template renderer by default
* Extract cookie options from cfg instead of relying on global variables
* Fix test to work with authn service
* Middleware: rewrite auth tests
* Remvoe session cookie if we cannot refresh access token
2023-08-09 08:54:52 +02:00
Yuri Tseretyan
6b4a9d73d7
Alerting: Export contact points to check access control action instead legacy role ( #71990 )
...
* introduce a new action "alert.provisioning.secrets:read" and role "fixed:alerting.provisioning.secrets:reader"
* update alerting API authorization layer to let the user read provisioning with the new action
* let new action use decrypt flag
* add action and role to docs
2023-08-08 19:29:34 +03:00
Jean-Philippe Quéméner
2c6cf66741
Alerting: Optimize external Loki queries ( #73014 )
2023-08-08 15:13:41 +02:00
Sarah Zinger
deeb1d85f8
Config: making [aws][external_id] part of env ( #72062 )
...
* Config: making [aws][external_id] part of env
* Fix go.sum
* Add a test
2023-08-04 16:06:01 -04:00