doc-exports/docs/apm/umn/apm_07_0034.html
Li, Qiao 01222743d0 APM2.0 UMN 20230825 version
Reviewed-by: Mützel, Andrea <andrea.muetzel@t-systems.com>
Co-authored-by: Li, Qiao <qiaoli@huawei.com>
Co-committed-by: Li, Qiao <qiaoli@huawei.com>
2024-06-18 07:09:10 +00:00

37 lines
8.5 KiB
HTML

<a name="apm_07_0034"></a><a name="apm_07_0034"></a>
<h1 class="topictitle1">Access Keys</h1>
<div id="body8662426"><p id="apm_07_0034__en-us_topic_0000001086591081_p840910345471">Access Key ID (AK) and Secret Access Key (SK) are your long-term identity credentials. JavaAgents report data with an AK. AK is used together with SK to sign requests cryptographically, ensuring that the requests are secret, complete, and correct.</p>
<div class="section" id="apm_07_0034__en-us_topic_0000001086591081_section432202375117"><h4 class="sectiontitle">Precautions</h4><p id="apm_07_0034__en-us_topic_0000001086591081_p1129102715517">A user can create a maximum of two access keys with identical permissions and unlimited validity. Keep your access keys secure and change them periodically for security purposes. To change an access key, delete it and create a new one.</p>
<div class="note" id="apm_07_0034__en-us_topic_0000001086591081_note18991205619410"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="apm_07_0034__en-us_topic_0000001086591081_p10237166162920">APM allows you to encrypt and decrypt the SK in the <strong id="apm_07_0034__en-us_topic_0000001086591081_b1756144053713">apm.config</strong> file.</p>
<p id="apm_07_0034__en-us_topic_0000001086591081_p130895884110">The encryption and decryption process is as follows:</p>
<ol id="apm_07_0034__en-us_topic_0000001086591081_ol178691617144318"><li id="apm_07_0034__en-us_topic_0000001086591081_li14822182212432">Compile a Java class, for example, <strong id="apm_07_0034__en-us_topic_0000001086591081_b850445311011">com.demo.DecryptDemo</strong>, and add a decryption method, for example, decrypt both the input and output to character strings.</li><li id="apm_07_0034__en-us_topic_0000001086591081_li1061692644310">Compile the decryption method to decrypt the SK and return the decrypted value.</li><li id="apm_07_0034__en-us_topic_0000001086591081_li1383816298435">Pack the <strong id="apm_07_0034__en-us_topic_0000001086591081_b1765614427271">com.demo.DecryptDemo</strong> class into a JAR package and place this JAR package and its dependent packages in the <strong id="apm_07_0034__en-us_topic_0000001086591081_b2216714122812">apm-javaagent/ext</strong> folder of JavaAgent.</li><li id="apm_07_0034__en-us_topic_0000001086591081_li387031716437">Add the following content to the <strong id="apm_07_0034__en-us_topic_0000001086591081_b1176192815514">apm.config</strong> file:<p id="apm_07_0034__en-us_topic_0000001086591081_p230810581418"><strong id="apm_07_0034__en-us_topic_0000001086591081_b15462185412432">decrypt.className=com.demo.DecryptDemo</strong></p>
<p id="apm_07_0034__en-us_topic_0000001086591081_p93081358184119"><strong id="apm_07_0034__en-us_topic_0000001086591081_b1646485419437">decrypt.methodName=decrypt</strong></p>
<p id="apm_07_0034__en-us_topic_0000001086591081_p20308165813414"><strong id="apm_07_0034__en-us_topic_0000001086591081_b16807559174312">secret.key={</strong><em id="apm_07_0034__en-us_topic_0000001086591081_i381125916435">Character string encrypted by users</em><strong id="apm_07_0034__en-us_topic_0000001086591081_b7808105911438">}</strong></p>
</li></ol>
</div></div>
</div>
<div class="section" id="apm_07_0034__en-us_topic_0000001086591081_section1967311307212"><h4 class="sectiontitle">Adding an Access Key</h4><ol id="apm_07_0034__en-us_topic_0000001086591081_ol1399241914513"><li id="apm_07_0034__en-us_topic_0000001086591081_li1729110174716"><span>Log in to the management console.</span></li><li id="apm_07_0034__en-us_topic_0000001086591081_li10291084714"><span>Click <span><img id="apm_07_0034__en-us_topic_0000001086591081_image1724717245152" src="en-us_image_0000001542397796.png"></span> on the left and choose <strong id="apm_07_0034__en-us_topic_0000001086591081_b132471124171512">Management &amp; Deployment</strong> &gt; <strong id="apm_07_0034__en-us_topic_0000001086591081_b11248142431512">Application Performance Management</strong>.</span></li><li id="apm_07_0034__en-us_topic_0000001086591081_li39932196512"><span>In the navigation pane, choose <strong id="apm_07_0034__en-us_topic_0000001086591081_b205766114511">System Management</strong> &gt; <strong id="apm_07_0034__en-us_topic_0000001086591081_b14438153017513">Access Keys</strong>.</span></li><li id="apm_07_0034__en-us_topic_0000001086591081_li1499313191858"><span>On the page that is displayed, click <strong id="apm_07_0034__en-us_topic_0000001086591081_b151003015226">Add Access Key</strong>.</span><p><div class="fignone" id="apm_07_0034__en-us_topic_0000001086591081_fig12574165612458"><span class="figcap"><b>Figure 1 </b>Adding an AK/SK</span><br><span><img id="apm_07_0034__en-us_topic_0000001086591081_image15574205619451" src="en-us_image_0000001677146973.png" title="Click to enlarge" class="imgResize"></span></div>
</p></li><li id="apm_07_0034__en-us_topic_0000001086591081_li199316191957"><span>Add an access key description and click <strong id="apm_07_0034__en-us_topic_0000001086591081_b783553223019">Yes</strong> to generate an access key.</span><p><p id="apm_07_0034__en-us_topic_0000001086591081_p1119224644419">To modify the description, click <strong id="apm_07_0034__en-us_topic_0000001086591081_b3527184416308">Modify</strong> in the <strong id="apm_07_0034__en-us_topic_0000001086591081_b145281044153010">Operation</strong> column in the row that contains the target access key.</p>
</p></li></ol>
</div>
<div class="section" id="apm_07_0034__en-us_topic_0000001086591081_section486210549569"><h4 class="sectiontitle">Deleting an Access Key</h4><ol id="apm_07_0034__en-us_topic_0000001086591081_ol177251323455"><li id="apm_07_0034__en-us_topic_0000001086591081_li1215923045417"><span>In the navigation pane, choose <strong id="apm_07_0034__en-us_topic_0000001086591081_b893015319304">System Management</strong> &gt; <strong id="apm_07_0034__en-us_topic_0000001086591081_b593023103018">Access Keys</strong>.</span></li><li id="apm_07_0034__en-us_topic_0000001086591081_li1372511232517"><span>On the <strong id="apm_07_0034__en-us_topic_0000001086591081_b796884382410">Access Keys</strong> page, locate the row that contains the target access key and click <strong id="apm_07_0034__en-us_topic_0000001086591081_b744135218245">Delete</strong> in the <strong id="apm_07_0034__en-us_topic_0000001086591081_b184265552243">Operation</strong> column.</span></li><li id="apm_07_0034__en-us_topic_0000001086591081_li472512231851"><span>On the page that is displayed, click <strong id="apm_07_0034__en-us_topic_0000001086591081_b125355179253">Yes</strong> to delete the access key.</span></li></ol>
</div>
<div class="section" id="apm_07_0034__en-us_topic_0000001086591081_section75262575568"><h4 class="sectiontitle">Enabling or Disabling an Access Key</h4><p id="apm_07_0034__en-us_topic_0000001086591081_p098990185712">Each access key is enabled by default. To disable it, do as follows:</p>
<ol id="apm_07_0034__en-us_topic_0000001086591081_ol183634260519"><li id="apm_07_0034__en-us_topic_0000001086591081_li118141835165417"><span>In the navigation pane, choose <strong id="apm_07_0034__en-us_topic_0000001086591081_b1750743424210">System Management</strong> &gt; <strong id="apm_07_0034__en-us_topic_0000001086591081_b250718344426">Access Keys</strong>.</span></li><li id="apm_07_0034__en-us_topic_0000001086591081_li5363026556"><span>On the <strong id="apm_07_0034__en-us_topic_0000001086591081_b1027424682610">Access Keys</strong> page, locate the row that contains the target access key and click <strong id="apm_07_0034__en-us_topic_0000001086591081_b98581853162610">Disable</strong> in the <strong id="apm_07_0034__en-us_topic_0000001086591081_b12946185632617">Operation</strong> column.</span></li><li id="apm_07_0034__en-us_topic_0000001086591081_li19363162619516"><span>On the page that is displayed, click <strong id="apm_07_0034__en-us_topic_0000001086591081_b474641132719">Yes</strong> to disable the access key.</span><p><p id="apm_07_0034__en-us_topic_0000001086591081_p11611848330">To enable it again, click <strong id="apm_07_0034__en-us_topic_0000001086591081_b361114812714">Enable</strong> in the row that contains the access key. On the page that is displayed, click <strong id="apm_07_0034__en-us_topic_0000001086591081_b8666191412712">Yes</strong>.</p>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="apm_07_0033.html">System Management</a></div>
</div>
</div>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>