<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Falco – Configuration Management</title><link>https://v0-43--falcosecurity.netlify.app/tags/configuration-management/</link><description>Recent content in Configuration Management on Falco</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Fri, 11 Aug 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://v0-43--falcosecurity.netlify.app/tags/configuration-management/feed.xml" rel="self" type="application/rss+xml"/><item><title>Blog: GitLab Container Registry now supports Falcoctl OCI Artifacts</title><link>https://v0-43--falcosecurity.netlify.app/blog/gitlab-supports-falcoctl-ociartifacts/</link><pubDate>Fri, 11 Aug 2023 00:00:00 +0000</pubDate><guid>https://v0-43--falcosecurity.netlify.app/blog/gitlab-supports-falcoctl-ociartifacts/</guid><description>
&lt;p&gt;Today, we'd like to share with the Falco community the latest contribution we (w/&lt;a href="https://twitter.com/emminaktas"&gt;Emin Aktas&lt;/a&gt;) made to &lt;a href="https://gitlab.com/gitlab-org/container-registry"&gt;GitLab Container Registry&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;We noticed that GitLab Container Registry didn't support Falcoctl OCI Artifact &lt;a href="https://github.com/falcosecurity/falcoctl/blob/7f1e8825a6f86010b9194577c56712dd0ef0442d/pkg/oci/constants.go#L20-L29"&gt;mediaTypes&lt;/a&gt; while we were pushing the Falco rules stored from GitHub container registry to GitLab container registry. We decided then to contribute to GitLab Container Registry by adding the support for Falcoctl OCI Artifact mediaTypes.&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-shell" data-lang="shell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Error: PUT https://registry.gitlab.com/v2/x/falcosecurity/rules/k8saudit-rules/manifests/1: MANIFEST_INVALID: manifest invalid; unknown media type: application/vnd.cncf.falco.rulesfile.config.v1+json
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Error: PUT https://registry.gitlab.com/v2/x/falcosecurity/plugins/k8saudit/manifests/sha256:b29c97a6590486f8b3b83644677e11d2f68e201a7035699189653d7f571d7e13: MANIFEST_INVALID: manifest invalid; unknown media type: application/vnd.cncf.falco.plugin.config.v1+json
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You can learn more about our contribution &lt;a href="https://gitlab.com/gitlab-org/container-registry/-/merge_requests/1375"&gt;here&lt;/a&gt;. Once the feature is released, planned for GitLab &lt;strong&gt;16.3&lt;/strong&gt;, it will allow you to pull and push Falcoctl OCI Artifacts from and to GitLab Container Registry.&lt;/p&gt;
&lt;p&gt;Falcoctl is one of the newest development efforts from the Falco community. It is a CLI tool that allows you to &lt;a href="https://falco.org/blog/falcoctl-install-manage-rules-plugins/"&gt;manage the complete lifecycle of your Falco rules and plugins&lt;/a&gt; by leveraging the power of OCI Artifacts.&lt;/p&gt;
&lt;p&gt;For those who are not familiar with the OCI Artifacts concept, the OCI Artifacts specification is a way to extend the OCI Registry specification to support storing and retrieving arbitrary content, you can learn more about OCI Artifacts concept, &lt;a href="https://github.com/opencontainers/artifacts"&gt;here&lt;/a&gt;. OCI Artifacts are important because today's moden software requires storing more than just container images in OCI registries such as the following artifacts would be great use-case examples of that:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Helm charts&lt;/li&gt;
&lt;li&gt;WebAssembly modules&lt;/li&gt;
&lt;li&gt;Falco rules and plugins. :)&lt;/li&gt;
&lt;li&gt;...many other custom artifacts&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can even create your own custom OCI Artifacts. A key thing of OCI registries is uniquely identifying the type. This is done by using a media type, which is a string that identifies the type of content stored in the registry. The media type is used to determine how to interpret the content when it is retrieved from the registry. To learn more about how you can write your own custom OCI Artifacts, you can check out the &lt;a href="https://github.com/opencontainers/artifacts/blob/main/artifact-authors.md"&gt;OCI Artifacts Authoring guide&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Distributing software artifacts as OCI Artifacts served by OCI registries offers a standardized, secured, and efficient way to consume and reuse content within the container ecosystem, making it easier to integrate, distribute, and manage them across different environments and tools.&lt;/p&gt;
&lt;p&gt;Hope you can enjoy the new feature once it's released. See you next time! :)&lt;/p&gt;</description></item><item><title>Blog: Rule basics for the Falco 3.0.0 Helm chart</title><link>https://v0-43--falcosecurity.netlify.app/blog/rules-helm-chart-3-0-0/</link><pubDate>Thu, 09 Feb 2023 00:00:00 +0000</pubDate><guid>https://v0-43--falcosecurity.netlify.app/blog/rules-helm-chart-3-0-0/</guid><description>
&lt;p&gt;The new Falco Helm chart 3.0.0 (&lt;a href="https://github.com/falcosecurity/charts/blob/master/falco/README.md"&gt;full documentation&lt;/a&gt;, &lt;a href="https://github.com/falcosecurity/charts/blob/master/falco/BREAKING-CHANGES.md#300"&gt;upgrade information&lt;/a&gt;) comes with a new way to automatically update the Falco rules that are currently loaded. Of course, you can enable, disable and configure this functionality to your liking. Below, we list a number of common basic use cases and how to easily configure Falco for each:&lt;/p&gt;
&lt;h2 id="automatically-update-rules-from-the-falco-organization"&gt;Automatically update rules from the Falco organization&lt;/h2&gt;
&lt;p&gt;If you install the new helm chart with:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;helm install falco
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Falco, by default, will &lt;strong&gt;load the latest ruleset&lt;/strong&gt; that is compatible with your Falco version and &lt;strong&gt;keep it up to date automatically&lt;/strong&gt;. In Falco 0.34.0 this is the &lt;code&gt;0.x.x&lt;/code&gt; line of rules published by the Falco organization, following the tag &lt;code&gt;0&lt;/code&gt; published &lt;a href="https://github.com/falcosecurity/rules/pkgs/container/rules%2Ffalco-rules"&gt;on GitHub Packages&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="use-the-rules-embedded-in-the-falco-image"&gt;Use the rules embedded in the Falco image&lt;/h2&gt;
&lt;p&gt;The Falco image ships with a snapshot of the latest version of the official Falco org rules. If you wish to use that without downloading anything at runtime you can install Falco with:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;helm install falco \
--set falcoctl.artifact.install.enabled=false \
--set falcoctl.artifact.follow.enabled=false
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="add-custom-rules-with-a-configmap"&gt;Add custom rules with a configmap&lt;/h2&gt;
&lt;p&gt;On top of any scenario above you can add the &lt;code&gt;customRules&lt;/code&gt; value to add your own custom rules in a configmap. For instance, if we create a file as &lt;a href="https://github.com/falcosecurity/charts/tree/master/charts/falco#loading-custom-rules"&gt;described in the documentation&lt;/a&gt; and then add it to our one of the above command lines with:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;-f custom_rules.yaml
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;It will be loaded and configured in our Falco instance.&lt;/p&gt;
&lt;h2 id="only-use-rules-supplied-via-configmap"&gt;Only use rules supplied via configmap&lt;/h2&gt;
&lt;p&gt;If you only want to use the rules that you add via configmap, discarding all automated updates and default rules shipping in the image you have to remove the &lt;code&gt;falco_rules.yaml&lt;/code&gt; entry from the Falco configuration. Assuming you have your custom rules in &lt;code&gt;custom_rules.yaml&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;helm install falco -f ./custom_rules.yaml \
--set &amp;#34;falco.rules_files={/etc/falco/falco_rules.local.yaml,/etc/falco/rules.d}&amp;#34; \
--set falcoctl.artifact.install.enabled=false \
--set falcoctl.artifact.follow.enabled=false
&lt;/code&gt;&lt;/pre&gt;</description></item></channel></rss>