You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Validating tls_certificate.url argument using validate.IsURLWithHTTPS
* Add `goproxy` dependency for testing
* Add proxy configuration to the provider
* Add support for 2 kinds of URL Scheme for `tls_certificate` data source
`https://` (that follows optional http proxy configuration) and `tls://` that opens a secure socket connection directly to the destination
* Regenerate documentation
* util_test.go -> local_server_test.go
* Indicate that `from_env` will be set by default to `true` from the next major release
* Follow up issue: #183
* For now, we use `http.Client` only when a proxy configuration is present
* Follow up issue to clean this up: #183
* `tls_certificate` certificate fetching via HTTP: attempt to use `HEAD` and, if that fails, `GET`
* Add test to configure proxy from environment
* Test to confirm behaviour when a configured proxy can't actually be reached
* Typo fixes in `internal/provider/data_source_certificate.go`
Co-authored-by: Brian Flad <bflad417@gmail.com>
# The Proxy is discovered via environment variables:
94
+
# see https://pkg.go.dev/net/http#ProxyFromEnvironment for details.
95
+
96
+
provider "tls" {
97
+
proxy {
98
+
from_env = true
99
+
}
100
+
}
101
+
102
+
data "tls_certificate" "test" {
103
+
url = "https://example.com"
104
+
}
105
+
```
106
+
107
+
<!-- schema generated by tfplugindocs -->
108
+
## Schema
109
+
110
+
### Optional
111
+
112
+
-`proxy` (Block List, Max: 1) Proxy used by resources and data sources that connect to external endpoints. (see [below for nested schema](#nestedblock--proxy))
113
+
114
+
<aid="nestedblock--proxy"></a>
115
+
### Nested Schema for `proxy`
116
+
117
+
Optional:
118
+
119
+
-`from_env` (Boolean) When `true` the provider will discover the proxy configuration from environment variables. This is based upon [`http.ProxyFromEnvironment`](https://pkg.go.dev/net/http#ProxyFromEnvironment) and it supports the same environment variables (default: `false`). **NOTE**: the default value for this argument will be change to `true` in the next major release.
120
+
-`password` (String, Sensitive) Password used for Basic authentication against the Proxy.
121
+
-`url` (String) URL used to connect to the Proxy. Accepted schemes are: `http`, `https`, `socks5`.
122
+
-`username` (String) Username (or Token) used for Basic authentication against the Proxy.
0 commit comments