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
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
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
Andres Martinez Gotor
00a596b2e0
Chore: Add app URL to the plugin config ( #77455 )
2023-11-02 13:26:16 +01:00
Gabriel MABILLE
797a3c57af
Plugins: Automatic service account (and token) setup ( #76473 )
...
* Update cue to have an AuthProvider entry
* Cable the new auth provider
* Add feature flag check to the accesscontrol service
* Fix test
* Change the structure of externalServiceRegistration (#76673 )
2023-10-17 16:21:23 +02:00
Gabriel MABILLE
969e6a17ba
Plugins: Rename oauth package to auth ( #75611 )
...
* Plugins: Rename oauth package to auth
* Missed one comment
2023-09-28 12:18:09 +02:00
Will Browne
d6db9eaeb2
Plugins: Make sure feature toggles config value is deterministic ( #75249 )
...
* make sure feature toggle config vals are deterministic
* fix nil pointer
* undo changes
* fix condition
* add tests
2023-09-22 13:56:48 +02:00
Will Browne
7fca1bde54
Plugins: Set grafana config, plugin version and user agent on plugin requests ( #75171 )
...
* first pass
* fixup
* remove test line
* fix tests
* use new fields
* fix imports + formatting
* fix tests
* rollback changes
* undo whitespace
* apply pr feedback
2023-09-21 11:33:31 +02:00
Hugo Kiyodi Oshiro
c69dd41bf9
Plugins: Forward feature toggles to plugins ( #72995 )
2023-08-25 15:01:54 +02:00
Will Browne
c830c01e61
Plugins: Remove unnecessary error result from env vars interface ( #73224 )
...
* remove error from interface
* fix test
2023-08-14 14:17:54 +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
Andres Martinez Gotor
025465e611
Chore: Update plugin schema with service registration info ( #70692 )
2023-06-27 08:47:25 +02:00
Andres Martinez Gotor
4ff0abd0d1
SaveExternalService (OAuth) on plugin load ( #69764 )
2023-06-26 16:38:43 +02:00
Will Browne
1fd4953833
Plugins: Optimize creation of Golang errors and slices ( #69448 )
...
* tidy up
* fix tests
2023-06-07 17:22:43 +02:00
Will Browne
ae373c662c
Plugins: Refactor env vars to dedicated service ( #68960 )
...
* add env vars service
* fix tests
* fix more tests
2023-05-24 14:02:14 +02:00