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
Copy file name to clipboardExpand all lines: docs/kafka/service-binding-kafka/README.adoc
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -322,10 +322,10 @@ You are prompted to provide an access token. The RHOAS Operator requires this to
322
322
The RHOAS Operator uses the API token to create a `KafkaConnection` object on your OpenShift cluster. When this process is complete, you see output like the following example:
323
323
+
324
324
.Example output from rhoas cluster connect command
325
-
[source,options="nowrap"]
325
+
[source,subs="+quotes",options="nowrap"]
326
326
----
327
327
Service Account Secret "rh-cloud-services-service-account" created successfully
KafkaConnection resource "my-kafka-instance" has been created
331
331
Waiting for status from KafkaConnection resource.
@@ -341,22 +341,22 @@ The RHOAS Operator also creates a `KafkaConnection` object for your Kafka instan
341
341
. Set Access Control List (ACL) permissions to enable the new service account created by the RHOAS Operator to access resources in your Kafka instance. To set permissions, use the `Client ID` value for the service account.
342
342
+
343
343
.RHOAS CLI command to set access permissions for service account
In the preceding command, replace __<my-client-id>__ with the `Client ID` value for the new service account. This value was previously shown on the command line.
388
-
+
389
387
You should see output like the following example:
390
388
+
391
389
.Example output when setting Kafka access permissions
srvc-acct-8c95ca5e1225-94a-41f1-ab97-aacf3df1 ALLOW | DESCRIBE TOPIC is "*"
399
-
srvc-acct-8c95ca5e1225-94a-41f1-ab97-aacf3df1 ALLOW | READ TOPIC is "*"
400
-
srvc-acct-8c95ca5e1225-94a-41f1-ab97-aacf3df1 ALLOW | READ GROUP is "*"
401
-
srvc-acct-8c95ca5e1225-94a-41f1-ab97-aacf3df1 ALLOW | WRITE TOPIC is "*"
402
-
srvc-acct-8c95ca5e1225-94a-41f1-ab97-aacf3df1 ALLOW | CREATE TOPIC is "*"
403
-
srvc-acct-8c95ca5e1225-94a-41f1-ab97-aacf3df1 ALLOW | WRITE TRANSACTIONAL_ID is "*"
404
-
srvc-acct-8c95ca5e1225-94a-41f1-ab97-aacf3df1 ALLOW | DESCRIBE TRANSACTIONAL_ID is "*"
394
+
PRINCIPAL (7) PERMISSION DESCRIPTION
395
+
-------------- -----------------------------
396
+
_<client_id>_ALLOW | DESCRIBE TOPIC is "\*"
397
+
_<client_id>_ ALLOW | READ TOPIC is "*"
398
+
_<client_id>_ALLOW | READ GROUP is "\*"
399
+
_<client_id>_ ALLOW | WRITE TOPIC is "*"
400
+
_<client_id>_ALLOW | CREATE TOPIC is "\*"
401
+
_<client_id>_ ALLOW | WRITE TRANSACTIONAL_ID is "*"
402
+
_<client_id>_ ALLOW | DESCRIBE TRANSACTIONAL_ID is "*"
405
403
406
404
? Are you sure you want to create the listed ACL rules (y/N) Yes
407
405
✔️ ACLs successfully created in the Kafka instance "my-kafka-instance"
@@ -414,13 +412,11 @@ In this example, the permissions you create allow applications to use the servic
414
412
.Setting {registry} access permissions for the service account
415
413
[source,options="nowrap",subs="+quotes"]
416
414
----
417
-
rhoas service-registry role add --role=manager --service-account __<my-client-id>__
415
+
rhoas service-registry role add --role=manager --service-account _<client_id>_
418
416
Updating role for principal
419
417
Role was successfully applied
420
418
----
421
419
+
422
-
In the preceding command, replace __<my-client-id>__ with the `Client ID` value for the new service account. This value was previously shown on the command line.
423
-
+
424
420
In this example, the `manager` role that you assign to the service account allows applications to use the service account to view and write to schemas in the {registry} instance.
425
421
426
422
. Use the OpenShift CLI to verify that the RHOAS Operator successfully created the `KafkaConnection` or `ServiceRegistryConnection` object, as shown in the following example:
0 commit comments