<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Aviram Hassan on</title><link>https://bce40cb0.metalbear-com.pages.dev/contributors/aviram-hassan/</link><description>Recent content in Aviram Hassan on</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>Copyright (c) 2022 MetalBear</copyright><lastBuildDate>Thu, 12 May 2022 08:50:45 +0000</lastBuildDate><atom:link href="https://bce40cb0.metalbear-com.pages.dev/contributors/aviram-hassan/index.xml" rel="self" type="application/rss+xml"/><item><title>Inspecting Service Traffic with mirrord dump</title><link>https://bce40cb0.metalbear-com.pages.dev/blog/mirrord-dump/</link><pubDate>Wed, 25 Jun 2025 00:00:00 +0000</pubDate><guid>https://bce40cb0.metalbear-com.pages.dev/blog/mirrord-dump/</guid><description>The &lt;code>mirrord dump&lt;/code> command gives you a powerful way to inspect incoming traffic to your Kubernetes resources directly in your terminal. Whether you’re debugging a mysterious 500 error, onboarding mirrord across your team, or just need to see what headers are flowing between services, this built-in command makes it easy to get visibility without extra setup. Learn how it works, when to use it, and how it works behind the scenes.</description></item><item><title>KubeCon 2024 Takeaways</title><link>https://bce40cb0.metalbear-com.pages.dev/blog/kubecon-2024-takeaways/</link><pubDate>Wed, 03 Apr 2024 00:00:00 +0000</pubDate><guid>https://bce40cb0.metalbear-com.pages.dev/blog/kubecon-2024-takeaways/</guid><description>&lt;p>Last month marked a huge milestone for us as we attended our first KubeCon! This was KubeCon Europe, which took place in Paris, city of lights and cloud orchestration. Below is a summary of our collective impressions and insights.&lt;/p>
&lt;h2 id="co-located-events-and-surprising-highlights">Co-Located Events and Surprising Highlights &lt;a href="#co-located-events-and-surprising-highlights" class="anchor" aria-hidden="true">#&lt;/a>&lt;/h2>
&lt;p>We arrived a day before KubeCon proper started so we could attend the co-located events. We ended up mostly going to AppDeveloperCon sessions, and it was surprisingly crowded. Our highlight from the first day was Daniel Bryant’s excellent talk &lt;strong>“&lt;a href="https://www.youtube.com/watch?v=3tP31j_T6IE" target="_blank">Testing Cloud Apps: Mocks vs. Service Virtualization vs. Remocal Tools&lt;/a>”&lt;/strong>. Daniel covered our favorite pain - being unable to work against a real environment and iterate with it as part of the development workflow. We were pleased to see a very friendly shoutout to mirrord and our to talk later in the convention!&lt;/p></description></item><item><title>On Pausing Containers - how we built, and why we deprecated, our container pause feature</title><link>https://bce40cb0.metalbear-com.pages.dev/blog/on-pausing-containers-how-we-built-and-why-we-deprecated-our-container-pause-feature/</link><pubDate>Mon, 04 Mar 2024 06:00:00 +0000</pubDate><guid>https://bce40cb0.metalbear-com.pages.dev/blog/on-pausing-containers-how-we-built-and-why-we-deprecated-our-container-pause-feature/</guid><description>&lt;p>Did you know that you can ”freeze” running containers? We found out about this feature while developing a particularly handy capability for mirrord.
mirrord lets developers run local code in the context of a remote Kubernetes pod. This lets them test their code in cloud conditions without going through CI and deployment. In most cases, stealing or mirroring incoming traffic from the remote pod to the local process is good enough. However, when you have applications that consume tasks and do more than react to incoming requests, the user might want to &lt;a href="https://github.com/metalbear-co/mirrord/discussions/2016" target="_blank">pause the remote application completely&lt;/a>, so that it doesn’t compete with their local process for tasks.&lt;/p></description></item><item><title>Fun with macOS's SIP</title><link>https://bce40cb0.metalbear-com.pages.dev/blog/fun-with-macoss-sip/</link><pubDate>Tue, 24 Jan 2023 00:00:00 +0000</pubDate><guid>https://bce40cb0.metalbear-com.pages.dev/blog/fun-with-macoss-sip/</guid><description>&lt;p>While developing mirrord, which heavily relies on injecting itself into other people&amp;rsquo;s binaries, we ran into some challenges posed by macOS’s SIP (System Integrity Protection). This post details how we ultimately overcame these challenges, and we hope it can be of help to other people hoping to learn about SIP, as we&amp;rsquo;ve learned the hard way that there&amp;rsquo;s very little written about this subject on the internet.&lt;/p>
&lt;h2 id="what-is-mirrord">What is mirrord? &lt;a href="#what-is-mirrord" class="anchor" aria-hidden="true">#&lt;/a>&lt;/h2>
&lt;p>&lt;a href="https://bce40cb0.metalbear-com.pages.dev/mirrord/">mirrord&lt;/a> lets you run a local process in the context of a cloud service, which means we can test our code on our staging cluster without actually deploying it there. This leads to shorter feedback loops (you don’t have to wait on long CI processes to test your code in staging conditions) and a more stable staging environment (since untested services aren’t being deployed there). There is a detailed overview of mirrord in &lt;a href="https://metalbear.com/blog/mirrord-3.0-is-out/" target="_blank">this&lt;/a> blog post.&lt;/p></description></item><item><title>Hooking Go from Rust - Hitchhiker’s Guide to the Go-laxy</title><link>https://bce40cb0.metalbear-com.pages.dev/blog/hooking-go-from-rust-hitchhikers-guide-to-the-go-laxy/</link><pubDate>Wed, 17 Aug 2022 15:00:00 +0000</pubDate><guid>https://bce40cb0.metalbear-com.pages.dev/blog/hooking-go-from-rust-hitchhikers-guide-to-the-go-laxy/</guid><description>&lt;p>Most mainstream programming languages strive to fit into a few common standards, to increase interoperability and decrease adoption friction. Golang isn’t one of those (there &lt;a href="https://spectralops.io/blog/rust-vs-go-why-not-use-both/" target="_blank">are&lt;/a> &lt;a href="https://words.filippo.io/rustgo/" target="_blank">several&lt;/a> &lt;a href="https://fasterthanli.me/articles/lies-we-tell-ourselves-to-keep-using-golang" target="_blank">articles&lt;/a> on the subject). In this blog post we’ll demonstrate how to overcome Go’s isolationist design and integrate with it from another language (in our case Rust).&lt;/p>
&lt;p>Why do we need to interop with Go? mirrord&lt;sup id="fnref:1">&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref">1&lt;/a>&lt;/sup> works by &lt;a href="https://metalbear.com/blog/mirrord-internals-hooking-libc-functions-in-rust-and-fixing-bugs/" target="_blank">hooking system calls to the operating systems&lt;/a> and applying logic that decides whether to execute locally or remotely. To do that, mirrord side-loads (using &lt;code>LD_PRELOAD&lt;/code>) into the process, then hooks relevant functions.
To cover most common scenarios, mirrord hooks libc functions and this works for most common languages (Python, Go on macOS, Rust, Node to name a few) as they all rely on libc.&lt;/p></description></item><item><title>Starting a Backend Developers Community</title><link>https://bce40cb0.metalbear-com.pages.dev/blog/starting-a-backend-developers-community/</link><pubDate>Tue, 02 Aug 2022 00:00:00 +0000</pubDate><guid>https://bce40cb0.metalbear-com.pages.dev/blog/starting-a-backend-developers-community/</guid><description>&lt;p>Hey all, this blog post is a bit meta. tl;dr - we’re starting a &lt;a href="https://discord.gg/metalbear" target="_blank">backend developers community on Discord&lt;/a>. Its purpose is to have a place for backend developers to have discussions, share ideas, and collaborate.&lt;/p>
&lt;h2 id="why-do-we-need-another-community">Why do we need another community? &lt;a href="#why-do-we-need-another-community" class="anchor" aria-hidden="true">#&lt;/a>&lt;/h2>
&lt;p>Most developer communities are dedicated to languages (Go, Python, Rust) or frameworks (FastAPI, Tokio). However, most modern backend developers work on complex cloud architectures combining multiple languages and ecosystems, and this is only becoming more common as microservice architectures become more prevalent. The modern backend engineer is a &lt;a href="https://medium.com/soluto-nashville/why-be-a-polyglot-software-engineer-29cf53465d15" target="_blank">polyglot&lt;/a>, making them more versatile and equipped to solve a wider array of problems. Besides, backend developers face many common issues &lt;em>unrelated&lt;/em> to the language or ecosystem they use - things to do with architecture, databases and other third party services, CI/CD and SDLC, even development methodology and team management.&lt;/p></description></item><item><title>Carcinisation of mirrord (or: why we use Rust)</title><link>https://bce40cb0.metalbear-com.pages.dev/blog/carcinisation-of-mirrord-or-why-we-use-rust/</link><pubDate>Tue, 14 Jun 2022 00:00:00 +0000</pubDate><guid>https://bce40cb0.metalbear-com.pages.dev/blog/carcinisation-of-mirrord-or-why-we-use-rust/</guid><description>&lt;p>&lt;figure class="center">&lt;img src="https://bce40cb0.metalbear-com.pages.dev/blog/carcinisation-of-mirrord-or-why-we-use-rust/rustacean-flat-happy.svg">
&lt;/figure>
&lt;strong>Carcinisation&lt;/strong> (or &lt;strong>carcinization&lt;/strong>) is an example of &lt;a href="https://en.wikipedia.org/wiki/Convergent_evolution" target="_blank">convergent evolution&lt;/a> in which a &lt;a href="https://en.wikipedia.org/wiki/Crustacean" target="_blank">crustacean&lt;/a> &lt;a href="https://en.wikipedia.org/wiki/Evolution" target="_blank">evolves&lt;/a> into a &lt;a href="https://en.wikipedia.org/wiki/Crab" target="_blank">crab&lt;/a>-like form from a non-crab-like form. (source: &lt;a href="https://en.wikipedia.org/wiki/Carcinisation" target="_blank">Wikipedia&lt;/a>).&lt;/p>
&lt;p>A classic example of carcinisation is MetalBear&amp;rsquo;s mirrord project, where several different components converged on Rust as their main language. In this post, we&amp;rsquo;ll detail their different evolutionary paths and explain why they ended up being written in Rust.&lt;/p>
&lt;h1 id="first-of-all-what-is-mirrord">First of all, what is mirrord? &lt;a href="#first-of-all-what-is-mirrord" class="anchor" aria-hidden="true">#&lt;/a>&lt;/h1>
&lt;p>mirrord is an open-source tool that lets developers run local processes in the context of their cloud environment. It is meant to provide the benefits of running your service in a cloud environment (e.g. staging) without going through the hassle of actually deploying it there, and without disrupting the environment by deploying untested code.&lt;sup id="fnref:1">&lt;a href="#fn:1" class="footnote-ref" role="doc-noteref">1&lt;/a>&lt;/sup>&lt;/p></description></item><item><title>Metal-who?</title><link>https://bce40cb0.metalbear-com.pages.dev/blog/metal-who/</link><pubDate>Thu, 12 May 2022 09:19:42 +0100</pubDate><guid>https://bce40cb0.metalbear-com.pages.dev/blog/metal-who/</guid><description>&lt;h1 id="metalbear">MetalBear!🐻 &lt;a href="#metalbear" class="anchor" aria-hidden="true">#&lt;/a>&lt;/h1>
&lt;p>A huge omnivore that also conducts electricity. In the present context, though, a new startup that’s working on developing a new toolset for backend engineers.&lt;/p>
&lt;h2 id="why-">Why ⏪ &lt;a href="#why-" class="anchor" aria-hidden="true">#&lt;/a>&lt;/h2>
&lt;p>Like many devtools startups, MetalBear was born out of frustration. We&amp;rsquo;ve both spent years building cloud services, splitting up monoliths, wrangling configurations, writing endless tests only to break production because of that one edge case.&lt;/p>
&lt;p>We finally came to the realization that while tools tailored to devops engineers, frontend developers, QA engineers, and more, we, the backend developers, were being underserved. So much of our day to day work seemed needlessly slow or complicated, begging for automation or even fundamental disruption, and yet no company seemed willing to rise up to the challenge. So we decided to start MetalBear 🐻&lt;/p></description></item></channel></rss>