<?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 How to add custom CAs to an ActiveGate installed by the Dynatrace operator? in Container platforms</title>
    <link>https://community.dynatrace.com/t5/Container-platforms/How-to-add-custom-CAs-to-an-ActiveGate-installed-by-the/m-p/224560#M1939</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Trying to scrap a posgresdb Prometheus exporter running on a k8s cluster. A curl command executed in the scope/context of a pod exec to scrap the metrics works perfectly when using the proper cacert: curl&amp;nbsp; --cacert myCA.pem &lt;A href="https://prometheus-exp-svcname.ns:9187/metrics" target="_blank" rel="noopener"&gt;https://prometheus-exp-svcname.ns:9187/metrics&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The ActiveGate installed by the Dynatrace operator is missing the root CA chain needed to query the prometheus exporter successfully. I identified the following logs in the k8s AG:&lt;/P&gt;
&lt;P&gt;023-10-04 08:28:52 UTC INFO [&amp;lt;b282df91-57f8-42d2-bcf1-7ecf65d0165f&amp;gt;] [HttpClientStatisticsSfmConsumerImpl] &lt;EM&gt;&lt;STRONG&gt;Query failed for endpoint /metrics&lt;/STRONG&gt;&lt;/EM&gt; on DirectIp with statusReason: SslError. [Suppressing further identical messages for 1 hour]&lt;BR /&gt;javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target&lt;BR /&gt;at java.base/sun.security.ssl.Alert.createSSLException(Unknown Source)&lt;/P&gt;
&lt;P&gt;A first idea was to add the CA certs in the dynakube.yaml in the block "trustedCAs", but it does not apply to Activegates. A second option would be to add permanently to the AG keystore the CA certificates. But I don't know how to deal with that in the dynakube.yaml. Any clue how to add custom CAs to an ActiveGate installed by the Dynatrace operator?&lt;/P&gt;
&lt;P&gt;Thx,&lt;/P&gt;
&lt;P&gt;Luc&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2024 12:59:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-03-08T12:59:44Z</dc:date>
    <item>
      <title>How to add custom CAs to an ActiveGate installed by the Dynatrace operator?</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/How-to-add-custom-CAs-to-an-ActiveGate-installed-by-the/m-p/224560#M1939</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Trying to scrap a posgresdb Prometheus exporter running on a k8s cluster. A curl command executed in the scope/context of a pod exec to scrap the metrics works perfectly when using the proper cacert: curl&amp;nbsp; --cacert myCA.pem &lt;A href="https://prometheus-exp-svcname.ns:9187/metrics" target="_blank" rel="noopener"&gt;https://prometheus-exp-svcname.ns:9187/metrics&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The ActiveGate installed by the Dynatrace operator is missing the root CA chain needed to query the prometheus exporter successfully. I identified the following logs in the k8s AG:&lt;/P&gt;
&lt;P&gt;023-10-04 08:28:52 UTC INFO [&amp;lt;b282df91-57f8-42d2-bcf1-7ecf65d0165f&amp;gt;] [HttpClientStatisticsSfmConsumerImpl] &lt;EM&gt;&lt;STRONG&gt;Query failed for endpoint /metrics&lt;/STRONG&gt;&lt;/EM&gt; on DirectIp with statusReason: SslError. [Suppressing further identical messages for 1 hour]&lt;BR /&gt;javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target&lt;BR /&gt;at java.base/sun.security.ssl.Alert.createSSLException(Unknown Source)&lt;/P&gt;
&lt;P&gt;A first idea was to add the CA certs in the dynakube.yaml in the block "trustedCAs", but it does not apply to Activegates. A second option would be to add permanently to the AG keystore the CA certificates. But I don't know how to deal with that in the dynakube.yaml. Any clue how to add custom CAs to an ActiveGate installed by the Dynatrace operator?&lt;/P&gt;
&lt;P&gt;Thx,&lt;/P&gt;
&lt;P&gt;Luc&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 12:59:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/How-to-add-custom-CAs-to-an-ActiveGate-installed-by-the/m-p/224560#M1939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-08T12:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to add custom CAs to an activegate installed by the dynatrace operator?</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/How-to-add-custom-CAs-to-an-ActiveGate-installed-by-the/m-p/232183#M2102</link>
      <description>&lt;P&gt;Hello&amp;nbsp;@Anonymous&amp;nbsp;,&lt;BR /&gt;Let me know if you still face that issue or maybe you've found the solution already. I'll try my best to help!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 10:40:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/How-to-add-custom-CAs-to-an-ActiveGate-installed-by-the/m-p/232183#M2102</guid>
      <dc:creator>IzabelaRokita</dc:creator>
      <dc:date>2023-12-18T10:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to add custom CAs to an activegate installed by the dynatrace operator?</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/How-to-add-custom-CAs-to-an-ActiveGate-installed-by-the/m-p/232201#M2105</link>
      <description>&lt;P&gt;Hello Izabela,&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;No. I didn't succeed to scrap a prometheus exporter through "Full" SSL with DT.&amp;nbsp;I succeeded with Prometheus to use TLS authentication, but not with DT. Anyway, I disabled the Certificate validation check with the following annotation:&lt;/P&gt;&lt;P&gt;metrics.dynatrace.com/insecure_skip_verify: "true"&lt;/P&gt;&lt;P&gt;That's ok for the moment. But if you succeded to create the right configmap or secret and the annoations in DT, I would be pleased to see how you have done.&lt;/P&gt;&lt;P&gt;I'm facing the same kind of issue when instead of using tls and certificate to scrape a prometheus exporter =&amp;gt; When I have to use a bearer_token to authenticate on the prometheus exporter.&amp;nbsp; .&amp;nbsp; I've not found a DT annotation to add in the HTTP request Header: Authorization: Bearer&amp;lt;token&amp;gt;. A token is needed for instance to scrape sonarqube exporter on port 9000. It works fine with prometheus by using the following key value:&lt;/P&gt;&lt;P&gt;bearer_token: &amp;lt;token&amp;gt; in the prometheus yaml config or in the ServiceMonitor =&amp;gt; but an annotation like the following don't work either with DT:&lt;/P&gt;&lt;P&gt;metrics.dynatrace.com/{bearer_token, bearerToken, token} : &amp;lt;token&amp;gt;&lt;/P&gt;&lt;P&gt;Here is the URL describing the sonaqube API monitoring via Prometheus with a token used in the HTTP header of the request:&lt;/P&gt;&lt;P&gt;&lt;A href="https://dev.irpteam.com/sq/documentation/instance-administration/monitoring/" target="_blank"&gt;https://dev.irpteam.com/sq/documentation/instance-administration/monitoring/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 10:57:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/How-to-add-custom-CAs-to-an-ActiveGate-installed-by-the/m-p/232201#M2105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-18T10:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to add custom CAs to an activegate installed by the dynatrace operator?</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/How-to-add-custom-CAs-to-an-ActiveGate-installed-by-the/m-p/232315#M2113</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you so much for sharing so many details and your workaround.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":clapping_hands:"&gt;👏&lt;/span&gt; I'm sure it will be very helpful to other Community members!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 07:51:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/How-to-add-custom-CAs-to-an-ActiveGate-installed-by-the/m-p/232315#M2113</guid>
      <dc:creator>IzabelaRokita</dc:creator>
      <dc:date>2023-12-19T07:51:09Z</dc:date>
    </item>
  </channel>
</rss>

