doc-exports/docs/dcs/umn/cache-instance-password.html
Chen, Junjie 2b90aa9fff DCS UMN 20240313 version
Reviewed-by: Mützel, Andrea <andrea.muetzel@t-systems.com>
Co-authored-by: Chen, Junjie <chenjunjie@huawei.com>
Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
2024-04-10 14:46:00 +00:00

25 lines
3.8 KiB
HTML

<a name="cache-instance-password"></a><a name="cache-instance-password"></a>
<h1 class="topictitle1">DCS Instance Passwords</h1>
<div id="body8662426"><p id="cache-instance-password__en-us_topic_0157078204_p985222322411">Passwords can be configured to control access to your DCS instances, ensuring the security of your data.</p>
<div class="note" id="cache-instance-password__note5179111618488"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="cache-instance-password__p5419067515298">After 5 consecutive incorrect password attempts, the account for accessing the chosen DCS instance will be locked for 5 minutes. Passwords cannot be changed during the lockout period.</p>
<p id="cache-instance-password__p1537135716305">The password must meet the following requirements:</p>
<ul id="cache-instance-password__ul1537117578305"><li id="cache-instance-password__li8371195793011">Cannot be left blank.</li><li id="cache-instance-password__li57052386429">Cannot be the same as the old password.</li><li id="cache-instance-password__li18371185712308">Can contain 8 to 32 characters.</li><li id="cache-instance-password__li13371115743020">Must contain at least three of the following character types:<ul id="cache-instance-password__ul10371357103018"><li id="cache-instance-password__li437195713308">Lowercase letters</li><li id="cache-instance-password__li16371125703015">Uppercase letters</li><li id="cache-instance-password__li1737111574305">Digits</li><li id="cache-instance-password__li113711573309">Special characters (`~!@#$^&amp;*()-_=+\|{},&lt;.&gt;/?)</li></ul>
</li></ul>
</div></div>
<div class="section" id="cache-instance-password__en-us_topic_0157078204_section4863101016391"><h4 class="sectiontitle">Using Passwords Securely</h4><ol id="cache-instance-password__en-us_topic_0157078204_ol2887434144012"><li id="cache-instance-password__en-us_topic_0157078204_li38871534174016">Hide the password when using redis-cli.<p id="cache-instance-password__en-us_topic_0157078204_p188144904012"><a name="cache-instance-password__en-us_topic_0157078204_li38871534174016"></a><a name="en-us_topic_0157078204_li38871534174016"></a>If the <strong id="cache-instance-password__en-us_topic_0157078204_b188123233553">-a &lt;password&gt;</strong> option is used in redis-cli in Linux, the password is prone to leakage because it is logged and kept in the history. You are advised not to use <strong id="cache-instance-password__b266115341594">-a &lt;password&gt;</strong> when running commands in redis-cli. After connecting to Redis, run the <strong id="cache-instance-password__b136618340913">auth</strong> command to complete authentication as shown in the following example:</p>
<pre class="screen" id="cache-instance-password__en-us_topic_0157078204_screen0635125654716">$ redis-cli -h 192.168.0.148 -p 6379
redis 192.168.0.148:6379&gt;auth <em id="cache-instance-password__i16439662062">{yourPassword}</em>
OK
redis 192.168.0.148:6379&gt;</pre>
</li><li id="cache-instance-password__en-us_topic_0157078204_li1188711348407">Use interactive password authentication or switch between users with different permissions.<p id="cache-instance-password__en-us_topic_0157078204_p3411122543917"><a name="cache-instance-password__en-us_topic_0157078204_li1188711348407"></a><a name="en-us_topic_0157078204_li1188711348407"></a>If the script involves DCS instance access, use interactive password authentication. To enable automatic script execution, manage the script as another user and authorize execution using sudo.</p>
</li><li id="cache-instance-password__en-us_topic_0157078204_li1886081173813">Use an encryption module in your application to encrypt the password.</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dcs-ug-0312039.html">Managing Passwords</a></div>
</div>
</div>