-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In the otelcol docs, refer to either server or client TLS config. (#592)
* In the docs, refer to either server or client TLS config. * Apply suggestions from code review Co-authored-by: Clayton Cornell <[email protected]> --------- Co-authored-by: Clayton Cornell <[email protected]> (cherry picked from commit cf30906)
- Loading branch information
1 parent
795a99e
commit 247e4ab
Showing
14 changed files
with
55 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ce/components/otelcol-tls-config-block.md → ...ce/components/otelcol-tls-client-block.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
docs/sources/shared/reference/components/otelcol-tls-server-block.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
canonical: https://grafana.com/docs/alloy/latest/shared/reference/components/otelcol-tls-server-block/ | ||
description: Shared content, otelcol tls server block | ||
headless: true | ||
--- | ||
|
||
The following arguments are supported: | ||
|
||
Name | Type | Description | Default | Required | ||
-------------------------------|----------------|----------------------------------------------------------------------------------------------|-------------|--------- | ||
`ca_file` | `string` | Path to the CA file. | | no | ||
`ca_pem` | `string` | CA PEM-encoded text to validate the server with. | | no | ||
`cert_file` | `string` | Path to the TLS certificate. | | no | ||
`cert_pem` | `string` | Certificate PEM-encoded text for client authentication. | | no | ||
`include_system_ca_certs_pool` | `boolean` | Whether to load the system certificate authorities pool alongside the certificate authority. | `false` | no | ||
`key_file` | `string` | Path to the TLS certificate key. | | no | ||
`key_pem` | `secret` | Key PEM-encoded text for client authentication. | | no | ||
`max_version` | `string` | Maximum acceptable TLS version for connections. | `"TLS 1.3"` | no | ||
`min_version` | `string` | Minimum acceptable TLS version for connections. | `"TLS 1.2"` | no | ||
`cipher_suites` | `list(string)` | A list of TLS cipher suites that the TLS transport can use. | `[]` | no | ||
`reload_interval` | `duration` | The duration after which the certificate is reloaded. | `"0s"` | no | ||
`client_ca_file` | `string` | Path to the TLS cert to use by the server to verify a client certificate. | | no | ||
|
||
If `reload_interval` is set to `"0s"`, the certificate never reloaded. | ||
|
||
The following pairs of arguments are mutually exclusive and can't both be set simultaneously: | ||
|
||
* `ca_pem` and `ca_file` | ||
* `cert_pem` and `cert_file` | ||
* `key_pem` and `key_file` | ||
|
||
If `cipher_suites` is left blank, a safe default list is used. | ||
Refer to the [Go Cipher Suites documentation][golang-cipher-suites] for a list of supported cipher suites. | ||
|
||
`client_ca_file` sets the `ClientCA` and `ClientAuth` to `RequireAndVerifyClientCert` in the `TLSConfig`. | ||
Refer to the [Go TLS documentation][golang-tls] for more information. | ||
|
||
[golang-tls]: https://godoc.org/crypto/tls#Config | ||
[golang-cipher-suites]: https://go.dev/src/crypto/tls/cipher_suites.go |