<?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: Cannot extract bearer token from secret in Container platforms</title>
    <link>https://community.dynatrace.com/t5/Container-platforms/Cannot-extract-bearer-token-from-secret/m-p/166507#M403</link>
    <description>&lt;P&gt;Tried the same procedure on AWS and I am hitting the same exact error. The API is definitely accessible there.&lt;/P&gt;</description>
    <pubDate>Mon, 24 May 2021 20:32:04 GMT</pubDate>
    <dc:creator>rhaddad</dc:creator>
    <dc:date>2021-05-24T20:32:04Z</dc:date>
    <item>
      <title>Cannot extract bearer token from secret</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Cannot-extract-bearer-token-from-secret/m-p/166376#M400</link>
      <description>&lt;P&gt;I am getting an empty result for this command:&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;oc get secret $(oc get sa dynatrace-kubernetes-monitoring -o jsonpath='{.secrets[1].name}' -n dynatrace) -o jsonpath='{.data.token}' -n dynatrace&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Looks like the secret &lt;EM&gt;"&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;dynatrace-kubernetes-monitoring-dockercfg-8c4xg&lt;/FONT&gt;"&lt;/EM&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;does not contain the parameter &lt;FONT face="courier new,courier"&gt;'.data.token'&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I tried extracting the value from the&lt;FONT face="courier new,courier"&gt; 'metadata.annotations.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;FONT face="courier new,courier"&gt;openshift.io/token-secret.value'&lt;/FONT&gt; parameter but it says it contains a malformed base64&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Trying to repair the malformed base64, I am not able to get a bearer token that the dynatrace integration would "like". Error is "invalid bearer token"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 22:09:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Cannot-extract-bearer-token-from-secret/m-p/166376#M400</guid>
      <dc:creator>rhaddad</dc:creator>
      <dc:date>2021-05-20T22:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot extract bearer token from secret</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Cannot-extract-bearer-token-from-secret/m-p/166447#M401</link>
      <description>&lt;P&gt;Hi rhaddad,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding the "Invalid Bearer Token", you might want to check your ActiveGate logs to ensure there are no issues when trying to reach to this API (trying to authorize). It could be firewall rules or a proxy that might be causing this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Moe&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 16:50:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Cannot-extract-bearer-token-from-secret/m-p/166447#M401</guid>
      <dc:creator>Mo_Azuz</dc:creator>
      <dc:date>2021-05-21T16:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot extract bearer token from secret</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Cannot-extract-bearer-token-from-secret/m-p/166451#M402</link>
      <description>&lt;P&gt;Moe, you're right/ The API is not publicly accessible. Thank you for pointing that out.&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 21:50:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Cannot-extract-bearer-token-from-secret/m-p/166451#M402</guid>
      <dc:creator>rhaddad</dc:creator>
      <dc:date>2021-05-21T21:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot extract bearer token from secret</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Cannot-extract-bearer-token-from-secret/m-p/166507#M403</link>
      <description>&lt;P&gt;Tried the same procedure on AWS and I am hitting the same exact error. The API is definitely accessible there.&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 20:32:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Cannot-extract-bearer-token-from-secret/m-p/166507#M403</guid>
      <dc:creator>rhaddad</dc:creator>
      <dc:date>2021-05-24T20:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot extract bearer token from secret</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Cannot-extract-bearer-token-from-secret/m-p/166508#M404</link>
      <description>&lt;P&gt;the API accessibility does not seem to be the issue here since I can replicate this on AWS.&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 20:32:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Cannot-extract-bearer-token-from-secret/m-p/166508#M404</guid>
      <dc:creator>rhaddad</dc:creator>
      <dc:date>2021-05-24T20:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot extract bearer token from secret</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Cannot-extract-bearer-token-from-secret/m-p/166512#M405</link>
      <description>&lt;P&gt;Are you using any Cluster Management Platform like Rancher? Docker EE? Also, please check and ensure there are no white spaces in the token.&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 21:19:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Cannot-extract-bearer-token-from-secret/m-p/166512#M405</guid>
      <dc:creator>Mo_Azuz</dc:creator>
      <dc:date>2021-05-24T21:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot extract bearer token from secret</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Cannot-extract-bearer-token-from-secret/m-p/166522#M406</link>
      <description>&lt;P&gt;No cluster management is being used. The issue is that the .data.token is coming back empty so the command is not decoding anything. Can you post a sample token so I know what the format looks like? thanks&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 23:23:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Cannot-extract-bearer-token-from-secret/m-p/166522#M406</guid>
      <dc:creator>rhaddad</dc:creator>
      <dc:date>2021-05-24T23:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot extract bearer token from secret</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Cannot-extract-bearer-token-from-secret/m-p/166588#M407</link>
      <description>&lt;P&gt;There are some issues with this particular command as sometimes the token is the first secret and sometimes it is the second secret. Try the command again to get the first secret (zero indexed):&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;&lt;SPAN&gt;oc get secret $(oc get sa dynatrace-kubernetes-monitoring -o jsonpath='{.secrets[0].name}' -n dynatrace) -o jsonpath='{.data.token}' -n dynatrace&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 19:45:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Cannot-extract-bearer-token-from-secret/m-p/166588#M407</guid>
      <dc:creator>mike_villiger</dc:creator>
      <dc:date>2021-05-25T19:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot extract bearer token from secret</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Cannot-extract-bearer-token-from-secret/m-p/166651#M408</link>
      <description>&lt;P&gt;Thanks Mike. That resolved the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 13:18:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Cannot-extract-bearer-token-from-secret/m-p/166651#M408</guid>
      <dc:creator>rhaddad</dc:creator>
      <dc:date>2021-05-26T13:18:34Z</dc:date>
    </item>
  </channel>
</rss>

