grafana/pkg/setting
Ieva c310a20966
AuthZ: add headers for IP range AC checks for cloud data sources (#80208)
* add feature toggle

* add a middleware that appens headers for IP range AC

* sort imports

* sign IP range header and only append it if the request is going to allow listed data sources

* sign a random generated string instead of IP, also change the name of the middleware to make it more generic

* remove the DS IP range AC options from the config file; remove unwanted change

* add test

* sanitize the URLs when comparing

* cleanup and fixes

* check if X-Real-Ip is present, and set the internal request header if it is not present

* use split string function from the util package
2024-01-31 18:09:24 +01:00
..
testdata
date_formats.go
date_formats_test.go
dynamic_settings_test.go
expanders.go
expanders_test.go
provider.go FeatureFlags: Avoid using cfg.IsFeatureToggleEnabled (#81407) 2024-01-28 15:22:45 -08:00
setting.go AuthZ: add headers for IP range AC checks for cloud data sources (#80208) 2024-01-31 18:09:24 +01:00
setting_azure.go Plugins: Include Azure settings as a part of Grafana config sent in plugin requests (#79342) 2023-12-14 11:48:22 +00:00
setting_azure_test.go Plugins: Include Azure settings as a part of Grafana config sent in plugin requests (#79342) 2023-12-14 11:48:22 +00:00
setting_data_proxy.go
setting_feature_toggles.go Settings: Actually deprecate access to feature flags (#78073) 2023-11-13 11:39:01 -08:00
setting_feature_toggles_test.go
setting_featuremgmt.go
setting_grafana_javascript_agent.go
setting_plugins.go Plugins: Add forward_host_env_vars setting (#79333) 2023-12-13 11:25:17 +02:00
setting_plugins_test.go Plugins: Add forward_host_env_vars setting (#79333) 2023-12-13 11:25:17 +02:00
setting_quota.go Alerting: Guided legacy alerting upgrade dry-run (#80071) 2024-01-05 18:19:12 -05:00
setting_search.go
setting_secure_socks_proxy.go Plugins: Add option to disable TLS in the socks proxy (#79246) 2023-12-14 12:16:32 -03:00
setting_secure_socks_proxy_test.go Plugins: Add option to disable TLS in the socks proxy (#79246) 2023-12-14 12:16:32 -03:00
setting_session_test.go
setting_smtp.go Chore: Remove public vars in setting package (#81018) 2024-01-23 12:36:22 +01:00
setting_smtp_test.go Config: Can add static headers to email messages (#79365) 2023-12-14 12:59:43 -06:00
setting_storage.go
setting_test.go Chore: Remove public vars in setting package (#81018) 2024-01-23 12:36:22 +01:00
setting_unified_alerting.go Alerting: Add a feature flag to periodically save states (#80987) 2024-01-23 17:03:30 +01:00
setting_unified_alerting_test.go Unified Alerting: Set `max_attempts` to 1 by default (#79095) 2023-12-05 17:42:34 +00:00