<?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: Skyline with TLS in OpenTelemetry/Skyline</title>
    <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-with-TLS/m-p/221918#M429</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/80112"&gt;@Sajgon107&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please open a support ticket for CheckPoint, so we can assist you directly to troubleshoot the issue.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2024 14:44:42 GMT</pubDate>
    <dc:creator>Elad_Chomsky</dc:creator>
    <dc:date>2024-07-25T14:44:42Z</dc:date>
    <item>
      <title>Skyline with TLS</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-with-TLS/m-p/221712#M428</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;im trying to setup skyline setup using TLS. I've tested out that payload with no TLS is working and I see stats in my grafana.&lt;/P&gt;&lt;P&gt;I followed initial setup from - &lt;A href="https://github.com/mmanningcp/skylineinstructions/tree/main?tab=readme-ov-file" target="_blank" rel="noopener"&gt;https://github.com/mmanningcp/skylineinstructions/tree/main?tab=readme-ov-file.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I configured basic auth base on the instructions from - &lt;A href="https://prometheus.io/docs/guides/basic-auth/" target="_blank" rel="noopener"&gt;https://prometheus.io/docs/guides/basic-auth/&lt;/A&gt;. I've created cert and key using this config from Gaia OS device:&lt;/P&gt;&lt;P&gt;[ req ]&lt;BR /&gt;default_bits = 4096&lt;BR /&gt;default_md = sha256&lt;BR /&gt;req_extensions = v3_req&lt;BR /&gt;distinguished_name = dn&lt;BR /&gt;prompt = no&lt;/P&gt;&lt;P&gt;[ v3_req ]&lt;BR /&gt;subjectAltName = @alt_names&lt;/P&gt;&lt;P&gt;[ dn ]&lt;BR /&gt;C =&lt;BR /&gt;ST =&lt;BR /&gt;L =&lt;BR /&gt;O =&lt;BR /&gt;OU =&lt;BR /&gt;CN = localhost&lt;/P&gt;&lt;P&gt;[ alt_names ]&lt;BR /&gt;DNS.1 = localhost&lt;BR /&gt;DNS.2 = skyline.local&lt;BR /&gt;IP.1 = 127.0.0.1&lt;BR /&gt;IP.2 = x.x.x.x&lt;/P&gt;&lt;P&gt;I've moved these 2 files into my prometheus/grafana server and put certificate in to the /usr/local/share/ca-certificates/. I modified prometheus service config file:&lt;/P&gt;&lt;P&gt;ExecStart=/home/user/prometheus-2.38.0.linux-amd64/prometheus --config.file=/home/user/prometheus-2.38.0.linux-amd64/prometheus.yml --web.enable-remote-write-receiver --web.config.file=/home/user/prometheus-2.38.0.linux-amd64/web-config.yml,&lt;/P&gt;&lt;P&gt;web-config.yml:&lt;/P&gt;&lt;P&gt;tls_server_config:&lt;BR /&gt;cert_file: /home/user/certs_gaia/mycert.crt&lt;BR /&gt;key_file: /home/user/certs_gaia/key.unencrypted.key&lt;/P&gt;&lt;P&gt;basic_auth_users:&lt;BR /&gt;admin: $2b$12$OLLx6DILLgx/6Djs9ILMeOYMt/xxxxxx&lt;/P&gt;&lt;P&gt;Prometheus config file (prometheus.yml) contains:&lt;/P&gt;&lt;P&gt;# Remote write configuration&lt;BR /&gt;remote_write:&lt;BR /&gt;- url: "&lt;STRONG&gt;https&lt;/STRONG&gt;://x.x.x.x:9090/api/v1/write"&lt;/P&gt;&lt;P&gt;In attachment you can see settings of grafana data source (prometheus), i used certificate created in the gaia device (in section CA cert) While accessing prometheus gui Im asked to enter login and password so I assume that basic auth is working fine. I used this payload for checkpoint device (cert is in one line):&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"enabled": true,&lt;BR /&gt;"export-targets": {&lt;BR /&gt;"add": [&lt;BR /&gt;{&lt;BR /&gt;"client-auth": {&lt;BR /&gt;"basic": {&lt;BR /&gt;"username": "admin",&lt;BR /&gt;"password": "password"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"enabled": true,&lt;BR /&gt;"server-auth": {&lt;BR /&gt;"ca-public-key": {&lt;BR /&gt;"type": "PEM-X509",&lt;BR /&gt;"value": "-----BEGIN CERTIFICATE-----MIIFfzxx==-----END CERTIFICATE-----"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"type": "prometheus-remote-write",&lt;BR /&gt;"url": "https://x.x.x.x:9090/api/v1/write"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;After executing sklnctl export --set "$(cat /home/admin/tls.json) I see:&lt;/P&gt;&lt;P&gt;{"message": "Operation has finished successfully"}.&lt;/P&gt;&lt;P&gt;Im still not getting any data to my Grafana, see attachment for error.&amp;nbsp; In prometheus logs (journalctl -u prometheus.service) I see:&lt;/P&gt;&lt;P&gt;ed HTTP status 401 Unauthorized: Unauthorized"&lt;BR /&gt;Jul 23 18:34:11 skyline prometheus[194707]: ts=2024-07-23T16:34:11.665Z caller=stdlib.go:105 level=error component=web caller="http: TLS handshake error from checkpoint_ip:42536" msg="remote error: tls: bad certificate"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;As well there is an error on prometeus gui - Targets. Using command - curl -u admin &lt;A href="https://localhost:9090/metrics" target="_blank" rel="noopener"&gt;https://localhost:9090/metrics&lt;/A&gt; from prometheus CLI after entering password i got expected response as written in &lt;A href="https://prometheus.io/docs/guides/basic-auth/" target="_blank" rel="noopener"&gt;https://prometheus.io/docs/guides/basic-auth/&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please suggest me some steps how to troubleshoot further this issue?&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 16:42:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-with-TLS/m-p/221712#M428</guid>
      <dc:creator>Sajgon107</dc:creator>
      <dc:date>2024-07-23T16:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Skyline with TLS</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-with-TLS/m-p/221918#M429</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/80112"&gt;@Sajgon107&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please open a support ticket for CheckPoint, so we can assist you directly to troubleshoot the issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 14:44:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-with-TLS/m-p/221918#M429</guid>
      <dc:creator>Elad_Chomsky</dc:creator>
      <dc:date>2024-07-25T14:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Skyline with TLS</title>
      <link>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-with-TLS/m-p/222381#M430</link>
      <description>&lt;P&gt;the ca-public-key property must contain the root-ca of the certificate the promethous server is presenting to the client&lt;/P&gt;&lt;P&gt;root-ca &amp;lt;--this one has to be used&lt;BR /&gt;--intermediate-ca&lt;BR /&gt;-----prometheus-server-certificate&lt;/P&gt;&lt;P&gt;...also had problems with this, but i have exactly your setup running fine...&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 13:57:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/OpenTelemetry-Skyline/Skyline-with-TLS/m-p/222381#M430</guid>
      <dc:creator>GHaider</dc:creator>
      <dc:date>2024-07-31T13:57:07Z</dc:date>
    </item>
  </channel>
</rss>

