doc-exports/docs/dms/umn/kafka-ug-0003.html
Chen, Junjie ca9677b121 DMS UMN 20230201 Version
Reviewed-by: Antonova, Ekaterina <ekantono@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-authored-by: Chen, Junjie <chenjunjie@huawei.com>
Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
2024-07-22 13:20:04 +00:00

47 lines
12 KiB
HTML

<a name="kafka-ug-0003"></a><a name="kafka-ug-0003"></a>
<h1 class="topictitle1">Configuring Kafka Users</h1>
<div id="body0000001088319628"><p id="kafka-ug-0003__p1338294114214">DMS supports access control list (ACL) for topics. You can differentiate user permissions by granting users different permissions in a topic.</p>
<p id="kafka-ug-0003__p8060118">This section describes how to create users, reset the password, and delete users with ciphertext access enabled. For details about how to grant topic permissions for users, see <a href="kafka-ug-0002.html">Configuring Kafka Topic Permissions</a>.</p>
<p id="kafka-ug-0003__p1458774110512"><strong id="kafka-ug-0003__b12253131455816">The maximum number of users that can be created for a Kafka instance is 20 or 500. Check the console for the actual limit.</strong></p>
<p id="kafka-ug-0003__p1554081120315">There are two ways to create a user on the console. Accordingly, there are two ways to reset the user's password:</p>
<ul id="kafka-ug-0003__ul54301340154214"><li id="kafka-ug-0003__li1345517527428">Initial user: The user set when ciphertext access is enabled for the first time. If you forget your password, reset it by referring to <a href="#kafka-ug-0003__section125811843123418">Resetting the Password (for the Initial User)</a>.</li><li id="kafka-ug-0003__li1532124103319">Non-initial users: Users created on the <strong id="kafka-ug-0003__b17264134582611">Users</strong> page. If you forget your password, reset it by referring to <a href="#kafka-ug-0003__section728275161010">Resetting the User Password (for Non-initial Users)</a>.</li></ul>
<div class="section" id="kafka-ug-0003__section10943454010"><h4 class="sectiontitle">Prerequisites</h4><ul id="kafka-ug-0003__ul1174452131810"><li id="kafka-ug-0003__li132572558186">Ciphertext access has been enabled for the Kafka instance.</li><li id="kafka-ug-0003__li1123290191911">Kafka users can be configured only for Kafka instances in the <strong id="kafka-ug-0003__b157814449294">Running</strong> state.</li></ul>
</div>
<div class="section" id="kafka-ug-0003__section1591023011232"><h4 class="sectiontitle">Constraints</h4><ul id="kafka-ug-0003__ul1314511171243"><li id="kafka-ug-0003__li414511752414">This function is unavailable for single-node instances.</li><li id="kafka-ug-0003__li2058172082413">Resetting a user password will interrupt services. Change the user password in the client configuration file or code as soon as possible.</li></ul>
</div>
<div class="section" id="kafka-ug-0003__section1516984134111"><h4 class="sectiontitle">Creating a User</h4><ol id="kafka-ug-0003__ol1698374734110"><li id="kafka-ug-0003__li10427115412419"><span>Log in to the console.</span></li><li id="kafka-ug-0003__li14905725134512"><span>Click <span><img id="kafka-ug-0003__image6685105755610" src="en-us_image_0143929918.png"></span> in the upper left corner to select a region.</span><p><div class="note" id="kafka-ug-0003__note596412409275"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="kafka-ug-0003__p11964174020277">Select the region where your Kafka instance is located.</p>
</div></div>
</p></li><li id="kafka-ug-0003__li189561034172215"><span>Click <strong id="kafka-ug-0003__b212798716895711">Service List</strong> and choose <strong id="kafka-ug-0003__b98529038295711">Application</strong> &gt; <strong id="kafka-ug-0003__b203845457095711">Distributed Message Service</strong>. The Kafka instance list is displayed.</span></li><li id="kafka-ug-0003__li374185811449"><span>Click the desired Kafka instance to view its details.</span></li><li id="kafka-ug-0003__li1035485134519"><span>On the <strong id="kafka-ug-0003__b1259335712715">Users</strong> page, click <strong id="kafka-ug-0003__b111191227816">Create User</strong>.</span></li><li id="kafka-ug-0003__li1269185312462"><span>In the displayed <strong id="kafka-ug-0003__b43101316194316">Create User</strong> dialog box, set the username and password, and click <strong id="kafka-ug-0003__b43101416104317">OK</strong>.</span><p><p id="kafka-ug-0003__p156921510185414">After the user is created, grant permissions to the user by referring to <a href="kafka-ug-0002.html">Configuring Kafka Topic Permissions</a>.</p>
</p></li></ol>
</div>
<div class="section" id="kafka-ug-0003__section125811843123418"><a name="kafka-ug-0003__section125811843123418"></a><a name="section125811843123418"></a><h4 class="sectiontitle">Resetting the Password (for the Initial User)</h4><ol id="kafka-ug-0003__ol251622212416"><li id="kafka-ug-0003__li14877128154119"><span>Log in to the console.</span></li><li id="kafka-ug-0003__li178771728154117"><span>Click <span><img id="kafka-ug-0003__image36143063912" src="en-us_image_0143929918.png"></span> in the upper left corner to select a region.</span><p><div class="note" id="kafka-ug-0003__note19877192864117"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="kafka-ug-0003__p4877028184118">Select the region where your Kafka instance is located.</p>
</div></div>
</p></li><li id="kafka-ug-0003__li9877428144118"><span>Click <strong id="kafka-ug-0003__b11775207314">Service List</strong> and choose <strong id="kafka-ug-0003__b10775203313">Application</strong> &gt; <strong id="kafka-ug-0003__b1377920173116">Distributed Message Service</strong>. The Kafka instance list is displayed.</span></li><li id="kafka-ug-0003__li016683393117"><span>Reset the password for the initial user in either of the following ways.</span><p><ul id="kafka-ug-0003__ul1650453173112"><li id="kafka-ug-0003__li75012530317">Choose <strong id="kafka-ug-0003__b1752744783213">More</strong> &gt; <strong id="kafka-ug-0003__b4527194753219">Reset Kafka Password</strong> in the row containing the desired Kafka instance.</li><li id="kafka-ug-0003__li1437953121316">Click the desired Kafka instance to view its details. Choose <strong id="kafka-ug-0003__b8950527143314">More</strong> &gt; <strong id="kafka-ug-0003__b095092718331">Reset Kafka Password</strong> in the upper left corner.</li><li id="kafka-ug-0003__li1469112712320">Click the desired Kafka instance to view its details. On the <strong id="kafka-ug-0003__b21101238123319">Basic Information</strong> page, click <strong id="kafka-ug-0003__b14111338193311">Reset Password</strong> next to <strong id="kafka-ug-0003__b131111738153312">Username</strong> in the <strong id="kafka-ug-0003__b81112388332">Connection</strong> section.</li><li id="kafka-ug-0003__li2114142418399">Click the desired Kafka instance to view its details. On the <strong id="kafka-ug-0003__b8286154443312">Users</strong> page, click <strong id="kafka-ug-0003__b16286134414338">Reset Password</strong> in the row containing the desired user.</li></ul>
</p></li><li id="kafka-ug-0003__li387710282413"><span>Enter and confirm a new password, and click <strong id="kafka-ug-0003__b03978598336">OK</strong>.</span><p><ul id="kafka-ug-0003__ul1187852812416"><li id="kafka-ug-0003__li387892819419">If the password is successfully reset, a success message is displayed.</li><li id="kafka-ug-0003__li148781287418">If the password fails to be reset, a failure message is displayed. In this case, reset the password again. If you still fail to reset the password after multiple attempts, contact customer service.</li></ul>
<div class="note" id="kafka-ug-0003__note16878142884119"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="kafka-ug-0003__p138784282410">The system will display a success message only after the password is successfully reset on all brokers.</p>
</div></div>
</p></li></ol>
</div>
<div class="section" id="kafka-ug-0003__section728275161010"><a name="kafka-ug-0003__section728275161010"></a><a name="section728275161010"></a><h4 class="sectiontitle">Resetting the User Password (for Non-initial Users)</h4><ol id="kafka-ug-0003__ol22913281193920"><li id="kafka-ug-0003__li5363940193920"><span>Log in to the console.</span></li><li id="kafka-ug-0003__li9198519213"><span>Click <span><img id="kafka-ug-0003__image1835765291" src="en-us_image_0143929918.png"></span> in the upper left corner to select a region.</span><p><div class="note" id="kafka-ug-0003__note61910516215"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="kafka-ug-0003__p181912502116">Select the region where your Kafka instance is located.</p>
</div></div>
</p></li><li id="kafka-ug-0003__li61911522111"><span>Click <strong id="kafka-ug-0003__b176245228314">Service List</strong> and choose <strong id="kafka-ug-0003__b13624172211314">Application</strong> &gt; <strong id="kafka-ug-0003__b12624192213111">Distributed Message Service</strong>. The Kafka instance list is displayed.</span></li><li id="kafka-ug-0003__li18225237173632"><span>Click the desired Kafka instance to view its details.</span></li><li id="kafka-ug-0003__li7459155164515"><span>On the <strong id="kafka-ug-0003__b021281211401">Users</strong> page, click <strong id="kafka-ug-0003__b42137122406">Reset Password</strong> in the row containing the desired user.</span></li><li id="kafka-ug-0003__li10847924172819"><span>Enter and confirm a new password, and click <strong id="kafka-ug-0003__b1591511193420">OK</strong>.</span><p><ul id="kafka-ug-0003__ul6531112611521"><li id="kafka-ug-0003__li253102610528">If the password is successfully reset, a success message is displayed.</li><li id="kafka-ug-0003__li453172616529">If the password fails to be reset, a failure message is displayed. In this case, reset the password again. If you still fail to reset the password after multiple attempts, contact customer service.</li></ul>
<div class="note" id="kafka-ug-0003__note42331528103619"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="kafka-ug-0003__p205596336367">The system will display a success message only after the password is successfully reset on all brokers.</p>
</div></div>
</p></li></ol>
</div>
<div class="section" id="kafka-ug-0003__section14541133610484"><h4 class="sectiontitle">Deleting a User</h4><ol id="kafka-ug-0003__ol1299471063115"><li id="kafka-ug-0003__li1443225255017"><span>Log in to the console.</span></li><li id="kafka-ug-0003__li14432125216504"><span>Click <span><img id="kafka-ug-0003__image1875025979" src="en-us_image_0143929918.png"></span> in the upper left corner to select a region.</span><p><div class="note" id="kafka-ug-0003__note543215210506"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="kafka-ug-0003__p5432195217506">Select the region where your Kafka instance is located.</p>
</div></div>
</p></li><li id="kafka-ug-0003__li154321352165017"><span>Click <strong id="kafka-ug-0003__b2125690036">Service List</strong> and choose <strong id="kafka-ug-0003__b209115655">Application</strong> &gt; <strong id="kafka-ug-0003__b537964125">Distributed Message Service</strong>. The Kafka instance list is displayed.</span></li><li id="kafka-ug-0003__li843215245012"><span>Click the desired Kafka instance to view its details.</span></li><li id="kafka-ug-0003__li133275219334"><span>Delete a user in either of the following ways:</span><p><ul id="kafka-ug-0003__ul202593219346"><li id="kafka-ug-0003__li10259182113344">On the <strong id="kafka-ug-0003__b17837202313438">Users</strong> page, click <strong id="kafka-ug-0003__b383772319432">Delete</strong> in the row containing the desired user.</li><li id="kafka-ug-0003__li62421826123420">On the <strong id="kafka-ug-0003__b737611514443">Users</strong> page, select one or more users and click <strong id="kafka-ug-0003__b17376175174418">Delete</strong> above the list.</li></ul>
<div class="note" id="kafka-ug-0003__note1781928182719"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="kafka-ug-0003__p2082088102716">The initial user set when ciphertext access is enabled for the first time cannot be deleted.</p>
</div></div>
</p></li><li id="kafka-ug-0003__li1343235275015"><span>In the displayed <strong id="kafka-ug-0003__b233134374614">Delete User</strong> dialog box, click <strong id="kafka-ug-0003__b0333154314614"></strong><strong id="kafka-ug-0003__b633512434466">OK</strong> to delete the user.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="kafka-ug-0061.html">Configuring Kafka Access Control</a></div>
</div>
</div>