Skip to content

Commit 14466a2

Browse files
authored
docs: create kafka instance settings guide and in-app help content (#553)
1 parent 6a8d45d commit 14466a2

File tree

3 files changed

+182
-0
lines changed

3 files changed

+182
-0
lines changed
Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
////
2+
START GENERATED ATTRIBUTES
3+
WARNING: This content is generated by running npm --prefix .build run generate:attributes
4+
////
5+
6+
//All OpenShift Application Services
7+
:org-name: Application Services
8+
:product-long-rhoas: OpenShift Application Services
9+
:community:
10+
:imagesdir: ./images
11+
:property-file-name: app-services.properties
12+
:samples-git-repo: https://github.com/redhat-developer/app-services-guides
13+
:base-url: https://github.com/redhat-developer/app-services-guides/tree/main/docs/
14+
:sso-token-url: https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
15+
:cloud-console-url: https://console.redhat.com/
16+
:service-accounts-url: https://console.redhat.com/application-services/service-accounts
17+
18+
//OpenShift Application Services CLI
19+
:base-url-cli: https://github.com/redhat-developer/app-services-cli/tree/main/docs/
20+
:command-ref-url-cli: commands
21+
:installation-guide-url-cli: rhoas/rhoas-cli-installation/README.adoc
22+
:service-contexts-url-cli: rhoas/rhoas-service-contexts/README.adoc
23+
24+
//OpenShift Streams for Apache Kafka
25+
:product-long-kafka: OpenShift Streams for Apache Kafka
26+
:product-kafka: Streams for Apache Kafka
27+
:product-version-kafka: 1
28+
:service-url-kafka: https://console.redhat.com/application-services/streams/
29+
:getting-started-url-kafka: kafka/getting-started-kafka/README.adoc
30+
:kafka-bin-scripts-url-kafka: kafka/kafka-bin-scripts-kafka/README.adoc
31+
:kafkacat-url-kafka: kafka/kcat-kafka/README.adoc
32+
:quarkus-url-kafka: kafka/quarkus-kafka/README.adoc
33+
:nodejs-url-kafka: kafka/nodejs-kafka/README.adoc
34+
:getting-started-rhoas-cli-url-kafka: kafka/rhoas-cli-getting-started-kafka/README.adoc
35+
:topic-config-url-kafka: kafka/topic-configuration-kafka/README.adoc
36+
:consumer-config-url-kafka: kafka/consumer-configuration-kafka/README.adoc
37+
:access-mgmt-url-kafka: kafka/access-mgmt-kafka/README.adoc
38+
:metrics-monitoring-url-kafka: kafka/metrics-monitoring-kafka/README.adoc
39+
:service-binding-url-kafka: kafka/service-binding-kafka/README.adoc
40+
:message-browsing-url-kafka: kafka/message-browsing-kafka/README.adoc
41+
42+
//OpenShift Service Registry
43+
:product-long-registry: OpenShift Service Registry
44+
:product-registry: Service Registry
45+
:registry: Service Registry
46+
:product-version-registry: 1
47+
:service-url-registry: https://console.redhat.com/application-services/service-registry/
48+
:getting-started-url-registry: registry/getting-started-registry/README.adoc
49+
:quarkus-url-registry: registry/quarkus-registry/README.adoc
50+
:getting-started-rhoas-cli-url-registry: registry/rhoas-cli-getting-started-registry/README.adoc
51+
:access-mgmt-url-registry: registry/access-mgmt-registry/README.adoc
52+
:content-rules-registry: https://access.redhat.com/documentation/en-us/red_hat_openshift_service_registry/1/guide/9b0fdf14-f0d6-4d7f-8637-3ac9e2069817[Supported Service Registry content and rules]
53+
:service-binding-url-registry: registry/service-binding-registry/README.adoc
54+
55+
//OpenShift Connectors
56+
:connectors: Connectors
57+
:product-long-connectors: OpenShift Connectors
58+
:product-connectors: Connectors
59+
:product-version-connectors: 1
60+
:service-url-connectors: https://console.redhat.com/application-services/connectors
61+
:getting-started-url-connectors: connectors/getting-started-connectors/README.adoc
62+
:getting-started-rhoas-cli-url-connectors: connectors/rhoas-cli-getting-started-connectors/README.adoc
63+
64+
//OpenShift API Designer
65+
:product-long-api-designer: OpenShift API Designer
66+
:product-api-designer: API Designer
67+
:product-version-api-designer: 1
68+
:service-url-api-designer: https://console.redhat.com/application-services/api-designer/
69+
:getting-started-url-api-designer: api-designer/getting-started-api-designer/README.adoc
70+
71+
//OpenShift API Management
72+
:product-long-api-management: OpenShift API Management
73+
:product-api-management: API Management
74+
:product-version-api-management: 1
75+
:service-url-api-management: https://console.redhat.com/application-services/api-management/
76+
77+
////
78+
END GENERATED ATTRIBUTES
79+
////
80+
81+
[id="chap-configuring-kafka-instance-settings"]
82+
= Configuring Kafka instance settings in {product-long-kafka}
83+
ifdef::context[:parent-context: {context}]
84+
:context: configuring-kafka-instance-settings
85+
86+
// Purpose statement for the assembly
87+
[role="_abstract"]
88+
--
89+
As a developer of applications and services, you can review and modify settings for your Kafka instances. By modifying these settings, you can configure your Kafka instances to suit your particular environment.
90+
--
91+
92+
93+
[id="proc-editing-kafka-instance-settings_{context}"]
94+
== Reviewing and editing Kafka instance settings in {product-kafka}
95+
96+
[role="_abstract"]
97+
Use the {product-long-kafka} web console to review and adjust settings for a Kafka instance.
98+
99+
As an alternative to using the {product-kafka} web console, you can use the `rhoas` command-line interface (CLI) to update certain Kafka instance settings, as shown in the following example command:
100+
101+
.Example CLI command to disable connection reauthentication
102+
[source]
103+
----
104+
rhoas kafka update --reauthentication false
105+
----
106+
107+
For a list of Kafka instance settings that you can update using the CLI, see the `rhoas kafka update` entry in the {base-url-cli}{command-ref-url-cli}[CLI command reference (rhoas)^].
108+
109+
.Prerequisites
110+
* You have created a Kafka instance. To learn how to do this, see {base-url}{getting-started-url-kafka}[Getting started with {product-long-kafka}^].
111+
112+
.Procedure
113+
. In the {product-kafka} {service-url-kafka}[web console^], click *Kafka Instances* and select a Kafka instance.
114+
. Select the *Settings* tab.
115+
. Adjust any of the settings as needed.
116+
117+
[role="_additional-resources"]
118+
.Additional resources
119+
* {base-url}{getting-started-url-kafka}[Getting started with {product-long-kafka}^]
120+
* {base-url}{getting-started-rhoas-cli-url-kafka}[Getting started with the rhoas CLI for OpenShift Streams for Apache Kafka^]
121+
* {base-url-cli}{command-ref-url-cli}[CLI command reference (rhoas)^]
122+
123+
124+
[id="ref-kafka-instance-settings_{context}"]
125+
== Kafka instance settings in {product-kafka}
126+
127+
[role="_abstract"]
128+
You can edit the following Kafka instance settings in {product-long-kafka}.
129+
130+
Connection re-authentication::
131+
+
132+
--
133+
When a client connects to a Kafka instance, the session lasts for five minutes.
134+
At that point, the client must reauthenticate to stay connected.
135+
Many Kafka clients automatically reauthenticate to remain connected,
136+
but some Kafka clients do not.
137+
138+
If you use a Kafka client that does not support connection reauthentication,
139+
the client is disconnected when the five-minute session expires.
140+
To prevent the client from being disconnected every five minutes,
141+
disable the `Connection re-authentication` setting.
142+
143+
Before disabling connection re-authentication,
144+
you should be aware of the security risks.
145+
If you disable connection re-authentication,
146+
and then an attacker obtains credentials to your Kafka instance,
147+
they will be able to stay connected indefinitely.
148+
Deactivating the user account or service account will not close the connections that the attacker has opened.
149+
In this scenario, you would need to add Access Control List rules (ACLs) to prevent the unauthorized connections from performing any operations
150+
(see {base-url}{access-mgmt-url-kafka}[Managing account access in OpenShift Streams for Apache Kafka^]).
151+
ifndef::community[]
152+
You could also contact Red Hat Support for assistance.
153+
endif::[]
154+
155+
NOTE: Disabling connection re-authentication will restart your Kafka instance.
156+
--
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Tags to be kept empty for now. Tags will specify where in the app descriptions will be available.
2+
# Titles are "dictionary" articles titles.
3+
# Links to be external only. We don't know yet whether referencing to other side panels will be supported but referencing to in-depth docs is expected to be supported.
4+
5+
- name: kafka-connection-reauthentication
6+
tags:
7+
title: Connection re-authentication
8+
content: |-
9+
When a client connects to a Kafka instance, the session lasts for five minutes. At that point, the client must reauthenticate to stay connected. Many Kafka clients automatically reauthenticate to remain connected, but some Kafka clients do not.
10+
11+
If you use a Kafka client that does not support connection reauthentication, the client is disconnected when the five-minute session expires. To prevent the client from being disconnected every five minutes, disable the **Connection re-authentication** setting.
12+
13+
Before disabling connection re-authentication, you should be aware of the security risks. If you disable connection re-authentication, and then an attacker obtains credentials to your Kafka instance, they will be able to stay connected indefinitely. Deactivating the user account or service account will not close the connections that the attacker has opened. In this scenario, you would need to add Access Control List rules (ACLs) to prevent the unauthorized connections from performing any operations.
14+
15+
You could also contact Red Hat Support for assistance.
16+
17+
>**NOTE:** Disabling connection re-authentication will restart your Kafka instance.
18+
# This array has currently required due to an internal quickstart bug. It always expect the array to be defined. https://github.com/patternfly/patternfly-quickstarts/pull/162
19+
links:
20+
- text: 'Managing account access in Red Hat OpenShift Streams for Apache Kafka'
21+
href: https://access.redhat.com/documentation/en-us/red_hat_openshift_streams_for_apache_kafka/1/guide/2f4bf7cf-5de2-4254-8274-6bf71673f407
22+
isExternal: true
23+
24+
# Add additional kafka instance settings here.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
kind: HelpTopic
2+
name: kafka-connection-reauthentication

0 commit comments

Comments
 (0)