42732539ed
TestData: Introduce schema types ( #62130 )
...
* schematize data query
* add the stuff you dingus
* feat(testdatasource): add scenario to generated types
* use generated testdata query in frontend
* update code owners
* Add path exception for testdata datasource
* use specific numeric data types
* fix test
* fix e2e smoketest
* add test data query type
* use test data query type
* fix betterer
* Fix typo
* move to experimental
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com >
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com >
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
Co-authored-by: sam boyer <sdboyer@grafana.com >
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com >
2023-01-26 15:31:34 +00:00
Will Browne
eb1fed7929
Plugins: Add plugin resource tests ( #62014 )
...
* remove plugin context from response
* remove integration test indicator
2023-01-25 10:45:52 +00:00
Will Browne
958eea2f78
Plugins: Add backend target to instrumentation ( #61980 )
...
* add target
* fix test
2023-01-24 16:18:34 +01:00
Will Browne
59ef144e9e
Plugins: Add file permission error check when attempting to verify plugin signature ( #61860 )
...
add permission err check
2023-01-23 12:01:10 +01:00
Will Browne
c54aa18cd8
Plugins: Add tailored interface for plugins licensing needs ( #61045 )
...
* tailored licensing service
* appease linter
* fix
* retrigger
2023-01-18 18:02:54 +01:00
Will Browne and Jack Westbrook
9aed364898
Plugins: Fix plugin query help markdown ( #60485 )
...
* refactor(pluginhelp): rewrite as functional component with useAsync
* mimic old behaviour
* feat(pluginhelp): display message if backend returned an empty string
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com >
2023-01-03 14:20:27 +01:00
Will Browne
48b33ab521
Plugins: Unsigned chromium file should not invalidate signature for Renderer plugin ( #59104 )
...
* Plugins: Unsigned chromium file should not invalidate signature for Renderer plugin
* fix test
* re-work solution
2022-12-19 12:46:27 +01:00
Will Browne
76233f9997
Plugins: Unexport PluginDir field from PluginDTO ( #59190 )
...
* unexport pluginDir from dto
* more err checks
* tidy
* fix tests
* fix dboard file tests
* fix import
* fix tests
* apply PR feedback
* combine interfaces
* fix logs and clean up test
* filepath clean
* use fs.File
* rm explicit type
2022-12-02 13:46:55 +01:00
Will Browne
0fca3cf9dd
Datasources: Use context logger in cache service ( #59547 )
2022-11-30 14:25:04 +01:00
Will Browne
8a09fd3257
Plugins: Fix app child config func typo ( #59386 )
...
fix func typo
2022-11-28 13:43:14 +01:00
Will Browne
09e8cff06e
Plugins: Make "README" the default markdown request param ( #58264 )
...
* Plugins: Make README the default markdown request param
* undo devdboard changes
* fix missing prefix
* rm newline
* re-add space UFFFFF
2022-11-07 11:16:17 +01:00
Will Browne
9f77bd4728
Plugins: Use public store instead of internal registry ( #57631 )
...
* Plugins: Use public store instead of internal registry
* update comments
* fix import
* fix test
2022-10-27 18:44:28 +02:00
Will Browne
1038ac7308
DataSources: Remove unused cfg from core Grafana data source ( #56188 )
...
* remove unused cfg from grafana ds
* fix test
2022-10-04 06:32:25 -04:00
Will Browne
4087ad413f
re-use fake trace + feature toggles ( #56186 )
2022-10-04 10:15:10 +02:00
Will Browne
d0d8544ded
Plugins: Create single point of entry for adding / removing plugins ( #55463 )
...
* split out plugin manager
* remove whitespace
* fix tests
* split up tests
* updating naming conventions
* simplify manager
* tidy
* explorations
* fix build
* tidy
* fix tests
* add logger helper
* pass the tests
* tidying
* fix tests
* tidy and re-add test
* store depends on loader
* enrich tests
* fix test
* undo gomod changes
2022-09-23 14:27:01 +02:00
Will Browne and Marcus Andersson
b25ea75bac
Plugins: Add secure JSON fields to plugin setting DTO ( #55313 )
...
* add secure JSON fields to plugin setting DTO
* add nil pointer fix
* adding secureJsonFields to the plugin meta.
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com >
2022-09-21 12:20:11 +02:00
Will Browne
cd7a464f7e
Plugins: Ensure plugin uninstall success for "pre-installed" community plugins ( #55322 )
...
* track pre-installed external plugins in store
* fix tests
2022-09-19 12:14:30 +02:00
Will Browne and Marcus Efraimsson
29327cbba2
Plugins: Use error plane for api/ds/query ( #54750 )
...
* plugin client returns error base
* fix api test
* add plugin client test
* add fallback err
* fix linting
* wip
* replace bad query
* template is an error
* failing test of templated error
* add one test passing
* fix failing test
* move test
* rename ErrBadQuery to ErrQueryValidationFailure
* tidy diff
* Change to one error per specific error kind
* last err + fix test
* fix imports
* more tests
* keep req vars together
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
2022-09-14 18:19:57 +02:00
Will Browne
0571d98bba
[WIP] Plugins: Introduce Plugins specific config ( #54854 )
2022-09-14 14:35:35 +01:00
Will Browne
15756ecf86
remove unused cfg ( #54770 )
2022-09-06 08:59:28 -04:00
Will Browne
ecdcafb258
manager exposes renderer + secrets manager ( #54629 )
2022-09-02 14:20:10 +02:00
Will Browne
43987e7f8c
Plugins: Fix plugin registered startup log line ( #54634 )
...
* fix plugin registered log
* remove stale test
2022-09-02 14:01:52 +02:00
Will Browne
166b981019
ensure process manager is background service ( #54475 )
2022-08-30 13:09:52 -04:00
Will Browne
4a707e2a88
Plugins: Split plugin manager into smaller components ( #54384 )
...
* split out plugin manager
* remove whitespace
* fix tests
* split up tests
* updating naming conventions
* simplify manager
* tidy
* add more fakes
* testing time
* add query verif to int test
* renaming
* add process tests
* tidy up manager tests
* add extra case to int test
* add more coverage to store and process tests
* remove comment
* fix capatilization
* init on provide
* remove addfromsource from API
2022-08-30 17:30:43 +02:00
Will Browne
26dfdd5af3
Plugins: Refactor plugin download/installation ( #43046 )
...
* installer -> repo
* add semver format checking
* add plugin callbacks in test
* remove newline
* post install only scans new directories
* remove unused stuff
* everything in own package
* add missing cli params
* make grafana version part of the API
* resolve conflicts
* tidy up logger
* fix cli and tidy log statements
* rename log package
* update struct name
* fix linter issue
* fs -> filestore
* reorder imports
* alias import
* fix test
* fix test
* inline var
* revert jsonc file
* make repo dep of manager
* actually inject the thing
* accept all args for compatability checks
* accept compat from store
* pass os + arch vals
* don't inject fs
* tidy up
* tidy up
* merge with main and tidy fs storage
* fix test
* fix packages
* fix comment + field name
* update fs naming
* fixed wire
* remove unused func
* fix mocks
* fix storage test
* renaming
* fix log line
* fix test
* re-order field
* tidying
* add test for update with same version
* fix wire for CLI
* remove use of ioutil
* don't pass field
* small tidy
* ignore code scanning warn
* fix testdata link
* update lgtm code
2022-08-23 11:50:50 +02:00
Will Browne
eb4266a85e
Plugins: Interpolate plugin type as part of plugin ID schema ( #54030 )
...
* do it
* undo
2022-08-23 05:14:23 -04:00
Will Browne
46b7ca12e1
add missing check for root URLs length ( #53239 )
2022-08-03 17:13:45 +02:00
Will Browne
5523c00b01
check not empty root urls before setting field ( #53135 )
2022-08-03 15:25:59 +02:00
Will Browne
6d066a7aa8
Plugins: Add validation for plugin manifest ( #52787 )
...
* add validation for plugin manifest
* no more semver checking
* undo go.mod changes
* undo go.mod changes
* only validate v2 fields where necessary
* remove manifest version field check
2022-07-27 12:56:52 +02:00
Will Browne
843ff932b7
Plugins: Add signature wildcard globbing for dedicated private plugin type ( #52163 )
...
* it's glob time
* add more tests
* fix warn log
* support new sig type
2022-07-22 10:48:16 +02:00
Will Browne
5d052be6ff
Plugins: Always validate root URL if specified in signature manfiest ( #52332 )
...
* always validate root URL if specified in signature
* tidy imports
2022-07-15 17:42:20 +02:00
Will Browne
b32ad993c5
Plugins: Validate root URLs when signing private plugins via grafana-toolkit ( #51968 )
...
* validate URLs
* apply PR review feedback
* fix err msg
2022-07-12 05:51:16 -04:00
Will Browne
40dff288cd
Plugins: Register management endpoints only when external managed is also false ( #51802 )
...
* Only define plugin install endpoints when catalog enabled
* add external check
2022-07-06 16:22:59 +02:00
Will Browne
ba9fc10a74
Only define plugin install endpoints when catalog enabled ( #51788 )
2022-07-06 05:13:20 -04:00
Will Browne
0b40c8e51e
Plugins: Add missing asserts for Plugin Errors field ( #51702 )
...
* make sure to check plugin errors
* remove unused test
2022-07-04 11:03:50 +00:00
Will Browne
8da9b4f2b5
add missing return ( #50667 )
2022-06-13 13:56:24 +02:00
Will Browne
f7cce28cdf
Plugins: Separate manager read/write components ( #50313 )
...
* separate manager read/write
* guarantee consistency in test
2022-06-07 17:51:00 +02:00
Will Browne
7536647ab6
Plugins: Introduce Plugin Registry ( #47200 )
...
* introduce registry write/read separation
* internal + external registries
* fix tests
* fixup
* rename
* move interfaces
* back to plugins.Store
* fix registry name
* remove context.TODOs
* remove some ctx for now
* tidy
* remove dupe logic
* update naming
* move from manager.go to store
* amend logger name
* new store writer svc
* restrict changes
* more simplifying
* move interfaces around
* remove unused
* fix linter
* tidy
* add registry test
* fix tests
* revert testdata changes
* revert testdata changes #1
* revert testdata changes #2
* revert testdata changes #3
* revert testdata changes #4
* revert testdata changes #5
* revert testdata changes
* fixup testdata
* remove unused log
* update naming in test
* adjust ctx in test
2022-06-03 13:06:27 +02:00
Will Browne
abfc711c53
Plugins: Remove deprecated /api/tsdb/query metrics endpoint ( #49916 )
...
* remove /api/tsdb/query
* revert changes to alert rules
* regenerate spec based on 9.0.x
2022-06-01 13:05:15 +02:00
Will Browne
1c659814b5
regenerate swagger spec ( #49938 )
2022-05-31 18:15:43 +02:00
Will Browne
4fae0f49d7
tidy up ( #49720 )
2022-05-30 09:54:28 +02:00
Will Browne
635fa4ab0f
Alerting: Validate alert notification UID length ( #45546 )
...
* validate alert notification UID length
* simplify-ish
* remove unused field
* whoopsie
* delete newline
* remove check
* apply feedback
2022-05-24 17:02:47 +02:00
Will Browne and Marcus Efraimsson
f135a5c8a4
Plugins: Refactor plugin resource call with and without data source ( #48754 )
...
* refactor plugin resource call with/without ds
* check err
* fix imports
* only validate req on ds path
* Update warn log
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
2022-05-06 10:58:02 +02:00
Will Browne and Christopher Moyer
4ecd57f49c
Plugins: Introduce HTTP 207 Multi Status response to api/ds/query ( #48550 )
...
* feature toggles
* return HTTP 207 from ds/query
* add ft check
* add API test
* add 207 check for qr
* change to OR
* revert check
* add explicit toggle check for cloudwatch
* remove unused import
* remove from defaults.ini
* add status codes to md and update swagger
* new fangled http api tests pattern
* update swagger
* Update docs/sources/http_api/data_source.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
* add missing word and reformat
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
2022-05-03 18:02:20 +02:00
Will Browne
c8a71a2f91
Plugins: Ensure catching all appropriate 4xx api/ds/query scenarios ( #47565 )
...
* catch ds 404s
* catch plugin errs
* go step back
2022-04-29 12:08:40 +02:00
Will Browne
f3743bb652
update latest.json for 8.5.0 ( #48065 )
2022-04-21 16:49:32 +02:00
Will Browne
aef5b29173
Plugins: Fix Default Nav URL for dashboard includes ( #47143 )
...
* Plugins: Fix Default Nav URL for dashboard includes
* update nav links
* PR comments
2022-04-06 10:50:39 +02:00
Will Browne
f3c1448b57
Analytics: Enable grafana and plugin update checks to be operated independently ( #46352 )
...
* add separate cfg for controlling plugin update checks
* https
* add specific version note to docs
* pr feedback
* fixup
2022-04-06 10:50:21 +02:00
Will Browne and Marcus Efraimsson
572ca553b6
Plugins: Add deprecation notice for /api/tsdb/query endpoint ( #45238 )
...
* add deprecation notice for /api/tsdb/query
* fix linking
* regenerate after gen-go
* add newline
* add API docs for ds/query
* regenerate spec
* pr feedback
* add helpful tip
* make sub heading
* add more data
* update spec
* update wording
* mention both from/to
* add suggestions
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
* docs feedback
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
2022-03-30 17:46:06 +02:00
Will Browne
56e9c24f08
Plugins: Include decommissioned plugins when ignoring plugins during re-loading ( #46958 )
2022-03-30 15:05:12 +02:00
Will Browne
23dde457ef
Plugins: Don't start runner ticker for Core plugins ( #46964 )
...
* Plugins: Don't start runner ticker for Core plugins
* add test
* correct start check in test
2022-03-30 14:48:49 +02:00
Will Browne
42533dc973
Plugins: split manager.go into areas of responsibility ( #46957 )
2022-03-30 12:46:31 +02:00
Will Browne
5e18293f88
Plugins: Make plugin loading from file system deterministic ( #46842 )
...
* Plugins: Make plugin loading from file system deterministic
* fix test name
* flip assertion arg order
2022-03-23 11:58:00 +01:00
Will Browne
bda3f860a8
Plugins: Add plugin settings DTO ( #46283 )
...
* add clearer service layer
* re-order frontend settings for clarity
* fix fetch fail
* fix API response
* fix mockstore
* in -> where
2022-03-18 20:49:13 +01:00
Will Browne
6a8cbd8663
Plugins: Plugin settings refactor ( #46246 )
...
* remove bus and direct use of sqlStore
* add decryption to interface
* return nil
* rename field
* re-order fields
* rename file
2022-03-04 17:09:50 +01:00
Will Browne
7694b78456
mv and refactor ( #46242 )
2022-03-04 15:26:35 +01:00
Will Browne
b54b438a24
Plugins: Refactor plugin settings service ( #45967 )
...
* tests passing
* rename and rejig
* move interface to package and rename to Store
* new package
* add import alias
2022-03-03 11:39:15 +01:00
Will Browne
e152ae4cf1
remove unused dashboard service dependency ( #45920 )
2022-02-28 12:28:19 +01:00
Will Browne
4e23b06b40
remove old fields and expose ports ( #45626 )
2022-02-21 16:52:38 +01:00
Will Browne
a2b391912a
Plugins: Add ability to enable debug logging per plugin ( #45481 ) ( #45485 )
...
* use plugin ID in logger name
* retrigger
(cherry picked from commit bd0ff79e28 )
2022-02-16 18:22:10 +01:00
Will Browne
fd5e968bc1
test ( #45240 )
2022-02-10 15:23:08 +01:00
Will Browne
3fbe4801b7
Plugins: Update collect metrics handler to latest signature ( #45166 )
...
* use updated collect metrics handler
* use proto helper
2022-02-09 17:36:53 +01:00
Will Browne
f691902949
use correct version ( #45076 )
2022-02-08 15:59:49 +01:00
Will Browne
fc42dfe396
Auth: Guarantee consistency of signed SigV4 headers ( #45054 )
...
* use latest sigv4 changes
* update configuration docs
* lint
* reformat lint ignore
* specific version for docs
2022-02-08 14:48:17 +01:00
Will Browne
88ea9aef8d
remove unused config ( #45056 )
2022-02-08 12:42:14 +01:00
Will Browne
126ed461b1
remove grafana specific config from package ( #44866 )
2022-02-04 18:14:53 +01:00
Will Browne
76603b93d6
Plugins: Refactor Grafana and Plugin version update checkers ( #44529 )
...
* refactor
* rework plugin update checking
* make smarter
* simplify
* fix linter issue
* make use of mutex
* apply feedback to simplify
* format imports
* fix tests
2022-01-31 16:06:16 +01:00
Will Browne and Marcus Efraimsson
bf8694e709
Plugins: Amend plugins loader log statements ( #44652 )
...
* adjust log statements
* Update pkg/plugins/manager/loader/loader.go
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
* add errs to logs
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
2022-01-31 14:24:51 +00:00
Will Browne
b5dd4842d0
Plugins: Make manager more easily composable ( #44467 )
...
* make more easily composable
* fix build
2022-01-27 18:06:38 +01:00
Will Browne
124bf413a2
make plugin loading for nested plugins more deterministic ( #44330 )
2022-01-25 16:05:12 +01:00
Will Browne
da98ebdcdf
Plugins: Remove old code related to Core plugin installs ( #44311 )
...
* remove old code
* remove even more
* skip flaky test
2022-01-21 13:38:04 +01:00
Will Browne
3cb0fb3ddc
fix and add test ( #44286 )
2022-01-21 11:00:20 +01:00
Will Browne
7fbc7d019a
Plugins: Core plugins register via backend factory provider ( #43171 )
...
* refactoring store interface and init flow
* fix import
* fix linter
* refactor resource calling
* load with class
* re-order args
* fix tests
* fix linter
* remove old creator
* add custom config struct
* fix some tests
* cleanup
* fix
* tackle plugins
* fix linter
* refactor and fix test
* add connect failure error
* add fix for azure, cloud monitoring and test data
* restructure
* remove unused err
* add fake tracer for test
* fix grafana ds plugin
2022-01-20 18:16:22 +01:00
Will Browne
a65ce992c1
fix delete plugin dashboard ( #44055 )
2022-01-17 10:33:42 +01:00
Will Browne
7694fff0ef
[WIP] Plugins: Refactoring backend initialization flow ( #42247 )
...
* refactoring store interface and init flow
* fix import
* fix linter
* refactor resource calling
* load with class
* re-order args
* fix tests
* fix linter
* remove old creator
* add custom config struct
* fix some tests
* cleanup
* fix linter
* add connect failure error
* remove unused err
* convert test over
2022-01-14 13:30:39 +01:00
Will Browne
e4ba5f17dd
add core plugins thru store ( #43085 )
2021-12-14 15:22:40 +01:00
Will Browne
155487bfb0
Plugins: Add typed models for frontend settings data sources and panels ( #42062 )
...
* add model for data source
* add model for panels
* add omitempty
* make consistent with main
* dont emit bools
* resolve conflicts
* remove file
* remove file
* update field name
* always pass jsonData
* minify the changes
* remove dupe line
2021-12-14 11:16:13 +01:00
Will Browne
6c4555265a
Plugins: Update client to use SDK resource contract ( #42888 )
...
* client uses sdk resource handler
* apply pr feedback
2021-12-14 11:15:49 +01:00
Will Browne
fb05f253d4
update release notes ( #42848 )
2021-12-07 19:24:45 +02:00
Will Browne
9c9e79da4f
only preload app plugins ( #42434 )
2021-11-29 18:26:04 +01:00
Will Browne
e440796cb3
only load CSV when data exists ( #42441 )
2021-11-29 15:21:18 +01:00
Will Browne
0921037f32
Plugins: Move logs from globals to fields ( #42141 )
...
* move logs from globals to fields
* fix test
2021-11-23 17:09:52 +01:00
Will Browne
96b1776856
Chore: Fix pass context for SetAlertStateCommand ( #42135 )
...
* fix pass ctx for SetAlertStateCommand
* fix integration test
2021-11-23 16:40:09 +01:00
Will Browne
4fa7fd2c75
add unsupported renderer message to catalog ( #41898 )
2021-11-19 08:47:28 +00:00
Will Browne
fb2436af18
fix stream handler funcs ( #41800 )
2021-11-17 13:33:00 +02:00
Will Browne
2e3e7a7e55
Plugins: Plugin Store API returns DTO model ( #41340 )
...
* toying around
* fix refs
* remove unused fields
* go further
* add context
* ensure streaming handler is set
2021-11-17 12:04:22 +01:00
Will Browne and Marcus Efraimsson
8ea75c9401
Plugins: Add SDK stream handler support to plugin.Client ( #41650 )
...
* add stream handler support to plugin.Client
* nil instead of empty resp
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
* nil instead of empty resp #2
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
2021-11-15 14:25:13 +01:00
Will Browne
8adefa32fd
Plugins: Return error from QueryData when plugin is not found ( #41494 )
...
* Plugins: Return error from QueryData when plugin is not found
* use nil for resp
2021-11-10 10:39:32 +01:00
Will Browne
8a42fca485
process app plugins first ( #41346 )
2021-11-05 15:07:53 +01:00
Will Browne
14742ea44a
add oauth pass thru logic to api/ds/query ( #41352 )
2021-11-05 15:07:04 +01:00
Will Browne
2faf3b6a31
rearrange log statements for log15 ( #41137 )
2021-11-02 10:20:17 +01:00
Will Browne
8157d3564b
remove println ( #41139 )
2021-11-01 14:55:07 +00:00
Will Browne
1f6965e859
fix homepath for enterprise e2e tests ( #41140 )
2021-11-01 13:48:52 +01:00
Will Browne
b80fbe03f0
Plugins: Refactor Plugin Management ( #40477 )
...
* add core plugin flow
* add instrumentation
* move func
* remove cruft
* support external backend plugins
* refactor + clean up
* remove comments
* refactor loader
* simplify core plugin path arg
* cleanup loggers
* move signature validator to plugins package
* fix sig packaging
* cleanup plugin model
* remove unnecessary plugin field
* add start+stop for pm
* fix failures
* add decommissioned state
* export fields just to get things flowing
* fix comments
* set static routes
* make image loading idempotent
* merge with backend plugin manager
* re-use funcs
* reorder imports + remove unnecessary interface
* add some TODOs + remove unused func
* remove unused instrumentation func
* simplify client usage
* remove import alias
* re-use backendplugin.Plugin interface
* re order funcs
* improve var name
* fix log statements
* refactor data model
* add logic for dupe check during loading
* cleanup state setting
* refactor loader
* cleanup manager interface
* add rendering flow
* refactor loading + init
* add renderer support
* fix renderer plugin
* reformat imports
* track errors
* fix plugin signature inheritance
* name param in interface
* update func comment
* fix func arg name
* introduce class concept
* remove func
* fix external plugin check
* apply changes from pm-experiment
* fix core plugins
* fix imports
* rename interface
* comment API interface
* add support for testdata plugin
* enable alerting + use correct core plugin contracts
* slim manager API
* fix param name
* fix filter
* support static routes
* fix rendering
* tidy rendering
* get tests compiling
* fix install+uninstall
* start finder test
* add finder test coverage
* start loader tests
* add test for core plugins
* load core + bundled test
* add test for nested plugin loading
* add test files
* clean interface + fix registering some core plugins
* refactoring
* reformat and create sub packages
* simplify core plugin init
* fix ctx cancel scenario
* migrate initializer
* remove Init() funcs
* add test starter
* new logger
* flesh out initializer tests
* refactoring
* remove unused svc
* refactor rendering flow
* fixup loader tests
* add enabled helper func
* fix logger name
* fix data fetchers
* fix case where plugin dir doesn't exist
* improve coverage + move dupe checking to loader
* remove noisy debug logs
* register core plugins automagically
* add support for renderer in catalog
* make private func + fix req validation
* use interface
* re-add check for renderer in catalog
* tidy up from moving to auto reg core plugins
* core plugin registrar
* guards
* copy over core plugins for test infra
* all tests green
* renames
* propagate new interfaces
* kill old manager
* get compiling
* tidy up
* update naming
* refactor manager test + cleanup
* add more cases to finder test
* migrate validator to field
* more coverage
* refactor dupe checking
* add test for plugin class
* add coverage for initializer
* split out rendering
* move
* fixup tests
* fix uss test
* fix frontend settings
* fix grafanads test
* add check when checking sig errors
* fix enabled map
* fixup
* allow manual setup of CM
* rename to cloud-monitoring
* remove TODO
* add installer interface for testing
* loader interface returns
* tests passing
* refactor + add more coverage
* support 'stackdriver'
* fix frontend settings loading
* improve naming based on package name
* small tidy
* refactor test
* fix renderer start
* make cloud-monitoring plugin ID clearer
* add plugin update test
* add integration tests
* don't break all if sig can't be calculated
* add root URL check test
* add more signature verification tests
* update DTO name
* update enabled plugins comment
* update comments
* fix linter
* revert fe naming change
* fix errors endpoint
* reset error code field name
* re-order test to help verify
* assert -> require
* pm check
* add missing entry + re-order
* re-check
* dump icon log
* verify manager contents first
* reformat
* apply PR feedback
* apply style changes
* fix one vs all loading err
* improve log output
* only start when no signature error
* move log
* rework plugin update check
* fix test
* fix multi loading from cfg.PluginSettings
* improve log output #2
* add error abstraction to capture errors without registering a plugin
* add debug log
* add unsigned warning
* e2e test attempt
* fix logger
* set home path
* prevent panic
* alternate
* ugh.. fix home path
* return renderer even if not started
* make renderer plugin managed
* add fallback renderer icon, update renderer badge + prevent changes when renderer is installed
* fix icon loading
* rollback renderer changes
* use correct field
* remove unneccessary block
* remove newline
* remove unused func
* fix bundled plugins base + module fields
* remove unused field since refactor
* add authorizer abstraction
* loader only returns plugins expected to run
* fix multi log output
2021-11-01 10:53:33 +01:00
Will Browne
76d88a6cec
change log level to debug ( #41102 )
2021-11-01 09:00:00 +00:00
Will Browne
67449b95e9
dispatch with context where missing ( #40810 )
2021-10-27 15:57:06 +02:00
Will Browne
728a59f013
bump for CVE-2021-37219 CVE-2021-32574 CVE-2021-36213 ( #40947 )
2021-10-26 17:20:55 +02:00
Will Browne
e4297006f6
Chore: Propagate context for data source provisioning ( #40235 )
...
* context all the things
* apply feedback
* rollback some alerting changes
* rollback some alerting changes #2
* more rollbacks
* more rollbacks #2
* more rollbacks #3
* more rollbacks #4
* fix integration test
* add missing context
* add missing and remove incorrect dispatch
2021-10-18 17:06:19 +02:00
Will Browne
281d60095f
remove refs to --pure-lockfile ( #40345 )
2021-10-13 14:59:47 +02:00
Will Browne
1a71f0fe13
Chore: Add WARN log if grafana server process is running with elevated privileges ( #35205 )
...
* warn on linux
* add warning for grpc plugins
* add windows support
* update go.mod
* reorganize imports
* update naming
* remove Windows logic
* simplify and add check for when UID and EUID don't match
* fix build
* tidy go.mod
* feedback
* cleanup + migrate
2021-09-13 17:46:47 +02:00