{"componentChunkName":"component---src-components-mark-down-block-js","path":"/docs/tls/","result":{"data":{"markdownRemark":{"html":"<h2 id=\"using-tls-for-secure-connections\" style=\"position:relative;\"><a href=\"#using-tls-for-secure-connections\" aria-label=\"using tls for secure connections permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Using TLS for Secure Connections</h2>\n<p>AppScope supports TLS over TCP connections. Here's how that works:</p>\n<ul>\n<li>AppScope can use TLS when connecting to Cribl Stream or another application (including its events and metrics destinations). </li>\n<li>Once AppScope establishes the connection, data can flow over that connection <strong>in both directions</strong>. </li>\n<li>This means that when you tell AppScope to connect using TLS, the connection is secured by TLS in both directions.</li>\n</ul>\n<p>For security's sake, AppScope never opens ports, nor does it listen for or allow incoming connections.</p>\n<p>To enable TLS: In the <code>scope.yml</code> <a href=\"/docs/config-file\">config file</a>, set the <code>transport : tls : enable</code> element to <code>true</code>.</p>\n<h2 id=\"using-tls-in-criblcloud\" style=\"position:relative;\"><a href=\"#using-tls-in-criblcloud\" aria-label=\"using tls in criblcloud permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Using TLS in Cribl.Cloud</h2>\n<p>AppScope uses TLS by default to communicate with Cribl Stream over TCP on Cribl.Cloud. Cribl Stream has an AppScope Source ready to use out-of-the-box.</p>\n<p>Within Cribl.Cloud, a front-end load balancer (reverse proxy) handles the encrypted TLS traffic and relays it to the AppScope Source port in Cribl Stream. The connection from the load balancer to Cribl Stream does <strong>not</strong> use TLS, and you should not enable TLS on the <a href=\"https://docs.cribl.io/docs/sources-appscope\">AppScope Source</a> in Cribl Stream. No changes in Cribl Stream configuration are needed.</p>\n<p>AppScope connects to your Cribl.Cloud Ingest Endpoint on port 10090. The Ingest Endpoint URL is always the same except for the Cribl.Cloud Organization ID, which Cribl Stream uses in the hostname portion, in the following way:</p>\n<pre><code>https://in.main-default-&#x3C;organization>.cribl.cloud:10090\n</code></pre>\n<p>If you <strong>disable</strong> TLS, the port is 10091.</p>\n<h3 id=\"cli-usage\" style=\"position:relative;\"><a href=\"#cli-usage\" aria-label=\"cli usage permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>CLI usage</h3>\n<p>Use <code>scope run</code> with the <code>-c</code> option (in this example, we're scoping <code>ps -ef</code>):</p>\n<pre><code>scope run -c tls://host:10090 -- ps -ef\n</code></pre>\n<h3 id=\"configuration-for-ld_preload\" style=\"position:relative;\"><a href=\"#configuration-for-ld_preload\" aria-label=\"configuration for ld_preload permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Configuration for <code>LD_PRELOAD</code></h3>\n<p>To connect AppScope to a Cribl.Cloud-managed instance of Cribl Stream using TLS: </p>\n<ol>\n<li>Enable the <code>transport : tls : enable</code> element in <code>scope.yml</code>.</li>\n<li>Connect to port 10090 on your Cribl.Cloud Ingest Endpoint.</li>\n</ol>\n<p>To enable TLS in <code>scope.yml</code>, adapt the example below to your environment:</p>\n<pre><code>cribl:\n  enable: true\n  transport:\n    type: tcp  # don't use tls here, use tcp and enable tls below\n    host: in.main-default-&#x3C;organization>.cribl.cloud\n    port: 10090 # cribl.cloud's port for the TLS AppScope Source\n    tls:\n      enable: true\n      validateserver: true\n      cacertpath: ''\n</code></pre>\n<h2 id=\"scoping-without-tls\" style=\"position:relative;\"><a href=\"#scoping-without-tls\" aria-label=\"scoping without tls permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Scoping Without TLS</h2>\n<p>If you prefer to connect to Cribl Stream on Cribl.Cloud without encryption, connect to port 10091 instead of port 10090, and disable the <code>tls</code> element in <code>scope.yml</code>.</p>\n<p>No changes in Cribl Stream configuration are needed.</p>\n<h2 id=\"backoff-algorithm\" style=\"position:relative;\"><a href=\"#backoff-algorithm\" aria-label=\"backoff algorithm permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Backoff Algorithm</h2>\n<p>AppScope uses a <strong>backoff algorithm</strong> for connections to avoid creating excessive network traffic and log entries. When a remote destination that AppScope tries to connect to rejects the connection or is not available, AppScope retries the connection at a progressively slower rate.</p>","frontmatter":{"title":"Using TLS for Secure Connections"}}},"pageContext":{"slug":"/tls/","id":"f4e45f00-bc5b-5199-8c16-d732da7c4b96"}},"staticQueryHashes":["2787008656","306729481","625673991","640077088"]}