Jo
108202f96c
UsageStats: Separate context and threads for usage stats ( #83963 )
...
* separate context and threads for usage stats
* use constants
* ignore original context
* fix runMetricsFunc
* fix collector registration
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
* change background ctx
* fix test randomness
* Add traces to support bundle collector
* Remove unecessay span
* Add trace to usagestats api
* Close spans
* Mv trace to bundle
* Change span name
* use parent context
* fix runtime declare of stats
* Fix pointer dereference problem on usage stat func
Co-authored-by: Karl Persson <kalle.persson@grafana.com>
Co-authored-by: jguer <joao.guerreiro@grafana.com>
* fix broken support bundle tests by tracer
---------
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
Co-authored-by: gamab <gabriel.mabille@grafana.com>
Co-authored-by: Karl Persson <kalle.persson@grafana.com>
2024-03-11 15:18:42 +01:00
Misi
79577e4929
Auth: Remove oAuthProviders from Social service ( #78732 )
...
* Remove oauthProviders from social svc
* Add EnabledFn to supportbundles.Collector
2023-11-30 09:30:35 +01:00
Will Browne
e855efb13d
Plugins: Move store and plugin dto to pluginsintegration ( #74655 )
...
move store and plugin dto
2023-09-11 13:59:24 +02:00
Serge Zaitsev
8187d8cb66
Chore: capitalise log message for auth packages ( #74332 )
2023-09-04 18:49:47 +02:00
Jo
ba1a8a5634
Auth: Move Support Bundle service to SignedInUser interface ( #72723 )
...
add identity interface for support bundles service
2023-08-03 10:09:55 +02:00
Ieva
d8b66d5c4b
RBAC: remove some IsDisabled
checks ( #69272 )
...
* remove some access contorl IsDisabled() checks
* cleaning up tests
* update tests
* linting
2023-05-31 09:58:57 +01:00
Ieva
4980b64274
RBAC: Remove legacy ac from authorization middleware ( #68898 )
...
remove legacy AC fallback from RBAC middleware, and some unused auth logic
2023-05-24 09:49:42 +01:00
Ieva
ed11c32c1d
Support bundles: fix user collector permissions and format collector output ( #64531 )
...
* fix user collector permissions and format collector output
* lint
2023-03-09 11:43:18 -05:00
Will Browne
94f39e69a3
Plugins: Migrate plugincontext
, adapters
and pluginsettings
to pkg/services/pluginsintegration package ( #64154 )
...
* migrate plugincontext, adapter and pluginsettings
* add to CODEOWNERS
* fix imports
* fix CODEOWNERS
* take pluginsettings
* migrate wire stuff
2023-03-07 11:22:30 -05:00
Jo
af987ae636
SupportBundles: Add bundle encryption based on age ( #62501 )
...
* add bundle encryption based on age
* undo changes to grafana-data
* sort deps
* test bundle creation and encryption
* use whitespace separator
* add support bundle config documentation
* Update docs/sources/troubleshooting/support-bundles/index.md
* Apply suggestions from code review
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
* touch up docs
* extract encrypt
* Update docs/sources/troubleshooting/support-bundles/index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
* Update docs/sources/troubleshooting/support-bundles/index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
---------
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2023-02-24 09:24:44 -06:00
Ieva
229f8b6e6d
Support bundles: small UX improvements ( #63277 )
...
support bundle ux improvements
2023-02-11 08:31:03 +00:00
Ieva
b3f9b62592
Support bundles: improve plugin collector ( #63273 )
...
improve plugin collector
2023-02-10 17:04:34 +00:00
Jo
c70571c536
SupportBundles: Replace feature toggle with enabled ( #63241 )
...
replace feature toggle with enabled
2023-02-10 10:12:04 +01:00
linoman
33de1926fc
SupportBundle: Add count for each support bundle created ( #63125 )
...
* Export `StatsCount` function
* Add new statKV each time a bundle is created
* Export bundle count
---------
Co-authored-by: Jo <joao.guerreiro@grafana.com>
2023-02-09 14:54:21 +01:00
Jo
f9163351fd
Support bundles: Refactor registry into separate service ( #62945 )
...
* add bundle registry service to avoid dependency cycles
* move user support bundle collector to user service
* move usage stat bundle implementation to usage stats
* add info for background service
* fix remaining imports
* whitespace
2023-02-06 17:50:03 +01:00
Serge Zaitsev
7dbd2cd139
Chore: Fix goimports grouping ( #62426 )
...
fix goimports ordering
2023-01-30 09:34:18 +01:00
idafurjes
6c5a573772
Chore: Move ReqContext to contexthandler service ( #62102 )
...
* Chore: Move ReqContext to contexthandler service
* Rename package to contextmodel
* Generate ngalert files
* Remove unused imports
2023-01-27 08:50:36 +01:00
Jo
4bcd3b41ec
Server: Remove unused services ( #62015 )
...
remove unused entries
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2023-01-26 16:13:22 +01:00
Jo
1037ef28a9
SupportBundles: Access control guards ( #61914 )
...
* rename routes and fix access control for support bundles
* AccessControl: Hide menu if not authorized
* AccessControl: Add AC guards for create and delete
* lint
2023-01-23 16:23:20 +00:00
Jo
7a9793ec0e
SupportBundles: Fix collector typos and change defaults ( #61850 )
...
fix collector typos and change defaults
2023-01-20 16:33:29 +00:00
Jo
caae4fd034
SupportBundles: Add config enablement ( #61776 )
...
* wip
* implement role middleware drop
* remove not implement feature
* change grants based on config
* Update pkg/services/supportbundles/supportbundlesimpl/models.go
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2023-01-20 08:59:15 +00:00
Karl Persson
05a683d462
SupportBundles: Fix list response when we don't have any bundles yet ( #61619 )
...
* SupportBundles: Return empty slice instead of nil when there are no
support bundles
2023-01-17 21:04:12 +01:00
Jo
9e097c531d
SupportBundles: Build tars in memory ( #61581 )
...
* build tar in memory
* match tag
2023-01-17 11:39:59 +01:00
Jo
fc0926f8fb
SupportBundles: Recover from Bundler panics gracefully ( #60995 )
...
bundler panics should not crash Grafana
2023-01-05 14:23:35 +01:00
Jo
c74d86ca27
SupportBundles: Move support bundles to services ( #60986 )
...
* move support bundles to services
* update CODEOWNERS
2023-01-04 17:33:18 +01:00