<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Token Expiry - After X days the token auto deletes.... in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Token-Expiry-after-X-days-the-token-auto-deletes/m-p/237596#M31176</link>
    <description>&lt;P&gt;When a token expires, it ceases to function, meaning attempts to use it for authentication will result in a 401 error. Despite this, the token remains visible in the UI and is accessible through the token API endpoints (/api/v1/tokens/&amp;lt;ID&amp;gt; or /api/v2/apiTokens/&amp;lt;ID&amp;gt;). Seven days after its expiration, the token is automatically deleted, at which point it will no longer appear in the UI, and the token API will return a 404 error for that specific token ID.&lt;/P&gt;&lt;P&gt;It's also worth noting that a token's status can be changed to disabled, either via the API or by altering the "Enabled" toggle within the token UI.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 23:40:28 GMT</pubDate>
    <dc:creator>JoseRomero</dc:creator>
    <dc:date>2024-02-20T23:40:28Z</dc:date>
    <item>
      <title>Token Expiry: after X days the token auto deletes</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Token-Expiry-after-X-days-the-token-auto-deletes/m-p/237583#M31174</link>
      <description>&lt;P&gt;In order to maintain strict control over tokens we typically attach an expiration date where applicable now that we are in the DPS model. So we had a team who requested a PaaS token permission set, we put it to expire at the end of January. The team has since then requested an extension which has been granted. Yes, you cannot edit/alter token access after they are formulated. So I wont be able to extend the expiry date, which is fine. But what I can do is clone the token and provide a new one with another month window.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is where things get odd.... Dynatrace doesn't mention in any documentation that I found that it will auto delete token after it expires for x amount of days.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the original token:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChadTurner_0-1708454234917.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17716i0069551543B31959/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChadTurner_0-1708454234917.png" alt="ChadTurner_0-1708454234917.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2 weeks after the expiry the team requested a token extension. To which I tossed in the Token ID but it was no where to be found in the system. Which prompted me to pull the audit log where we find this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChadTurner_1-1708454367924.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17717iC8A0E9D215240F0F/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChadTurner_1-1708454367924.png" alt="ChadTurner_1-1708454367924.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Notice the Token worker has deleted the 'Expired' token on the 4th of February.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChadTurner_2-1708454432318.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17718iD0A54A2FB14421B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChadTurner_2-1708454432318.png" alt="ChadTurner_2-1708454432318.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now I'm all for keeping a clean environment, but this caught me off guard. The token expired on Jan. 27th and was auto deleted on Feb 4th, 6 days later.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It could have been a fluke... so we created a test one called "Poof - The Magic Token" by Wednesday/Thursday we will see if the system deleted the token. Its already marked as expired:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChadTurner_3-1708454626942.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17719i6A28FBC60045197B/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChadTurner_3-1708454626942.png" alt="ChadTurner_3-1708454626942.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChadTurner_4-1708454681934.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17720i7AD6F117A8955862/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChadTurner_4-1708454681934.png" alt="ChadTurner_4-1708454681934.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know what you may have run into with this as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 08:58:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Token-Expiry-after-X-days-the-token-auto-deletes/m-p/237583#M31174</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2024-03-07T08:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Token Expiry - After X days the token auto deletes....</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Token-Expiry-after-X-days-the-token-auto-deletes/m-p/237596#M31176</link>
      <description>&lt;P&gt;When a token expires, it ceases to function, meaning attempts to use it for authentication will result in a 401 error. Despite this, the token remains visible in the UI and is accessible through the token API endpoints (/api/v1/tokens/&amp;lt;ID&amp;gt; or /api/v2/apiTokens/&amp;lt;ID&amp;gt;). Seven days after its expiration, the token is automatically deleted, at which point it will no longer appear in the UI, and the token API will return a 404 error for that specific token ID.&lt;/P&gt;&lt;P&gt;It's also worth noting that a token's status can be changed to disabled, either via the API or by altering the "Enabled" toggle within the token UI.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 23:40:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Token-Expiry-after-X-days-the-token-auto-deletes/m-p/237596#M31176</guid>
      <dc:creator>JoseRomero</dc:creator>
      <dc:date>2024-02-20T23:40:28Z</dc:date>
    </item>
  </channel>
</rss>

