grafana/pkg/models
Jeremy Alvis f021f97c31
DataSourceSettings: Add servername field to DataSource TLS config (#29279)
* DataSourceSettings: Add servername field to DataSource TLS config

A DNS lookup URL can be provided in the DataSource URL field in order
to dynamically load balance between multiple instances of a DataSource.
When using mutual TLS, Golang's TLS config implementation checks that
the certificate's common name (< 1.15) or subject alternative name
(>= 1.15) has the same value as the domain being accessed. If the DNS
entry is dynamically generated for a specific environment, the
certificate cannot be generated with a name matching the dynamic
DNS URL. As such, Golang offers a servername field that can be set to
overwrite what value is used when checking against the certificate's
common name (or subject alternative name). Without this change, Skip
TLS Verify must be set to true in order for the DataSource to work,
removing some of the benefits gained by using mutual TLS.

This commit adds the ability to set Grafana's internal Golang TLS config
servername field from the UI or a provisioned DataSource.

The servername field is optional and the existing behavior is retained if
the field is not set.

Co-authored-by: Dana Pruitt <dpruitt@vmware.com>
Co-authored-by: Jeremy Alvis <jalvis@pivotal.io>

* Update docs with PR review changes

Co-authored-by: Jeremy Alvis <jalvis@pivotal.io>
Co-authored-by: Dana Pruitt <dpruitt@vmware.com>

* Update with additional PR requested changes

* Minor updates based on PR change requests

Co-authored-by: Dana Pruitt <dpruitt@vmware.com>
2020-12-10 16:07:05 +01:00
..
address.go feat(organization): added update org address to http api and to org details settings view, closes #2672 2015-09-08 14:22:44 +02:00
alert_notifications.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
alert_test.go Chore: Fix various spelling errors in back-end code (#25241) 2020-06-01 17:11:25 +02:00
alert.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
apikey.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
context.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
dashboard_acl_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
dashboard_acl.go Permissions: Validate against Team/User permission role update (#29101) 2020-11-18 15:36:41 +01:00
dashboard_snapshot.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
dashboard_version.go Chore: Fix staticcheck issues (#28860) 2020-11-05 13:07:06 +01:00
dashboards_test.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
dashboards.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
datasource_cache_test.go DataSourceSettings: Add servername field to DataSource TLS config (#29279) 2020-12-10 16:07:05 +01:00
datasource_cache.go DataSourceSettings: Add servername field to DataSource TLS config (#29279) 2020-12-10 16:07:05 +01:00
datasource.go Backend: Remove unused code (#28933) 2020-11-11 11:38:04 +01:00
folders.go Chore: Fix staticcheck issues (#28860) 2020-11-05 13:07:06 +01:00
health.go feat: added api health endpoint that does not require auth and never creates sessions, returns db status as well. #3302 2017-04-25 17:17:45 +02:00
helpflags.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
licensing.go provide license token directly via plugin environment (#25987) 2020-07-01 13:02:53 -04:00
live.go Live: update centrifuge and the ChannelHandler api (#28843) 2020-11-05 10:37:04 -08:00
login_attempt.go login: uses epochs for login throtting. 2018-02-16 17:25:46 +01:00
measurement.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
models.go Okta OAuth provider (team sync support) (#22972) 2020-04-02 17:35:48 +03:00
notifications.go Chore: Fix staticcheck issues (#28860) 2020-11-05 13:07:06 +01:00
org_user.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
org.go Chore: Fix staticcheck issues (#28860) 2020-11-05 13:07:06 +01:00
playlist.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
plugin_setting_cache_test.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
plugin_setting_cache.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
plugin_settings.go Chore: Fix staticcheck issues (#28860) 2020-11-05 13:07:06 +01:00
preferences.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
quotas.go Chore: Fix staticcheck issues (#28860) 2020-11-05 13:07:06 +01:00
shorturl.go Short URL: Cleanup unvisited/stale short URLs (#28867) 2020-11-09 18:08:16 +01:00
sigv4.go Auth: Add SigV4 header allowlist to reduce chances of verification issues (#29650) 2020-12-09 10:45:57 +01:00
star.go Chore: Fix staticcheck issues (#28860) 2020-11-05 13:07:06 +01:00
stats.go Stats: Stop counting the same user multiple times (#26777) 2020-08-24 11:23:14 +02:00
tags_test.go Create annotations (#8197) 2017-10-07 10:31:39 +02:00
tags.go Create annotations (#8197) 2017-10-07 10:31:39 +02:00
team_member.go UserTableView: Show user name in table view (#18108) 2019-11-21 12:44:46 +02:00
team.go Add an option to hide certain users in the UI (#28942) 2020-11-24 12:10:32 +01:00
temp_user.go Users: Expire old user invites (#27361) 2020-10-13 12:30:09 +02:00
test_data.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
user_auth.go API: replace SendLoginLogCommand with LoginHook (#28777) 2020-11-06 10:01:13 +01:00
user_token.go Backend: fix IPv6 address parsing erroneous (#28585) 2020-11-25 07:55:22 +01:00
user.go Chore: Fix issues reported by staticcheck; enable stylecheck linter (#28866) 2020-11-05 15:37:11 +01:00