Kevin Minehart
8e9aa45716
[10.4.x] backport CI / release changes ( #89631 )
...
* Chore: Add go workspace (#83191 )
---------
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com >
* CI: Make pkg/build its own module, remove unused Grafana modules in go.mo… (#89243 )
* Make pkg/build its own module, remove unused Grafana modules in go.mod/go.sum
* fix go.work format
* log errors on file close errors
* CI: Add release-pr workflow (#89005 )
* Add release-pr workflow
* update CODEOWNERS
* CI: Trigger release pr workflow when a release is completed (#89062 )
* Automation: Verify release artifacts on grafana.com (#89197 )
* baldm0mma/verify_release/ create verify_release_for_download function
* baldm0mma/verify_release/ add name, image, env
* baldm0mma/verify_release/ add initial commands
* baldm0mma/verify_release/ add deps?
* baldm0mma/verify_release/ update location
* baldm0mma/verify_release/ add anno to lib-star
* bald0mma/verify_release/ update func name to verify_grafanacom_step
* baldm0mma/verify_release/ add verify shell script
* baldm0mma/verify_release/ add script content, first attempt
* baldm0mma/verify_release/ add node image to verify_grafanacom_step
* baldm0mma/verify_release/ add gcom secret note
* baldm0mma/verify_release/ add sudo to apt-get
* baldm0mma/verify_release/ add anno
* baldm0mma/verify_release/ add anno to secrets
* baldm0mma/verify_release/ update commands to reflect node env image
* baldm0mma/verify_release/ update annos
* baldm0mma/verify_release/ update tag variable
* baldm0mma/verify release/ add whitespace
* baldm0mma/verify_releases/ update with no bash loops
* baldm0mma/verify_release/ update exit logic
* baldm0mma/verify_release/ remove annos
* baldm0mma/verify_releasse/ resign and build yml
* baldm0mma/verify_release/ remove annos
* baldm0mma/verify_release/ update signature
* baldm0mma/verify_release/ download curl
* baldm0mma/verify_release/ remove temp key folder removal
* baldm0mma/verify_release/ account for artifact download time
* baldm0mma/verify_release/ add anno
* baldm0mma/verify_release/ update location
* baldm0mma/verify_release/ update script
* baldm0mma/verify_release/ make drone
* baldm0mma/verify_release/ update script for oss or ent
* baldm0mma/verify_release/ add promotion option
* baldm0mma/verify_release/ make drone
* Update scripts/drone/events/release.star
Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com >
* Update scripts/drone/steps/lib.star
Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com >
* Update scripts/drone/steps/lib.star
Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com >
* baldm0mma/verify_release/ update drone
* Update scripts/drone/events/release.star
Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com >
* baldm0mma/verify_release/ update drone
* Update scripts/drone/steps/lib.star
Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com >
* baldm0mma/update drone
* baldm0mma/verify_release/ update path
* baldm0mma/verify_release/ make drone
* baldm0mma/update drone
* Apply suggestions from code review
Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com >
* baldm0mma/verify_release/ update for loop to account for failure
* baldm0mma/verify_release/ make drone
* baldm0mma/verify_release/ make format-drone
* baldm0mma/verify_release/ rem unused var
---------
Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com >
---------
Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com >
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com >
Co-authored-by: Jev Forsberg <46619047+baldm0mma@users.noreply.github.com >
2024-06-24 15:06:53 -05:00
Will Browne
726f38967c
[10.4.x] Plugins: Send PDC file paths and contents for backwards compatibility ( #85301 )
...
* Plugins: Send PDC file paths and contents for backwards compatibility
* fix
* fix test
2024-03-29 12:24:35 +01:00
Will Browne
5430b1412f
[v10.4.x] Plugins: Pass PDC info as file paths ( #85279 )
...
pass PDC filepaths
2024-03-27 16:52:09 +02:00
Will Browne
d26a1454c8
[v10.4.x] Plugins: Pass PDC file contents in requests ( #85144 )
...
* Plugins: Pass PDC file contents in requests (#84783 )
* Plugins: Pass PDC file contents in requests
* go mod tidy
* undo go.mod changes
* fix linter
* fix tests
* undo unnecessary changes
* update dep
* join with comma
* update naming
* bump SDK
(cherry picked from commit b765c21d4c )
* set env + req config
* fix linter
2024-03-26 12:52:13 +01:00
Yulia Shanyrova
9dcb7800de
Plugins: Add fuzzy search to plugins catalogue ( #81001 )
...
* WIP add fuzzysearch to plugins catalog
* Add keywords to the plugins listing output
* add fuzzy search to plugin catalog, add keywords to plugins at frontend side
* refactor fuzzysearch function after review
* review changes
* change the version of uFuzzy library
* change reduce result object in getPluginDetailsForFuzzySearch
* fix yarn lock error
* fix helpers tests
* fix frontend searching test
* fix frontend linting issues
* fix tests
---------
Co-authored-by: Esteban Beltran <esteban@academo.me >
Co-authored-by: Giuseppe Guerra <giuseppe@guerra.in >
2024-02-14 14:30:24 +01:00
Will Browne
788b9afda3
Plugins: Make it possible to support multiple plugin versions ( #82116 )
...
* first pass
* use version in more places
* add comment
* update installer
* fix wire
* fix tests
* tidy
* simplify changes
* fix in mem
* remove unused step
* fix step dupe logic for child plugins + add tests
2024-02-12 12:47:49 +01:00
Alyssa Bull
77111a0714
Cloud Monitoring: Fix naming and warnings ( #82271 )
2024-02-09 11:22:44 -07:00
Agnès Toulet
28e66b4ad8
Rendering: Adds PDF support behind feature toggle ( #81811 )
...
* start pdf refactor
* Update AppChrome.tsx
* Update AppChrome.tsx
* add encoding param to rendering grpc service
* fix plugin mode
* clean up
* fix backend tests
* fix lint errors
* Support pdf encoding in render http api
---------
Co-authored-by: Torkel Ödegaard <torkel@grafana.com >
2024-02-08 13:09:34 +01:00
Will Browne
99feb928cf
Plugins: Don't auto prepend app sub url to plugin asset paths ( #81658 )
...
* don't prepend app sub url to paths
* simplify logo path
* fix(plugins): dynamically prepend appSubUrl for System module resolving to work
* fix(sandbox): support dynamic appSuburl prepend when loading plugin module.js
* fix tests
* update test name
* fix tests
* update fe + add some tests
* refactor(plugins): move wrangleurl to utils, rename to resolveModulePath, update usage
* chore: fix a typo
* test(plugins): add missing name to utils test
* reset test flag
---------
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com >
2024-02-08 12:19:28 +01:00
Diego Augusto Molina
a6e27d1622
Chore: Fix plugins manager process data race in tests ( #81914 )
...
* Chore: synchronize writes to pkg.plugins.log.Logs to prevent data races in test code
* Chore: fix data race in tests in plugins process manager
* Chore: improve Logs method naming
* Chore: fix type change
2024-02-06 10:17:37 -03:00
Isabella Siu
81da3ff753
CloudWatch: Remove dependencies on grafana/pkg/setting ( #81208 )
2024-02-05 13:59:32 -05:00
ismail simsek
2002a6c4fb
Chore: Bump grafana-azure-sdk-go to v1.12.0 and expose AzureAuthEnabled value in config ( #81807 )
...
* upgrade grafana-azure-sdk-go v1.12.0
* add AzureAuthEnabled to config
2024-02-05 13:36:33 +01:00
Alyssa Bull
312fdf9ce0
Cloud Monitoring: Fix naming ( #81654 )
2024-02-01 09:05:54 -07:00
ismail simsek
536153c336
InfluxDB: Run queries in parallel behind influxdbRunQueriesInParallel feature toggle ( #81209 )
...
* create the feature flag
* bring the concurrency in to the play
* Update feature flag
* Use concurrency number from settings
* update influxdb dependency
* use ConcurrentQueryCount from plugin-sdk-go
* use helper method for concurrent query count
* log the error
* add value guard
* add unit tests
* handle concurrency error
2024-02-01 11:58:24 +01:00
Ryan McKinley
e013cd427c
K8s: Add basic query service ( #80325 )
2024-01-31 20:36:51 +02:00
Alyssa Bull
be6efd9518
Cloud Monitoring: Add standalone files and modify plugin.json ( #81596 )
2024-01-30 15:52:44 -07:00
Will Browne
3885497553
Plugins: Update renderer plugin source ( #80643 )
...
* rework renderer plugin source
* add tests
2024-01-18 11:06:33 +01:00
Gabriel MABILLE
6b954165c5
RBAC: Cover plugin routes ( #80578 )
...
* RBAC: Cover plugin routes
* Action instead of ReqAction
* Fix test initializations
* Fix NewPluginProxy call
* Duplicate test to add RBAC checks
* Cover legacy access control as well
* Fix typo
* action -> reqAction
* Add example
Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com >
---------
Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com >
2024-01-17 16:32:23 +01:00
Giuseppe Guerra
b40d3e7487
Plugins: Add enablePluginsTracingByDefault feature flag ( #80195 )
...
* Add enablePluginsTracingByDefault feature flag
* Enable tracing for all plugins if enablePluginsTracingByDefault is set
* fix docstrings for IsEnabled and IsEnabledGlobally
* fix tests
* do not use separate feature manager
* add test case
* Revert "fix tests"
This reverts commit 46a2420ed1 .
* cleanup
* fix plugin tracing disabled if wrong plugin setting is present
* add test case for enabled on plugin with wrong plugin setting but with enablePluginsTracingByDefault feature flag
* Add RequiresRestart = true to enablePluginsTracingByDefault
* re-generate feature flags
* pr review feedback
2024-01-10 13:25:54 +02:00
Ryan McKinley
1caaa56de0
FeatureFlags: Use interface rather than manager ( #80000 )
2024-01-09 10:38:06 -08:00
Giuseppe Guerra
c045a9f395
Plugins: Fix symlinks inside plugins path not being followed ( #80205 )
...
* Plugins: Loader: Fix symlinks not followed when loading external plugins
* Add test case
2024-01-09 14:23:03 +01:00
Will Browne
78ae795e06
Plugins: Fix loading of dist folders ( #80015 )
...
* end to end
* tidy
* fix whitespace
* remove unused code
* fix linter
* fix gosec + add sort
* fix test
* apply cr feedback
2024-01-08 11:45:03 +01:00
Giuseppe Guerra
b1c7aa269b
Dependencies: Bump github.com/grafana/grafana-plugin-sdk-go from v0.197.0 to v0.198.0 ( #79928 )
...
* chore: Bump google.golang.org/grpc from 1.59.0 to 1.60.1
* Bump google.golang.org/protobuf to v1.32.0
* Fix make protobuf failing with latest protoc and protoc-gen-go
* Re-generate protobuf files
* Re-generate protobuf files
* Bump grafana-plugin-sdk-go
* go mod tidy
2024-01-03 13:36:44 +02:00
Will Browne
6ceab61bf8
Plugins: Support nested plugin signature validation on Windows ( #79467 )
...
* rework
* fix
* fix backend start
* fix tests
* fix
* print env
* enable CGO
* undo changes
* undo whitespace change
2023-12-19 11:56:40 +01:00
Will Browne
ef60c90dfa
Plugins: Make file system path handling in tests OS agnostic ( #79651 )
...
* make path handling OS agnostic
* PR feedback
* fix input for test case
2023-12-19 11:01:48 +01:00
Will Browne
ce8fd14f1f
Plugins: Make renderer service load renderer plugin ( #77854 )
...
* rendering service loads renderer plugin
* update naming
* tidy
* apply PR feedback
* fix missing feature manager
* fix step
* set plugin
2023-12-14 17:33:29 +01:00
Bruno
58678f5879
Plugins: Add option to disable TLS in the socks proxy ( #79246 )
...
* Plugins: add option to disable TLS in the socks proxy
* fix allow_insecure docs
* upgrade github.com/grafana/grafana-plugin-sdk-go from v0.196.0 to v0.197.0
* fix conflicts
2023-12-14 12:16:32 -03:00
Andreas Christou
f3cdb44898
Plugins: Include Azure settings as a part of Grafana config sent in plugin requests ( #79342 )
...
* Add Azure settings and update tests
* Filter by plugin ID
* Add forward settings config variable
* Update line
* Add tests
* Update so that data sources are fully defined in config
* Update SDK and test
* Fix lint
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com >
* Remove unnecessary if
---------
Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com >
2023-12-14 11:48:22 +00:00
Giuseppe Guerra
0d1d437c86
Plugins: Add forward_host_env_vars setting ( #79333 )
...
* Plugins: Add forward_host_env_vars_plugins setting
* Renamed forward_host_env_vars_plugins to forward_host_env_vars
* Add readPluginIDsList
* refactoring
* lint
* Use util.SplitString
2023-12-13 11:25:17 +02:00
Giuseppe Guerra
f76b9f266e
Plugins: Add hide_angular_deprecation setting ( #79296 )
...
* Add plugins.hide_angular_deprecation config ini
* Add more tests
* Remove the ability to use [plugins.*] hide_angular_deprecation
2023-12-12 11:20:21 +02:00
Gabriel MABILLE
5b70130e6c
Plugins: Rename externalServiceAuthentication to iam ( #78686 )
...
Plugins: Rename externalServiceAuthentication to iam
2023-12-04 13:14:21 +01:00
Gabriel MABILLE
ef2c79d22a
Chore: use errutil for pluginRepo errors ( #78647 )
...
* Chore: use errutil for pluginRepo errors
* Update pkg/util/errutil/status.go
* Use errutil helper functions
Co-Authored-By: Marcus Efraimsson <marcus.efraimsson@gmail.com >
* Forgot the log level
* Use entity
---------
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com >
2023-11-30 15:49:27 +01:00
Andres Martinez Gotor
f8a6380510
Chore: Change endpoint to check versions in cli ( #78008 )
2023-11-21 12:46:26 +01:00
Andres Martinez Gotor
20f3a87bf5
Bug: Fix loading behavior with FlagExternalCorePlugins ( #78388 )
2023-11-21 11:51:13 +01:00
Giuseppe Guerra
027a157898
Plugins: Allow disabling "skip host environment variables" per-plugin ( #78266 )
...
* Plugins: Allow disabling skipping host environment variables per-plugin
* Renamed SkipEnvVarsDecorateFunc to SkipHostEnvVarsDecorateFunc
* PR review feedback
* fix tests
2023-11-17 16:12:05 +02:00
Will Browne
ddb7406caa
Plugins: Add running method to interface ( #78326 )
...
* add running to interface
* add context
2023-11-17 13:52:31 +01:00
Giuseppe Guerra
cb0a88a027
Plugins: Backend: Skip host environment variables ( #77858 )
...
* Add pluginsSkipHostEnvVars feature flag
* Set go-plugin's SkipHostEnvVar depending on feature flags
* add missing file
* Re-generate feature flags
* Add allowedHostEnvVarNames
* Fix feature toggles not being passed to plugin context service's plugin env vars
* Fix tests
* PR review feedback: Use cfg.Features
* Fix tests
* PR review feedback: removed DefaultProviderWithFeatures
* merge with master
* fix tests
* use features.IsEnabledGlobally
2023-11-15 18:09:14 +01:00
Will Browne
b3ad61e180
Plugins: Add plugin version field to proto interface ( #78213 )
...
add plugin version
2023-11-15 16:53:30 +01:00
Ryan McKinley
f69fd3726b
FeatureToggles: Add context and and an explicit global check ( #78081 )
2023-11-14 12:50:27 -08: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
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
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
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
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
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
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
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
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
Andres Martinez Gotor
f7361a2755
Chore: Update TestData README ( #77607 )
...
Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com >
2023-11-09 10:03:00 +01:00
Will Browne
19cd7dbae1
Plugins: Add API for creating pluginv2 proto client ( #77492 )
...
* first pass
* remove client from plugin
* fix wire
* update
* undo import change
* add opts
* add check
* tidy
* re-use logic
* rollback changes
2023-11-03 14:01:08 +01:00