<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Concepts on Tetragon - eBPF-based Security Observability and Runtime Enforcement</title>
		<link>/docs/concepts/</link>
		<description>Recent content in Concepts on Tetragon - eBPF-based Security Observability and Runtime Enforcement</description>
		<generator>Hugo</generator>
		<language>en</language>
		
		
		
		
			<atom:link href="/docs/concepts/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Events</title>
				<link>/docs/concepts/events/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/concepts/events/</guid>
				<description>&lt;p&gt;Tetragon&amp;rsquo;s events are exposed to the system through either the gRPC&#xA;endpoint or JSON logs. Commands in this section assume the Getting&#xA;Started guide was used, but are general other than the namespaces&#xA;chosen and should work in most environments.&lt;/p&gt;&#xA;&lt;h3 id=&#34;json&#34;&gt;JSON&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#json&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h3&gt;&#xA;&lt;p&gt;The first way is to observe the raw json output from the stdout container log:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#272822;background-color:#fafafa;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;kubectl logs -n kube-system -l app.kubernetes.io/name&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;tetragon -c export-stdout -f&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The raw JSON events provide Kubernetes API, identity metadata, and OS&#xA;level process visibility about the executed binary, its parent and the execution&#xA;time. A base Tetragon installation will produce &lt;code&gt;process_exec&lt;/code&gt; and &lt;code&gt;process_exit&lt;/code&gt;&#xA;events encoded in JSON as shown here,&lt;/p&gt;</description>
			</item>
			<item>
				<title>Runtime Hooks</title>
				<link>/docs/concepts/runtime-hooks/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/concepts/runtime-hooks/</guid>
				<description>&lt;p&gt;Applying&#xA;&lt;a href=&#34;/docs/concepts/tracing-policy/k8s-filtering/&#34;&gt;Kubernetes Identity Aware Policies&lt;/a&gt;&#xA;requires information about Kubernetes (K8s) pods (e.g., namespaces and labels). Based on this&#xA;information, the Tetragon agent can update the state so that Kubernetes Identify filtering can be&#xA;applied in-kernel via BPF.&lt;/p&gt;&#xA;&lt;p&gt;One way that this information is available to the Tetragon agent is via the K8s API server. Relying&#xA;on the API server, however, can lead to a delay before the container starts and the policy is&#xA;applied. This might be undesirable, especially for enforcement policies.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Event throttling</title>
				<link>/docs/concepts/cgroup-rate/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/concepts/cgroup-rate/</guid>
				<description>&lt;p&gt;This page shows you how to configure per-cgroup rate monitoring.&lt;/p&gt;&#xA;&lt;h2 id=&#34;concept&#34;&gt;Concept&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#concept&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;The idea is that tetragon monitors events rate per cgroup and throttle&#xA;them (stops posting its events) if they cross configured threshold.&lt;/p&gt;&#xA;&lt;p&gt;The throttled cgroup is monitored and if its traffic gets stable under&#xA;the limit again, it stops the cgroup throttling and tetragon resumes&#xA;receiving the cgroup&amp;rsquo;s events.&lt;/p&gt;&#xA;&lt;p&gt;The throttle action generates following events:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;THROTTLE&lt;/code&gt; start event is sent when the group rate limit is crossed&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;THROTTLE&lt;/code&gt; stop event is sent when the cgroup rate is again below the limit stable for 5 seconds&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;alert alert-info note callout&#34; role=&#34;alert&#34;&gt;&#xA;  &lt;strong&gt;Note&lt;/strong&gt; The threshold for given cgroup is monitored &lt;em&gt;per CPU&lt;/em&gt;.&#xA;When the events are spread around on multiple CPUs we will throttle&#xA;them per CPU only if they cross the threshold on that CPU.&#xA;&lt;/div&gt;&#xA;&#xA;&lt;div class=&#34;alert alert-info note callout&#34; role=&#34;alert&#34;&gt;&#xA;  &lt;strong&gt;Note&lt;/strong&gt; &lt;p&gt;At the moment we monitor and limit base sensor events:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;PROCESS_EXEC&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;PROCESS_EXIT&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/div&gt;</description>
			</item>
	</channel>
</rss>
