Skip to content

Commit 190f3bf

Browse files
authored
doc: Referenced correct stream security protocol (#3304)
* STREAMS-1730: reference correct stream security protocols * more PLAINTEXT and SSL references
1 parent ec37bda commit 190f3bf

File tree

12 files changed

+23
-23
lines changed

12 files changed

+23
-23
lines changed

docs/data-sources/stream_connection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If `type` is of value `Kafka` the following additional attributes are defined:
3030
* `authentication` - User credentials required to connect to a Kafka cluster. Includes the authentication type, as well as the parameters for that authentication mode. See [authentication](#authentication).
3131
* `bootstrap_servers` - Comma separated list of server addresses.
3232
* `config` - A map of Kafka key-value pairs for optional configuration. This is a flat object, and keys can have '.' characters.
33-
* `security` - Properties for the secure transport connection to Kafka. For SSL, this can include the trusted certificate to use. See [security](#security).
33+
* `security` - Properties for the secure transport connection to Kafka. For SASL_SSL, this can include the trusted certificate to use. See [security](#security).
3434
* `networking` - Networking Access Type can either be `PUBLIC` (default) or `VPC`. See [networking](#networking).
3535

3636
If `type` is of value `AWSLambda` the following additional attributes are defined:
@@ -49,7 +49,7 @@ If `type` is of value `Https` the following additional attributes are defined:
4949
### Security
5050

5151
* `broker_public_certificate` - A trusted, public x509 certificate for connecting to Kafka over SSL. String value of the certificate must be defined in the attribute.
52-
* `protocol` - Describes the transport type. Can be either `PLAINTEXT` or `SSL`.
52+
* `protocol` - Describes the transport type. Can be either `SASL_PLAINTEXT` or `SASL_SSL`.
5353

5454
### DBRoleToExecute
5555

docs/data-sources/stream_connections.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ If `type` is of value `Kafka` the following additional attributes are defined:
4242
* `authentication` - User credentials required to connect to a Kafka cluster. Includes the authentication type, as well as the parameters for that authentication mode. See [authentication](#authentication).
4343
* `bootstrap_servers` - Comma separated list of server addresses.
4444
* `config` - A map of Kafka key-value pairs for optional configuration. This is a flat object, and keys can have '.' characters.
45-
* `security` - Properties for the secure transport connection to Kafka. For SSL, this can include the trusted certificate to use. See [security](#security).
45+
* `security` - Properties for the secure transport connection to Kafka. For SASL_SSL, this can include the trusted certificate to use. See [security](#security).
4646
* `networking` - Networking Access Type can either be `PUBLIC` (default) or `VPC`. See [networking](#networking).
4747

4848
If `type` is of value `AWSLambda` the following additional attributes are defined::
@@ -61,7 +61,7 @@ If `type` is of value `Https` the following additional attributes are defined:
6161
### Security
6262

6363
* `broker_public_certificate` - A trusted, public x509 certificate for connecting to Kafka over SSL. String value of the certificate must be defined in the attribute.
64-
* `protocol` - Describes the transport type. Can be either `PLAINTEXT` or `SSL`.
64+
* `protocol` - Describes the transport type. Can be either `SASL_PLAINTEXT` or `SASL_SSL`.
6565

6666
### DBRoleToExecute
6767

docs/data-sources/stream_processor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ resource "mongodbatlas_stream_connection" "example-kafka" {
4747
"auto.offset.reset" : "earliest"
4848
}
4949
security = {
50-
protocol = "PLAINTEXT"
50+
protocol = "SASL_PLAINTEXT"
5151
}
5252
}
5353

docs/data-sources/stream_processors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ resource "mongodbatlas_stream_connection" "example-kafka" {
4747
"auto.offset.reset" : "earliest"
4848
}
4949
security = {
50-
protocol = "PLAINTEXT"
50+
protocol = "SASL_PLAINTEXT"
5151
}
5252
}
5353

docs/resources/stream_connection.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ resource "mongodbatlas_stream_connection" "test" {
1919
}
2020
```
2121

22-
### Example Kafka Plaintext Connection
22+
### Example Kafka SASL Plaintext Connection
2323

2424
```terraform
2525
resource "mongodbatlas_stream_connection" "test" {
@@ -33,7 +33,7 @@ resource "mongodbatlas_stream_connection" "test" {
3333
password = "somepassword"
3434
}
3535
security = {
36-
protocol = "PLAINTEXT"
36+
protocol = "SASL_PLAINTEXT"
3737
}
3838
config = {
3939
"auto.offset.reset": "latest"
@@ -42,7 +42,7 @@ resource "mongodbatlas_stream_connection" "test" {
4242
}
4343
```
4444

45-
### Example Kafka SSL Connection
45+
### Example Kafka SASL SSL Connection
4646

4747
```terraform
4848
resource "mongodbatlas_stream_connection" "test" {
@@ -56,7 +56,7 @@ resource "mongodbatlas_stream_connection" "test" {
5656
password = "somepassword"
5757
}
5858
security = {
59-
protocol = "SSL"
59+
protocol = "SASL_SSL"
6060
broker_public_certificate = "-----BEGIN CERTIFICATE-----<CONTENT>-----END CERTIFICATE-----"
6161
}
6262
config = {
@@ -112,7 +112,7 @@ If `type` is of value `Kafka` the following additional arguments are defined:
112112
* `authentication` - User credentials required to connect to a Kafka cluster. Includes the authentication type, as well as the parameters for that authentication mode. See [authentication](#authentication).
113113
* `bootstrap_servers` - Comma separated list of server addresses.
114114
* `config` - A map of Kafka key-value pairs for optional configuration. This is a flat object, and keys can have '.' characters.
115-
* `security` - Properties for the secure transport connection to Kafka. For SSL, this can include the trusted certificate to use. See [security](#security).
115+
* `security` - Properties for the secure transport connection to Kafka. For SASL_SSL, this can include the trusted certificate to use. See [security](#security).
116116
* `networking` - Networking Access Type can either be `PUBLIC` (default) or `VPC`. See [networking](#networking).
117117

118118
If `type` is of value `AWSLambda` the following additional arguments are defined:
@@ -131,7 +131,7 @@ If `type` is of value `Https` the following additional attributes are defined:
131131
### Security
132132

133133
* `broker_public_certificate` - A trusted, public x509 certificate for connecting to Kafka over SSL. String value of the certificate must be defined in the attribute.
134-
* `protocol` - Describes the transport type. Can be either `PLAINTEXT` or `SSL`.
134+
* `protocol` - Describes the transport type. Can be either `SASL_PLAINTEXT` or `SASL_SSL`.
135135

136136
### DBRoleToExecute
137137

docs/resources/stream_processor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ resource "mongodbatlas_stream_connection" "example-kafka" {
5353
"auto.offset.reset" : "earliest"
5454
}
5555
security = {
56-
protocol = "PLAINTEXT"
56+
protocol = "SASL_PLAINTEXT"
5757
}
5858
}
5959

examples/mongodbatlas_stream_connection/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ resource "mongodbatlas_stream_connection" "example-kafka-plaintext" {
3434
"auto.offset.reset" : "earliest"
3535
}
3636
security = {
37-
protocol = "PLAINTEXT"
37+
protocol = "SASL_PLAINTEXT"
3838
}
3939
networking = {
4040
access = {
@@ -59,7 +59,7 @@ resource "mongodbatlas_stream_connection" "example-kafka-ssl" {
5959
}
6060
security = {
6161
broker_public_certificate = var.kafka_ssl_cert
62-
protocol = "SSL"
62+
protocol = "SASL_SSL"
6363
}
6464
}
6565

examples/mongodbatlas_stream_connection/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ variable "kafka_password" {
2222
}
2323

2424
variable "kafka_ssl_cert" {
25-
description = "Public certificate used for SSL configuration to connect to your Kafka cluster"
25+
description = "Public certificate used for SASL_SSL configuration to connect to your Kafka cluster"
2626
type = string
2727
}
2828

examples/mongodbatlas_stream_processor/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ resource "mongodbatlas_stream_connection" "example-kafka" {
4141
"auto.offset.reset" : "earliest"
4242
}
4343
security = {
44-
protocol = "PLAINTEXT"
44+
protocol = "SASL_PLAINTEXT"
4545
}
4646
}
4747

internal/service/streamconnection/model_stream_connection_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const (
1818
instanceName = "InstanceName"
1919
authMechanism = "PLAIN"
2020
authUsername = "user1"
21-
securityProtocol = "SSL"
21+
securityProtocol = "SASL_SSL"
2222
bootstrapServers = "localhost:9092,another.host:9092"
2323
dbRole = "customRole"
2424
dbRoleType = "CUSTOM"

0 commit comments

Comments
 (0)