grafana/pkg/setting
Andreas Christou 6bb7ab261a
AzureMonitor: User authentication support (#81918)
* Stub out frontend user auth

* Stub out backend user auth

* Add context

* Reorganise files

* Refactor app registration form

* Alert for user auth service principal credentials

* AzureMonitor: Add flag for enabling/disabling fallback credentials for current user authentication (#82332)

* Rename field

* Add fallback setting

* Update tests and mock

* Remove duplicate setting line

* Update name of property

* Update frontend settings

* Update docs and default config files

* Update azure-sdk

* Fix lint

* Update test

* Bump dependency

* Update configuration

* Update docs/sources/setup-grafana/configure-grafana/_index.md

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* Docs review

* AzureMonitor: User authentication frontend updates (#83107)

* Rename field

* Add fallback setting

* Update tests and mock

* Remove duplicate setting line

* Update name of property

* Update frontend settings

* Update docs and default config files

* Add alerts to query editor

- Add authenticatedBy property to grafana/data
- Update mocks
- Update query editor to disable it under certain circumstances
- Update tests

* Add separate FallbackCredentials component

- Reset AppRegistrationCredentials component to only handle clientsecret credentials
- Update AzureCredentialsForm
- Update selectors
- Update tests
- Update credentials utility functions logic

* Alert when fallback credentials disabled

* Update condition

* Update azure-sdk

* Fix lint

* Update test

* Remove unneeded conditions

* Set auth type correctly

* Legacy cloud options

* Fix client secret

* Remove accidental import

* Bump dependency

* Add tests

* Don't use VerticalGroup component

* Remove unused import

* Fix lint

* Appropriately set oAuthPassThru and disableGrafanaCache properties

* Clear azureCredentials on authType change

* Correctly retrieve secret

* Fix bug in authTypeOptions

* Update public/app/plugins/datasource/azuremonitor/components/ConfigEditor/CurrentUserFallbackCredentials.tsx

Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>

* Update public/app/plugins/datasource/azuremonitor/components/QueryEditor/QueryEditor.tsx

Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>

* Update public/app/plugins/datasource/azuremonitor/components/ConfigEditor/CurrentUserFallbackCredentials.tsx

Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>

* Add documentation links

* Fix broken link

---------

Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>

* AzureMonitor: Update docs for current user authentication (#83440)

* Rename field

* Add fallback setting

* Update tests and mock

* Remove duplicate setting line

* Update name of property

* Update frontend settings

* Update docs and default config files

* Add alerts to query editor

- Add authenticatedBy property to grafana/data
- Update mocks
- Update query editor to disable it under certain circumstances
- Update tests

* Add separate FallbackCredentials component

- Reset AppRegistrationCredentials component to only handle clientsecret credentials
- Update AzureCredentialsForm
- Update selectors
- Update tests
- Update credentials utility functions logic

* Alert when fallback credentials disabled

* Update condition

* Update azure-sdk

* Fix lint

* Update test

* Remove unneeded conditions

* Set auth type correctly

* Legacy cloud options

* Fix client secret

* Remove accidental import

* Bump dependency

* Add tests

* Don't use VerticalGroup component

* Remove unused import

* Update docs

* Fix lint

* Appropriately set oAuthPassThru and disableGrafanaCache properties

* Clear azureCredentials on authType change

* Correctly retrieve secret

* Feedback

* Spelling

* Update docs/sources/datasources/azure-monitor/_index.md

Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>

* Update docs/sources/datasources/azure-monitor/_index.md

Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>

* Update docs/sources/datasources/azure-monitor/_index.md

Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>

* Update docs/sources/datasources/azure-monitor/_index.md

Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>

---------

Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>

* Docs review

* Update docs with additional configuration information

* Fix to appropriately hide the query editor

* Typo

* Update isCredentialsComplete

* Update test

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
2024-03-19 16:32:24 +00:00
..
testdata Config: Show user-friendly error message instead of stack trace (#16564) 2019-04-25 08:29:07 +02:00
date_formats_test.go Chore: Fix goimports grouping in other backend platform packages (#62422) 2023-01-30 08:26:42 +00:00
date_formats.go Prometheus: Support 1ms resolution intervals (#44707) 2022-06-29 07:39:50 +02:00
dynamic_settings_test.go Tests: use t.Setenv to set env vars (#69516) 2023-06-05 11:31:03 +02:00
expanders_test.go Tests: use t.Setenv to set env vars (#69516) 2023-06-05 11:31:03 +02:00
expanders.go imagestorage: fix templating of public_url option for webdav (#74885) 2023-09-28 00:35:10 +03:00
provider.go FeatureFlags: Avoid using cfg.IsFeatureToggleEnabled (#81407) 2024-01-28 15:22:45 -08:00
setting_auth_proxy.go AuthProxy: Allow disabling Auth Proxy cache (#83755) 2024-03-01 11:31:06 +01:00
setting_azure_test.go AzureMonitor: User authentication support (#81918) 2024-03-19 16:32:24 +00:00
setting_azure.go AzureMonitor: User authentication support (#81918) 2024-03-19 16:32:24 +00:00
setting_data_proxy.go Docs: Aligning fallback values with documentation (#83617) 2024-03-13 11:19:04 +02:00
setting_feature_toggles_test.go FeatureFlags: define features outside settings.Cfg (take 3) (#44443) 2022-01-26 09:44:20 -08:00
setting_feature_toggles.go Settings: Actually deprecate access to feature flags (#78073) 2023-11-13 11:39:01 -08:00
setting_featuremgmt.go Feature Toggles API: Trigger webhook call when updating (#75254) 2023-09-25 19:11:24 +01:00
setting_grafana_javascript_agent.go Unify frontend monitoring (#80075) 2024-02-01 15:08:40 +01:00
setting_jwt.go JWT Authentication: Add support for specifying groups in auth.jwt for teamsync (#82175) 2024-02-09 16:35:58 +01:00
setting_plugins_test.go Plugins: Add forward_host_env_vars setting (#79333) 2023-12-13 11:25:17 +02:00
setting_plugins.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 Search: Add search index configuration options (#55525) 2022-09-20 19:09:55 -04: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_secure_socks_proxy.go Plugins: Add option to disable TLS in the socks proxy (#79246) 2023-12-14 12:16:32 -03:00
setting_session_test.go Chore: Fix goimports grouping in other backend platform packages (#62422) 2023-01-30 08:26:42 +00:00
setting_smtp_test.go Config: Can add static headers to email messages (#79365) 2023-12-14 12:59:43 -06:00
setting_smtp.go Chore: Remove public vars in setting package (#81018) 2024-01-23 12:36:22 +01:00
setting_storage.go Storage: externalize allow_unsanitized_svg_upload (#52703) 2022-07-25 21:11:17 +04:00
setting_test.go Alerting: Disable legacy alerting for ever (#83651) 2024-03-07 16:01:11 -05:00
setting_unified_alerting_test.go Alerting: Disable legacy alerting for ever (#83651) 2024-03-07 16:01:11 -05:00
setting_unified_alerting.go Alerting: Clamp Loki ASH range query to configured max_query_length (#83986) 2024-03-15 18:59:45 +02:00
setting.go Chore: Update grafana-azure-sdk-go (#84741) 2024-03-19 14:56:40 +00:00