<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Falco – Falco.yaml</title><link>https://v0-43--falcosecurity.netlify.app/tags/falco.yaml/</link><description>Recent content in Falco.yaml on Falco</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="https://v0-43--falcosecurity.netlify.app/tags/falco.yaml/feed.xml" rel="self" type="application/rss+xml"/><item><title>Docs: Falco Configuration Options</title><link>https://v0-43--falcosecurity.netlify.app/docs/reference/daemon/config-options/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-43--falcosecurity.netlify.app/docs/reference/daemon/config-options/</guid><description>
&lt;p&gt;Falco's configuration file is a YAML file containing a collection of &lt;code&gt;key: value&lt;/code&gt; or &lt;code&gt;key: [value list]&lt;/code&gt; pairs. Depending on your installation type the configuration file could be located in &lt;code&gt;/etc/falco/falco.yaml&lt;/code&gt; or loaded as a configmap in Kubernetes deployments.&lt;/p&gt;
&lt;p&gt;The full list of configuration items is documented in the file itself that you can find in your Falco distribution or in the &lt;a href="https://github.com/falcosecurity/falco/blob/0.43.0/falco.yaml"&gt;Falco repository&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Any configuration option can be overridden on the command line via the &lt;code&gt;-o/--option key=value&lt;/code&gt; flag.
For &lt;code&gt;key: [value list]&lt;/code&gt; options, you can specify individual list items using &lt;code&gt;--option key.subkey=value&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If a configuration entry (e.g. &lt;code&gt;key.subkey&lt;/code&gt;) is a list you can override a specific entry by index, e.g.: &lt;code&gt;--option key.subkey[0]=value&lt;/code&gt;.
Since Falco 0.38.0 you can also append new elements to a list by adding &lt;code&gt;--option key.subkey[]=value&lt;/code&gt; and/or &lt;code&gt;--option key.subkey[].newitem=value&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="config-files"&gt;&lt;code&gt;config_files&lt;/code&gt;&lt;/h2&gt;
&lt;p&gt;Since Falco 0.38.0 you can also load additional configuration files after the main one with the &lt;code&gt;config_files&lt;/code&gt; configuration entry, which can accept both files and directories. By default this option contains the &lt;code&gt;/etc/falco/config.d&lt;/code&gt; directory.&lt;/p&gt;
&lt;h3 id="merge-strategy"&gt;Merge strategy&lt;/h3&gt;
&lt;p&gt;Since Falco 0.41.0, it is possible to specify a merge strategy for each entry provided in the &lt;code&gt;config_files&lt;/code&gt; option. The loading of these files is assumed to happen after the main config file has been processed and then in the order they are specified. If a folder is specified, the files within that path are loaded in lexicographical order, and the merge strategy is applied for all files within that path. There are three merge strategies available, with &lt;code&gt;append&lt;/code&gt; being the default merge strategy.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;append&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Existing sequence keys will be appended&lt;/li&gt;
&lt;li&gt;Existing scalar keys will be overridden&lt;/li&gt;
&lt;li&gt;Non-existing keys will be added&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;override&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Existing keys will be overridden&lt;/li&gt;
&lt;li&gt;Non-existing keys will be added&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;add-only&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Existing keys will be ignored&lt;/li&gt;
&lt;li&gt;Non-existing keys will be added&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To utilize these merge strategies in the &lt;code&gt;config_files&lt;/code&gt; option, add the strategy alongside the path:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#008000;font-weight:bold"&gt;config_files&lt;/span&gt;:&lt;span style="color:#bbb"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#bbb"&gt; &lt;/span&gt;- /etc/falco/config.d&lt;span style="color:#bbb"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#bbb"&gt; &lt;/span&gt;- &lt;span style="color:#008000;font-weight:bold"&gt;path&lt;/span&gt;:&lt;span style="color:#bbb"&gt; &lt;/span&gt;/etc/falco/config.append.d/&lt;span style="color:#bbb"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#bbb"&gt; &lt;/span&gt;&lt;span style="color:#008000;font-weight:bold"&gt;strategy&lt;/span&gt;:&lt;span style="color:#bbb"&gt; &lt;/span&gt;append&lt;span style="color:#bbb"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#bbb"&gt; &lt;/span&gt;- &lt;span style="color:#008000;font-weight:bold"&gt;path&lt;/span&gt;:&lt;span style="color:#bbb"&gt; &lt;/span&gt;/etc/falco/extra_config.yaml&lt;span style="color:#bbb"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#bbb"&gt; &lt;/span&gt;&lt;span style="color:#008000;font-weight:bold"&gt;strategy&lt;/span&gt;:&lt;span style="color:#bbb"&gt; &lt;/span&gt;add-only&lt;span style="color:#bbb"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="card card-sm pageinfo pageinfo-warning my-4"&gt;
&lt;div class="card-body"&gt;
&lt;div class="card-text"&gt;
&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; Configuration merging occurs only at the &lt;strong&gt;root key level&lt;/strong&gt;, not for nested keys. This means that if a configuration file in &lt;code&gt;config.d/&lt;/code&gt; contains a root-level key (e.g., &lt;code&gt;engine:&lt;/code&gt;), the &lt;strong&gt;entire section&lt;/strong&gt; from the main &lt;code&gt;falco.yaml&lt;/code&gt; will be replaced, not merged.&lt;/p&gt;
&lt;p&gt;For example, if you have &lt;code&gt;engine-falcoctl.yaml&lt;/code&gt; in &lt;code&gt;/etc/falco/config.d/&lt;/code&gt; that sets the &lt;code&gt;engine.kind&lt;/code&gt; option, and you try to modify &lt;code&gt;engine.buf_size_preset&lt;/code&gt; in &lt;code&gt;/etc/falco/falco.yaml&lt;/code&gt;, your change will be ignored because the entire &lt;code&gt;engine:&lt;/code&gt; section is overridden by the file in &lt;code&gt;config.d/&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;To modify nested configuration options&lt;/strong&gt;, you should either:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Edit the file in &lt;code&gt;config.d/&lt;/code&gt; that contains the root key you want to modify&lt;/li&gt;
&lt;li&gt;Or remove/rename that file from &lt;code&gt;config.d/&lt;/code&gt; and make all changes directly in &lt;code&gt;falco.yaml&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description></item></channel></rss>