Drew Conry-Murray 0:06
Hey everybody, welcome to Packet Protector, the podcast at the intersection of networking and security. I'm Drew Conry-Murray. I am in Munich, Germany recording at the AutoCon conference, AutoCon 5. JJ is holding down the fort back in the US. My guest today is João Soares. He just a few minutes ago got off the keynote stage where he gave a presentation on automating firewall rule changes. And based on the fact that as soon as he got off the stage, like 20 people came up to you to talk about your project. This is a really interesting topic. So… We're just going to jump right in first. Can you introduce yourself? Tell us who you work for, what you do.
João Soares 0:43
Yeah, I'm João. I work at Ørsted, leading offshore wind developer in the world. So we are a renewable energy company in Denmark. And I work as a network automation engineer. My official title is like Lead IT Security Consultant, but that doesn't mean much for AutoCon. So yeah, I do network automation. And yeah, automating firewalls at this point. And one of the reasons I wanted to talk about this in AutoCon is because everybody seems to focus on the network side of things, the network automation. Everybody forgets about firewalls, it seems. So I'm happy to be here talking about it.
Drew Conry-Murray 1:14
Yeah, this is great. I think it's a great topic. And again, based on the response your talk got with people wanting to get to that hallway track, dig some extra information out of you.
João Soares 1:22
I was surprised by that. I was not expecting that many people to be interested in the topic.
Drew Conry-Murray 1:27
Yeah, no, I think it's a good topic. Yeah, so let's get into it. OK, well first you work for a wind energy company, right? Are you a regulated industry?
João Soares 1:37
Yeah, absolutely. So we're the biggest energy company in Denmark. We've been there for, I don't know, over 20 years. But we were not originally fully renewable focused. That changed around 10 years ago, I'd say. We even renamed the company. It was DONG Energy before and now it's Ørsted and it's full focus on offshore wind at this point.
Drew Conry-Murray 1:58
Okay. And the reason I ask is because in a regulated environment, security is already high stakes, but in a regulated environment, you've got a lot of other… regulations and requirements and so on that you have to meet, which means Trying to tackle something like a firewall rule change automation project seems pretty hard.
João Soares 2:16
Yeah, and the compliance is there and there's a bunch of regulations we need to follow and also they keep changing. This is all we talk about nowadays, it's NIS2 and the new regulations coming in and the new requirements, but automation does not mean that you're breaking those requirements. It also, it actually means that. If you build your automation properly you're sort of forcing those requirements to be met. You're kind of baking those requirements into the process you're building. Yeah. One of the things I should have said on stage was that after we've made this product, then our firewall rule process is compliant by design because there's no way you can break the compliance if you follow these steps.
Drew Conry-Murray 3:01
Okay, so that's an outcome and we'll get to that, but let's start with like the before picture. Can you describe what the process was like before you built in automation?
João Soares 3:10
Yeah, I think most people will relate to this service now tickets. Coming in, firewall requests. And who's making the firewall requests? Everyone related to IT, I would say. So developers, application owners, product owners, even non-technical people that don't really know what a firewall is, but they got a word from someone that they just need to write it on service now. So it was everything that you can imagine was coming into a service now, typos, wrong requests, rules that are not necessary, FQDNs that weren't resolving, so everything. And it is what it is. It's humans. Humans will make mistakes.
Drew Conry-Murray 3:50
OK, so somebody writes a ServiceNow ticket. It goes through the process. Who does it land with? Who picks up that ticket?
João Soares 3:56
Yeah, so the process has been changing throughout the years. But let's say that a developer comes in, submits a ServiceNow ticket. Then the network security team, the ones handling the firewalls, will review the ticket, approve or reject and then the ticket goes on for implementation. And that's a different team handling that.
Drew Conry-Murray 4:13
OK, so there's a two-stage process. A security team has to review it. And then if it's approved, they pass it on to somebody else to actually implement it or
João Soares 4:20
Yes, assuming that the rule is sort of standard-ish, there are some rules that we need to follow. But if the network security team doesn't feel comfortable enough to approve that, they will add a third party, which is CAB.
Drew Conry-Murray 4:32
Okay, a change assessment board?
João Soares 4:34
Exactly. Okay. And that contains members from IT security like architecture all that you can imagine. And then it becomes, you already see four parties involved in this whole process.
Drew Conry-Murray 4:46
So do you have sort of an average time that it would take for a change to make it through all the way to being implemented?
João Soares 4:54
Yeah, in order to, let's see, I don't want to make it look that bad, but it would take… several days. Okay. From requests and if you're from a perspective of the developer, it might even take longer because once he submits a request, a faulty request, the network security team might reject it right away or might reject it after two days and then the requester lost two days already. Right. Then the CAB might do the same. So three more days you can imagine. So One week was conservative, two weeks was quite normal. Yeah, that's what we had to live with.
Drew Conry-Murray 5:33
And then once it went through the review process to the actual people implementing the change, was there also a time delay there or?
João Soares 5:39
There was, but that part was not the hardest part, I would say. We did have a team fully focused on firewall requests, even though they might take three days, let's say four days. The problem was the entire process until it get there. Because the configuration part on the firewall is once you have the rules approved and properly documented, just clicking around, quote unquote. On the firewalls, it's fine. Yeah, the problem was what came before that.
Drew Conry-Murray 6:04
Okay. So what prompted then… Who came up with the idea of we need to automate this and how did that move through your organization?
João Soares 6:14
Idea, we've always had the idea but the customers started getting very loud. We can say that. Escalations started becoming very obvious. And basically the customer said you either need to give us a way around this. Or we're just going to move to places where no firewalls can do anything. We're just going to move things to parts of the cloud that have no firewalls, let's say. They were already trying to avoid the process, which, you know, in a regulated business might make things complicated. So before things got worse, we kind of gathered customers as well. And we started questioning them like, How do you see this working? Now, one of the things I said in my presentation is that you need to involve your customers. You're building a product for them. They need to be involved. There's no way around. You cannot just, as a network security engineer, build a product that you think your customers would like because you just, you don't know how it looks from their side. Yeah.
Drew Conry-Murray 7:12
Yeah. Yeah. Okay. And so you actually decided we're going to do this internally, build a product for them as opposed to look for a solution on the market.
João Soares 7:20
Yeah, because we just, there was no solution and I'm not saying there isn't today but there was no suitable solution that would solve all these problems. Like what we've built here, it's highly tailored for our business and highly dependent on our own principles, guidelines, business logic. You just need a platform that you can improve, iterate on and develop it yourself. Of course, we did use some components that already exist. It's part of it. We're not just reinventing the entire wheel. But in some parts of the process, the wheel just didn't exist.
Drew Conry-Murray 7:56
So does that mean did you need to go have conversations like internal developers? Did you go outside for development help or how did you put all of this together?
João Soares 8:05
No? And the reason was that since I was joined, I just joined the company probably. It wasn't one year at that time. So since I had just joined, I had some developer knowledge since I started out as a software engineer. At least that was my bachelors. But then, yeah, I realized that I didn't really want to be a code monkey and code things that I didn't care about. So I had some of that knowledge and I knew I could make it work.
Drew Conry-Murray 8:35
But you also had experience on the network and security.
João Soares 8:38
Yeah, yeah, absolutely. All right. So I'm a bit of a background story here. After doing my bachelor's on software engineering, didn't really feel it. I moved to networking infrastructure and then That was very exciting, and I loved what I was learning there. And I started missing coding. So then you just get the best of both worlds when you actually code for the things you love, which is network infrastructure and security. So that's how it all happened. Of course, I didn't think I had the skills. And I still don't. There's a lot to learn. A real software engineer will know a lot more than I do. But I know I knew I could make it happen even if it wasn't 100% perfect. If it's 90% good, 80%, that's already good enough. If you already improved the process for 80% of the people That's a win. You don't need to get it perfect. Just start.
Drew Conry-Murray 9:29
So can you talk a little bit about what you built then and how it works?
João Soares 9:33
Yeah, so it started in 2022, the first version. And we, as I said, we gathered a bunch of customers, IT security, network security developers we didn't really involve at the time because we didn't think we would need dedicated developers for this. But we just, we were stuck in a room for a week. We called it the design sprint. And a bunch of white boards drawing the existing problems, the possible solutions. And you know, one of the problems in these meetings is that it can be very frustrating to be in the same room with the customers that have been nagging you the last few months. And the other problem is that some of the customers or developers in this case it might feel like they are trying to take over. You just need to really separate things. They are offering their own perspective and how they do things in the application side. But it's your product. You will need to control it. And one of the alternatives we had at the start was customers would just want to own the Terraform state and they want to deploy the rules directly from their GitHub actions, whatever, straight to the firewall. Can't let that happen. You know, that happens from, you know, in applications that might happen. But this is firewall. This is related to compliance. You cannot just own that. So what we built The first version of what we built was a simple… Abstraction layer on top of our firewalls, we built a YAML structure that customers would interact with using Git repos. All the Git repos were managed by us, so we had full ownership of those Git repos. And basically customers would write the YAML firewall rule, completely vendor agnostic. We abstracted all the complexity of a firewall. Like they didn't have to select whether we want to log this firewall rule or not, or whether this is an allow or deny rule, because it's going to be an allow rule. You're not going to create deny rules. So the only thing we presented to the customers was, were the things that we wanted them to affect.
Drew Conry-Murray 11:44
So did you like give them sort of like a yaml? Like you just pre-write a schema for them?
João Soares 11:52
And we agreed on that schema during that week.
Drew Conry-Murray 11:54
Okay. So that was a you asked them what kinds of things would you need?
João Soares 11:58
Exactly. Okay, that was the core part. And of course, we had to adapt the schema to what our requirements are from the firewall. And in this case, you know, we were using Palo Alto firewalls. Okay, so there's a very Palo Alto way of doing things where you create objects first, and then you create rules, okay, try to bring some of that to the schema as well. So the customers would create And they cannot just create a rule directly with IP addresses or… prefixes. They would have to create objects and maintain those objects first that's we decided that that would be a good thing to expose to the customers as well. So they also see the struggle that we have as firewall engineers.
Drew Conry-Murray 12:35
Yeah, why did you want to expose that to the customer?
João Soares 12:39
That part with the objects, it's just because it's really… It really relates to how the customers already think about their own platforms. They know they have a couple of applications spread around the network. So internally, they already have these concepts in their heads, like this application A is on Azure, on this network. They sort of know that. So this also forces them to document it in git in code. And we just happened to use those concepts in the firewall rules. So it kind of aligned. We might think that we are very different from developers when we're building firewall rules and managing a ton of firewall rules, but we're not that different. And that's what we also found here. It might have been frustrating week with developers, but after we had this product out we realized that we can actually speak the same language. We just needed this interface. But back to the product itself. So, abstraction layer, YAML, customers would write YAML. And in the first version, we were still using Azure DevOps. So, it was a big Azure DevOps pipeline that picks up the rules from the repo, runs them through a validation, let's call it script at that time, it was a script. And that's where the… the core of the solution is. Yeah, we were creating validation rules for every possible thing you can imagine creating some examples. Yeah, customer cannot create, for example, the duplicated. Duplicates are easy. You cannot create things with the same name. But then we also created the checks that you cannot just create two objects that relate to the same prefix. You cannot create two rules that do the same thing, even though they have different names. And then you take it a step further. If you want to create a rule based on source AD groups We make sure that those AD groups exist. We make sure that they contain members that make sense. We make sure that you're not just using an AD group with 5,000 members. If you're using a prefix, we also need to make sure that you're not just gonna say, oh, 10/8, I want that to… 192/16. You know, we had a lot of those rules back then. Before we even got to validating the security policy aspect of it, we just need to make sure that the rule makes sense first. FQDNs resolve the FQDN during the validation, make sure the FQDN resolves to something you expect. All the IPs that were used in rules, they need to exist in the source of truth. If they didn't… Well, tough luck. We don't really care if the IP is responding to ping and it's real. If it's not in the source of truth, it's not real for our validation.
Drew Conry-Murray 15:18
So this validation script was were these processes manual before you built this product? Absolutely. They were, okay. So this is where the automation part really lives is.
João Soares 15:31
Yeah. You know, the configuration part of it, the part where let's look at it after the validation passes and we need to actually deploy the rules to the firewall. That's around 3% of our code right now. And that was not even the problem to start with. Like, again, clicking around in the firewall, when you have the rule perfectly written, it's easy. And it's still easy. Automating that. You have the rules in a perfect state. Hand it to Terraform, Terraform will do it, commit, push, done. The 95%, 97% comes before that, getting the process right, getting the rules in a perfect state. So yeah, the validation is everything and it's what allows us to run this product inside the company. So
Drew Conry-Murray 16:15
You had the big meeting with all the developers and all the other stakeholders for a week. Was there also similar meetings for people who would be doing this validation work manually that had to get together and be like, what do we need in this validation script or how did that come together?
João Soares 16:30
Oh, you mean developing the validation or the ones that were doing it before manually?
Drew Conry-Murray 16:34
The one developing that validation script, how did you decide? How did you decide what goes in there?
João Soares 16:40
Yeah, so the very obvious low hanging fruits that I've just talked to you about, those are sort of obvious for a firewall engineer. Like you know what should go in and shouldn't, but then… whether a rule is allowed to be created or not, that had to be IT security. We had to sort of force them to create a standard here. Because we're not just going to send every rule to CAB for approval and we're going to overwhelm them. So there needs to be something here that you're okay to allow that the risk is so low that you don't mind if the rule is created without any human intervention. And we did find those cases. And we also realized that those cases covered 80% of our cases. A real example would be… We had our network split by zones. That's basically all I can say. And zones, some zones are more important than others. Some have tighter security than others and in some cases connecting between two zones of the same… security level, let's say. It would be fine as long as they use specific protocols. So we just had to translate whatever the security people have written in SharePoint, Word documents. We had to translate that to…
Drew Conry-Murray 17:56
Network. And it's translated into some kind of code too, right?
João Soares 18:00
Yeah, exactly. So that's where Nautobot came in. And not only we used it for our entire validation, of course it's our IPAM, every IP prefix is there, but we also started modeling.
Drew Conry-Murray 18:10
Nautobot's your IPAM?
João Soares 18:11
Yeah, yeah. Yeah, okay. We also started modeling these security policies in Nautobot because as soon as you model something there, it's going to get available programmatically as well.
Drew Conry-Murray 18:23
So when you say modeling, are you talking about you are thinking about it from an intent version or modeling in that this is how the data structure should look like and so on.
João Soares 18:33
When I talk about modeling in this case is actually building custom models in Nautobot like you can refer to it as a database model. That's the modeling I mean. So in this case, we had to translate whatever was on Word documents saying, you can go from this zone to that zone using a… web-based traffic. We had to translate that into
Drew Conry-Murray 18:57
Zone A to Zone B using HTTP or whatever.
João Soares 19:00
Yeah, in our case, what we did was we created these security models in Nautobot, and we related them to the network. So Zone A, what does that mean network-wise? Because when we configured networks, we're not writing Zone A. We're writing a prefix, a VRF. So in Nautobot, we just had to create those models and start relating them to the other models we already have in Nautobot. And once you have all that mapped out, then it's just creating a relationship. Zone A to Zone B using SSL, that's okay. And that feeds our validation. So our validation picks up the rules. And based on sources and destinations, we can figure out which zone they are part of, and then we can figure out if they are allowed or not. And if they're not allowed… then we can also decide, is this like a big no-no, like there's no way this rule is gonna get through, or should we send it to CAB? And the customer will decide that as well Because in some cases, we as network security… We're not just going to decide for the customer if this rule is really necessary or not. The CAB is going to be responsible for that, IT security architects.
Drew Conry-Murray 20:06
So you built out the workflow. Is this sort of like the first instantiation? Did you develop this more or did you start letting people play with it and figure out what else you might need or how did that work?
João Soares 20:18
Yeah, so the most important thing is getting started. Just… gather some beta testers. We did that. We think we had three teams as beta testers. One of them was the real pioneers. One of the teams that were… They were the biggest requesters, the biggest power users. And those were the ones that we decided to attack first. So as beta testers, they found a lot of issues, possible issues, things that didn't really work for them. And that helped us develop version one. On version one we started onboarding more and more customers, more teams. And it was already mind-blowing for everyone who's already super impressed without… Even without even getting to version 2, which is where we are now when we thought about releasing version 2. I got questions from customers saying, "Why do you need the version 2? It's already perfect." Nice. And that's when you realize what success is. When you see customers not only interacting with your product so frequently, but also we saw a trend like customers were actually supporting each other in creating proper firewall rules. So we have the support channel set up for questions related to the product. Support anything you need, suggestions and we saw customers responding to each other. That was amazing. They were doing the work for us. They were part of our team. Customers would come in and say, why is this firewall rule not passing validation? And another customer would say, that's because you should not use this FQDN there. You should use this instead. And that was just lovely to see. And then on version 2 what we did was basically… we used a bit more Nautobot than before. So before version one, we were using Nautobot as only the validation engine, let's say. And on version two, we're actually hosting the rules in Nautobot before they get deployed to the firewalls. And the customers didn't really see the point for that. But that's also because that's really not for them. This is for auditors. This is for people that want to have access to the rules. And before they had to go into 40, 50 different Git repos to get a full overview. And now they have one platform where they can filter the rules, search for them single pane of glass. And that will also help the customers. They just don't realize it just yet. But when you have an application, a product owner, let's say that wants to get an overview of the rules affecting his or hers application just go to Nautobot, it's all there now. And before it could get messy because… It's not like the rules were all centralized in one or two Git repos, they really spread around. And yeah, we also moved to GitHub, but that's… You know, our product is really independent of what source you're using, GitHub ADO, Bitbucket. It doesn't really matter as long as it's Git. And that's also another… One of our requirements for the whole project is that we don't want to become hostages over third party vendor here. And of course we do use Nautobot, but Nautobot is also open source. And we have made a lot of custom development on top. We're using Terraform and Ansible. We're using Python. You know, there are, of course, some dependencies here, but there's no deal breakers. There's nothing that a vendor can do here that will put us in a tough situation.
Drew Conry-Murray 23:35
On the other hand It's all on you to keep this running. And do you feel like you've got the time and the support to maintain this project?
João Soares 23:44
Yeah, so far we're onboarding more people into our development team. I cannot call it a development team yet because we're still network security engineers. We just happen to have a development side gig, unfortunately. My dream is to have a real automation team. And I think that will have to happen. But so far, we are splitting the work we are. I am full-time developing this, not just this product, but other automation-related products. And I have onboarded some of my network security colleagues, originally only Firewall of our own engineers but with a clear wish to learn how to code and to come into this world of network automation. So they're doing a great job there developing new features for our product and of course It is. It is a problem if you lose all these people. You cannot just call a consultant to fix your product. But in the end… everything we're doing is pretty, it's Python code, you know, it's Python and it's Nautobot, it's not like we're coding in some very shady language. You can figure it out. But yeah, it's a problem that we, it's a risk that we are accepting because of all the value that it brought already. Even if it ends now, it would have been worth it already. So.
Drew Conry-Murray 25:07
You had You were addressing the needs, one of security teams and two of developers, but there are also other stakeholders like the CAB, IT security, compliance folks who might be like, wait, you're gonna do what? So how did you get them on board as well?
João Soares 25:25
Yeah, that was tough. And that was a real challenge. Automation scares security people. It does. For good reasons. Absolutely. Yeah.
Drew Conry-Murray 25:32
And when you're talking about firewalls, the blast radius is…
João Soares 25:37
Potentially devastating automation scares compliance auditors, but you have to turn it around. You have to show them that What's not compliant is the existing process. And there's no way, you know, there's humans in the loop and there will be mistakes. There will be rules that are created manually that someone will forget to append the service now ticket to them, for example. And all of a sudden you have a rule that nobody knows where it came from. That's not compliant. So we just have to, we had to build trust. We had to have a lot of tough discussions, tough teams meetings. You know, my watch was alerting me like abnormal heart rate in some of those meetings. It's it is what it is, but you just need to gain their trust and prove them that. Look, we are following your guidelines here. We are not just making it up, making our own guidelines and say, "Oh, we think this rule is okay to go." No, you tell us what we need to do and we'll… put it into code will actually transform your policies into code. And as soon as they understood that it was happening, they had to assign a more technical security person to our case. And that's when things really kicked off.
Drew Conry-Murray 26:51
Can you talk about that? Because a lot of the talks at AutoCon this time around included the need to be able to communicate the value and the and build trust with other groups that might. Can you talk a little bit more about how you built that trust? Because it's one thing to say build trust, but how did you actually do it?
João Soares 27:11
Yeah I'm an engineer. I don't really speak politics, but it was a lot about politics to start with. Even if I tried to convince them that this product is safe to run, it's fine. We are doing all these validations. It's still not enough. You need someone to be able to take those discussions with to be like serve as a translator between engineers and security. We had a really good My product owner at the time that was with me in this whole journey, he was a really good salesman and also a technical guy, but he was the one selling this to all the customers and to all the security teams. But it was still not enough because, you know. It's hard to gain trust from security minded people. It is what it is. I am a control freak myself. So what ended up happening is that security found they assigned a really technical security person to our case. And he was a… He's basically a borderline hacker, penetration tester, a lot into intrusion detection. And what we did was we sat in a room. And I drew the solution on a whiteboard. And then it's like, all right, go attack it. And even though he didn't understand the intricacies of the solution, like all the little details, he started asking questions like, what if we just… What if Microsoft gets compromised? Something like that. You're using Azure DevOps. What if Microsoft gets compromised? What happens to your firewall rules? You know. Those are the kind of things that I did think about, but it's so far-fetched. But that's what made them feel safer. Like now we're actually attacking the things that they care about. And we created a bunch of guardrails, extra guardrails around the product to make sure that, all right, even if these vendors get compromised, Git repos, ADO, the agent pipelines that we were running, they're all interacting with Microsoft to start with and now well we're still getting rid of it because now we're on GitHub which is also Microsoft. But essentially what they wanted was for us to be 100% in control. And yeah, we did have to add some guardrails and that was basically the key. By having this person as a middle layer between us and You would basically talk to us technically and talk to his security colleagues in a more security minded way. And it was we built the trust and he was ensuring that not only we did, we covered the holes that he found. And then it was just conveying them back up. And that was it. Like I did not need to talk with the higher ups that he was reporting to. I also didn't want to. We're speaking different languages, you know? So as soon as we got this someone technical to discuss with us, that was the key. And if Jens is listening to this, thank you. That was you. Okay.
Drew Conry-Murray 30:15
And was there also executive sponsorship for this? Or did it bubble up from the ground? Or was it a top down like we need to do this?
João Soares 30:23
I think we met in the middle in a way. The executives were getting pressured from the business, other sides of the business.
Drew Conry-Murray 30:31
Application owners were like, it's taking too long for us to do that.
João Soares 30:35
Absolutely. Okay. So our product manager, he was getting complaints from a bunch of other other sites, you know? So but it's not like he could not just tell us how to fix it. That's not his job. It's like he wants us to fix it. But we had to come up with a solution. So that's how we met in the middle. OK. And we wouldn't be able to do this without having the developers involved, having the customers involved and security. It's just involve all those people from the start. You should not try to take it all upon yourself. That's not going to end up well.
Drew Conry-Murray 31:09
And did you feel like you had to build kind of a business case for it? Like we can accelerate changes by XYZ or whatever. Did you have to do that? Give somebody back of napkin numbers or anything?
João Soares 31:20
Not really, because since the process was so inefficient. Anything that we did to improve it would be… It would have been a benefit. It was already signed off. So we actually have a beta going on. I think we started in… Was it October 2022? November maybe? And in March, we already had customers using it, but beta testers. But from that beta testing, we could already see a huge potential in all this. So that was what, three, four months? It's easy to sign something like that. But it was a full focus during those three, four months to come up with something.
Drew Conry-Murray 31:57
Okay, so that was your entire job for that?
João Soares 31:59
Absolutely. Yeah, yeah. And that was version one. And then… version 2 is even better.
Drew Conry-Murray 32:07
So it sounds like there may have been some things already in place that enabled this, like having… Did you bring Nautobot in for this or were you using Nautobot already and you were able to draft off that?
João Soares 32:18
Good question. Actually Nautobot, when I joined the company, we were using a different product, but it was not very suitable for automation and I joined in as an Cisco ACI plus network security engineer, sort of a jack of all trades. But when during my interview, I told him clearly, look, I can do this to start with. But my focus, I want to do network automation. I want to do this full time And they supported me on that. And as soon as I joined, I noticed that, yeah, you're a source of truth there's it's missing, it's missing some capabilities. And you know, there was an API sort of, it was not great. It was impossible to customize. And that was the big the biggest blocker. If you have a source of truth that you cannot just customize and add your business logic to it… Then it's not going to work for automation. It's just going to be super limiting. So the first thing I did was, all right, we need to get a real platform here. And we did assess a couple others, not just Nautobot. But we did go with Nautobot because it was just not only… Great IPAM. That's the foundation of it a great IPAM and the great Based on Django, we can actually customize it as our custom models. But they were also focusing on the automation part of it at Network to Code. They were not just trying to build a really good IPAM period. They were focusing on automation with the jobs and the Celery workers integration. And that was the deciding factor. Do we want to just have a really good IPAM or do we want to start our automation journey. And this was before… the firewall automation. Yeah.
Drew Conry-Murray 34:06
So this was like the substrate for…
João Soares 34:08
Yeah, absolutely. It was by chance we didn't know that we were going to have to develop a firewall automation product at the time. We just wanted to centralize our data, be in control, start sanitizing and validating data.
Drew Conry-Murray 34:21
Is it just firewall data that's in Nautobot now?
João Soares 34:23
No. Or are you doing it lots of other things? It's a lot. As it still happens today in many companies, we have a lot of information on Excel. And it just cannot work with it. There's no API. You cannot just interact with Excel as easily as you can with a proper REST API nowadays.
Drew Conry-Murray 34:41
So, um, when the last time that file was updated, absolutely.
João Soares 34:44
And who can update it? Yeah. Yeah. And why the updates happen, you know, and how did it look five months ago? So Nautobot kind of fixes all that because there's a change log as part of it. There is a super granular actually I've never seen such a granular permission model as the one we have and we're even the permission module is so granular that we are doing things that Network to Code didn't think that any customer would do. So during upgrades we. We report a lot of issues because we are one of those tough customers that are doing two specific things. So yeah, we just had to centralize our data, get rid of Excel files, get rid of the old platform and start validating.
Drew Conry-Murray 35:29
But this is hard though because you're forcing people to change the way they've done things.
João Soares 35:35
Oh yes, it is what it is. Sometimes you just have to be tough. And we were very lucky that we own the IPAM in our team.
Drew Conry-Murray 35:42
Okay, so you had some control over it?
João Soares 35:44
Yeah, we didn't. Not everyone using the IPAM was inside our team. You just have to live with it. We cannot just allow… people to write their IPAM on excel because it's convenient for them that's not how it works you cannot wait to get the buy-in from every single individual Some people were not happy, of course. They were used to working like that for 10 years. I've always done it like this, why should I change? Sometimes you just have to adapt.
Drew Conry-Murray 36:14
But that kind of ability to make that decision does need backing from the org in some way. Absolutely. Yeah. OK. So you had that before you went in.
João Soares 36:23
We had some trust. OK. And that's key. Yeah. Not only full trust, but during the POC of one of these tools. The POC already brought so much value that the business owners were like, oh yeah, just go with it. That's obvious. And our POC was basically centralizing some data and then showing, look, this is what you can achieve with a tool like Nautobot in this case. You have this data that correlates to this, this, and that. And before, this was spread around three Excel files and one another platform. And now you have everything in one And that was a no-brainer, like, okay, just go with it. Just do it. Oh, what about the other people that will not like it? Ah, it doesn't matter. Just do it. And you need to show value first. You cannot Take a risk. And I am not really sure if this is going to work or not. Well, sometimes you can do that, but not in this case. In this case… showing value first hand, that was the key.
Drew Conry-Murray 37:22
Okay, so you mentioned Nautobot, you mentioned Terraform. You've done some Python coding. Are there other components of this that folks should know about?
João Soares 37:30
You know, when interacting with the firewall, you might not be able to do everything in Terraform. So we are using Ansible for parts of it.
Drew Conry-Murray 37:37
Ansible, right, okay.
João Soares 37:39
But we use Terraform for the bulk of the deployment and the firewall rule configuration. And we use Ansible for… If you're familiar with Palo Alto, the Committing and Pushing state at the end. It's like all the rules are ready to go, but someone needs to press the commit button, push them to the firewalls. That's Ansible. OK. What else we have? No, I think I'm not going to name all the Python libraries that we're using. No, no, no, that's fine. But I would say 90% is Python, 90 to 95% is Python.
Drew Conry-Murray 38:10
And what's exposed to your customers then? Is it just GitHub? That's how they're interacting with this?
João Soares 38:18
We have a centralized configuration repository where the customers get onboarded to this platform. So they decide what's everyone will get the unique ID every day customers will decide which GitHub organization is is their repo going to be part of And this is basically like role-based access control to make sure they have the provisions and there's documentation that they're doing these things. So the customers, we were not just going to deny a customer from getting onboarded, but we will need a reason on why you need access to this product. And during the onboarding, they were also, they also are forced to specify the workflows that they need to enable. And if a customer working mostly in the cloud needs access to some very specific on-prem firewalls, workflows, we're going to spot it. And it's going to be strange. The onboarding process is essentially the customer submitting a PR to a repo that we control. And we have validation running on that as well to make sure that this repo is valid. It exists. It's part of our organization. The people managing these repos are, you know, it all needs to be AD groups. We're not just going to have individuals taking care of this. So the customers sort of control the Firewall Automation product on that single Git repo. And if, let's say I'm a part of application A, I onboard my repository that I will host my firewall rules on, and I define a team that will approve those firewall rules. Because even though we are out of the process as network security engineers, we enforce the four-eyes principle on each repository that the customers manage. But we validate that on our back end because the Git repos that the customers are onboarding, we have no access to them. I mean, we have read access to be able to see the rules, but we cannot just… we cannot manage dozens of GitHub organizations and repositories and enforce policies on each one of them. So what we do is we validated on the back end. We know the groups that should be approving this, so when the customer makes a commit and tries to trigger the deployment process. We actually check the latest commit, we check the PRs that are associated to that commit, we check the approvers on those pull requests. And we verify that those approvers are part of the group that was onboarded originally. So this whole chain needs to be controlled from the backend. Because the principle is that we don't trust the customer Git repo. We don't trust the rules that are there. We trust them after they pass validation. Before that… zero trust.
Drew Conry-Murray 41:01
So this validation engine, like which is at the core of this, is that something that's like constantly being worked on or is it sort of like
João Soares 41:10
Yeah, I would say that. After you sort of find the rules that are critical for you, it's almost a set and forget kind of thing. The product just… It just works sort of on its own, especially when we involve the CAB optionally as well. Because then your validation does the part that can be done automatically. But if CAB is needed, then our job stops there. We wait for CAB approval. Yeah, yeah, yeah. Yeah. What was your original question again?
Drew Conry-Murray 41:42
I guess is this validation logic something that you are constantly updating or tweaking or adding new things to new capabilities?
João Soares 41:49
Yeah. We're still adding some quality of life improvements for the customers as well. And you know, When the customers start creating and owning firewall rules, they also realize that I actually don't want other customers to create rules to my applications. I want to be able to manage that. And you know, from a product standpoint, that was not our job. We just wanted customers to create firewall rules for the things they need. If they are pre-approved or if they pass our security policies and CAB approves them, it's fine but we didn't account for All right, does the receiving team or the destination team, do they want this opening to be made?
Drew Conry-Murray 42:27
Interesting. Even though the source team needs it, but the destination team owns the platform. So you mean an application might need to call to some kind of service or something?
João Soares 42:36
Database, for example.
Drew Conry-Murray 42:37
Yeah, yeah. But the database team might say, "No, we don't want you to access." How did you solve that?
João Soares 42:43
Yeah, so we are still solving that. But what we created was… an ownership structure where each prefix, each IP, everything has an application assigned. We do have an application dictionary, but that's even before the whole firewall automation. Each prefix, IP, everything gets an application assigned. And then we have access to this application dictionary and we know… Who can actually, who owns this application? Who is the technical responsible? Who's the architect? Who's the product owner? So with all this ownership and all accessible programmatically. Just a matter of. We, when a team requests a firewall rule from point A to point B we can find the owners of A and B. And then we can also see, is the team requesting this? Are these members the same as the owners of this application. If they are, then we let it through. If not, then we need to decide, pause on the side, that's what we do. Or not we, the validation does. If the owners are not the same as the application owners, then we go to the actual owner repository configuration and we figure out do these… Do these application owners, do they want to take control of the firewall rules in their own repo or do they allow the other teams to do it? Because that's also part of the configuration that they do when they get on board. Do you want to take ownership, full ownership, and centralize your rules? Or do you want to allow other teams, basically your application rules, to be spread out? And if they say, if they configure it as no, then the originating pull request will get a validation error saying… This rule is valid, but you're not allowed to do it in your repo. You need to go to the other team's repo and submit a PR in there.
Drew Conry-Murray 44:32
Now it sounds like you consciously built this. You said you didn't want to be necessarily locked in by a specific vendor. I'm also curious if you're able to like decouple it from a specific firewall vendor as well. Like if you bring it in, if you have a multi-vendor environment, could it operate the same way?
João Soares 44:48
That is a very good question. And even though the whole product is vendor agnostic, of course the deployment part, the configuration, the last step is very vendor specific. We're using Terraform with Palo Alto providers. It's not just a plug and play to come in. Another vendor comes in and we… It just works on every vendor. But… everything else before that point is quite vendor agnostic. So I would say For another vendor to come in, we would need to adapt the deployment part. We would need to have some, let's say, plugins for the deployment that supports multiple vendors. But everything else, a security policy, a guideline, is a guideline no matter what vendor you use. Point A to point B using these applications. Sure. Palo Alto calls them SSL. Another vendor that supports another app ID structure calls it something else, but it's the same thing. So I don't think it would be a big problem even though we haven't done it yet. But what, um… What would be a problem would be deciding or figuring out which firewalls are involved in the process. Because right now, the way we do it is we actually provide our customers with a sort of a cheat sheet. They look at a table, looking at source and destinations, and they can figure out where the firewall rules need to be created. They don't understand that they're doing it on Firewall X and Y and Z. But we sort of translate it internally. But if we add more vendors to the mix and more complex paths We will need a way to detect which firewalls to change automatically. We have some ideas on how to do that. There are also some vendors out there that claim they can detect the full path and Tell us which firewalls need to be changed. But our environment is quite complex and there's a lot of policy-based routing and there are some corner cases that not all vendor support yet. So what might end up, what we might end up doing is actually modeling that inside Nautobot as well. Because we want to abstract it from the customers. The customers shouldn't need to say which firewalls will be affected in a certain flow. Right now they do that because we provide them this documentation. But in the future we just wanted to go automatically source a destination b we should be able to figure out which firewalls will be crossed.
Drew Conry-Murray 47:14
Right, right. Yeah, right now that part is sort of manual.
João Soares 47:17
Okay. From the customer side. From the customer side. Okay.
Drew Conry-Murray 47:19
But that's okay, so you put that burden on the customer.
João Soares 47:23
Yeah, it's a trade off. In Palo Alto, we have something called device groups, which is basically an aggregator of firewalls. It's a group of firewalls. And we know exactly where those are placed. The customers don't know. But we essentially create aliases on those device groups, and that will help the customers realize that. If I want to go from Let's say Azure to AWS. Then according to this table that they are offered, Azure to AWS, that is device group A and B. All right, then I create rules on these two so they don't really know what's happening in the background but they will know if the firewall rule is not working and they will know why. And that brings me to another topic as well. And I'm sorry, I'm sort of taking over.
Drew Conry-Murray 48:09
No, go ahead.
João Soares 48:10
But logging.
Drew Conry-Murray 48:11
Ah yes.
João Soares 48:12
You have to provide the customers with a way? of checking if their firewall rule works or not. And of course, you can also test it. But we provide them access to their own rule logs via something we use internally, the logging platform. Doesn't really matter. But what matters is we are centralizing all the logs from our firewalls in one place. And then. We essentially created permissions around Who can see what logs? and customers from repository, from rules created in repository B, they can see the rules coming from that repo. So they will know if your firewall rule doesn't show up there. You know, either it's shadowed by another repository maybe someone else is getting the hits or you just didn't create the rule correctly. And you know, some customers will sort it out. For example, we have a… customers creating rules from A to B and they say the application is SSL, but actually our file is identified as something else. They identify it as, let's say, service now. So the customer will know that, oh, my traffic is being denied and the firewall is saying service now. So maybe I should use that instead of SSL. So they're becoming mini firewall admins in a way. And worst case scenario, they'll post a support request for this product and another customer will help them.
Drew Conry-Murray 49:32
Okay, that's good. And you'd mentioned at the start that this was initially driven by ServiceNow tickets. Is ServiceNow still in the loop? Are you like collecting things in ServiceNow, all these changes and so on? Or are you doing that through?
João Soares 49:44
We are collecting the changes in ServiceNow. Okay. But the tickets The request ticket is not that important. What you need is a change request. That's what relates to compliance and auditing. The request ticket was just a formal way of registering a request coming from a form. But that's not what makes it compliant. It's the changes. Every single rule. No, every single change that happens needs to be registered. It doesn't matter if you're just changing the description of a rule or you're changing We're deleting a rule, adding a rule, everything needs to be registered. And our product does that by default. It's not like a human will forget to register a change. If the change fails to be created, The whole thing breaks. We don't let the rule go through.
Drew Conry-Murray 50:33
And are you using any other tools like others? Things like AlgoSec, Tufin, or FireMon that do this sort of firewall rationalization stuff or is that something you're handling with this validation logic that you've built or?
João Soares 50:46
Yeah, so once again, we didn't want to be dependent on third party vendors for this. And we want to be, we're never fully immune, but we want to be immune to price hikes, to crazy price hikes that have been happening to other vendors. So we do have some vendors that would be able to fill in some of the, They will be able to replicate some of the parts we've coded ourselves. But the trade-off of reinventing parts of the wheel was worth it compared to becoming dependent on another vendor. And this is also the discussion we're having now for a firewall path discovery. There's a lot of vendors, including here at AutoCon, that would tell you they can do that. But that comes with a price tag and it's not a small one. So this trade-off sometimes you just got to consider. Is it really that bad doing it yourself? Are you really reinventing that big of a wheel? Or are you reinventing just a small part? Because that might make it worth it. Yeah.
Drew Conry-Murray 51:43
So we talked about the before, what is the after like now? How does this process work in the real world?
João Soares 51:49
Yeah, so the after is, we're on version two. Customers have their own Git repos. We have no control over their Git repos. We own the entire back end. Things are flowing. We realized that We actually need to split our terraform state, for example. This is quite technical. To start with. We have a huge Terraform state with all the customers, all the rules. And you know, the more rules you add, the longer it will take for Terraform to deploy. So the process was becoming… you know, taking 30 minutes to the Play firewall rules. It sounds like a lot, but before they had to wait days, weeks. So it's still better, but it's not good enough. So we had to split the whole thing, split Terraform state, even though at the end it will end up in the same platform, which is the firewall management platform but Your terraform state does not need to represent how things actually look like in the firewall. So we sort of abstracted the whole thing and we split Terraform state. Each customer gets their own Terraform state. So everything is quite fast and snappy. But now what we're actually… Working on is how do we address the non-technical users? Because these, all these customers that I've been talking about, they're developers. They know Git, they know YAML, they know GitHub Workflows actions, they know how to read logs, they know how to read the… They probably know how their application works and what ports are needed for this and that. Probably, not always. But then you do have some non-technical users that have no idea about Git and don't want to learn either. They just want to form… that they can easily get some drop downs, point A, point B and submit. And that's how the previous process… It didn't really look like that because there was a lot of free text and when you have free text… You have mistakes. So what we're doing now is we're creating another frontend for this product. One of the frontends is Git. Sure, that's going to but we need a new front end for these non-technical users. So we're creating custom forms with the Nautobot Okay. That we were abstracting, but they are going to be part of this product. So the customers are going to be able to go into this form, have some dropdowns in source and destinations, just as if they're writing a rule in a Git repo, but they're actually doing it in a form. So it feels like human, very user friendly, you know? But in the end, when they click submit or validate, there is going to be two buttons, basically. It's validation and submit. And the submit cannot even be clicked until they run the validation. But when they run validation, these customers, they will get the same exact feedback as the ones in the Git repos do. So we run the exact same rules. Doesn't matter if they come from Git or they come from a form and you know If the customer cannot interpret why his validation is not passing, maybe you shouldn't be doing a firewall rule to start with. If the validation tells you your FQDN is not resolving, it doesn't exist. If you don't know how to fix it, you should probably stop and not submit a firewall rule request. That is sort of our mindset. So there will be customers that might be left out of this process. But in my mind that's a good thing.
Drew Conry-Murray 55:05
Does that mean they would have to then just go through the old way of a service now ticket? No, that's going to disappear.
João Soares 55:10
No, that's going to disappear. Yeah, we cannot keep the old ways. What's going to happen is that they need to find someone more technical in their own teams. We cannot just have you know, having a free text form that has no validation. It's not scalable, it's not gonna work. So this form is already, this new form that we've creating is already… user friendly enough for 99% of the customers. If we lose the 1%, it's worth it. And then the good thing is that this will follow the exact same process as the Git repo. It's the same engine, the same thing, same product. The challenge will be How do we make these non-technical users own their firewall rules like the ones in the GitHub or that I do? Because the ones… the ones owning the firewall rules in the Git repo. They can see the entire rule set that they've created in the past. Security can go to them and say, "This rule, you should delete it because this is not necessary anymore." Or if they decommission an application, they will know that the rules need to be decommissioned as well. But when a customer, non-technical one, requests something using a form, As soon as you click submit, it forgot about everything. It just, it doesn't care about the rule anymore. Sure. But we need to bring that back. We need to find a way to hold those customers accountable. You know, you're requesting the rule, even though we are implementing it automatically, that doesn't make me responsible for it. You're still responsible. And we have this whole traceability. We know which user requested the rules. We know which applications are involved in this. We know which applications this user is responsible for or a part of. So we have the full, all the data we have is right there. If the rule somehow becomes non-compliant or if the rule stops getting hits after six months, imagine the rule has no hits for six months, we know who to contact. So it's just a matter of
Drew Conry-Murray 57:02
Okay, that's interesting.
João Soares 57:04
Yeah, providing them a platform as well to be able to see the rules they've added previously and delete them if they're not necessary.
Drew Conry-Murray 57:13
So last question, if somebody's listening to this and thinking, yeah, I want to try this in my own organization, like besides trying to hire you away, what would you recommend they do? What can they do?
João Soares 57:25
Yeah, the advice I usually give is focus on the 80%, focus on the bulk of requests. You know, if you start thinking about all the corner cases and all the problems you'll face, you're never going to start. There's many people, including people that we've interacted with during this whole process that were telling us this is not going to happen. You have all these cases to consider, that's never gonna happen. But the answer is… We'll talk about that later. For now, I want to focus on the 80%. And if you figure out that you're 80% of the requests you're getting is if you can concentrate that in a couple of zones and a couple of applications like SSL, AMQP, whatever you're using. Just hit those 80% and of course involve your customers figure out who your power users are and treat your…
Drew Conry-Murray 58:13
You probably already know, but…
João Soares 58:15
Yeah, exactly. But you've got to treat the whole thing as a real product. Don't just… It's not just a couple of scripts that the firewall dudes are managing. That's not the point. It needs to be a real product. Name it. I thought it was stupid to name this as a product. But my previous product owner was like, "No, no, no, In a couple of years you'll see people who are going to be talking about this product and you're going to be very proud. And I just thought it was cringe. Oh, come on. It's just a couple of pipelines. It's an abstraction script. No, trust me. We got to name it.
Drew Conry-Murray 58:45
Interesting.
João Soares 58:46
And yeah, Mass, if you're listening to this, yeah, he was the one, we were actually using chat GPT to name this product. And I thought it was so. So bad these names coming out. But he made it work and people are talking about it inside the company. And that's a really important thing. When people… know the name of the product, they know the version, there's release notes, there's a support channel. You gotta treat it as a real thing. It's not just a couple of scripts. Of course, you don't need to start with the whole product organization set up. But Involve your customers and start small but aim for the 80%. When you get there… Think about the rest, but don't think about it right now.
Drew Conry-Murray 59:33
OK, yeah, that's good advice. You don't have to boil the whole ocean. You don't have to solve the entire problem at once.
João Soares 59:38
No, no, no. You will never
Drew Conry-Murray 59:41
Are you online anywhere? If folks want to reach out to you, get more information or you blog, do you do anything like that?
João Soares 59:49
I don't blog. I mean, I did start, but the whole legality of blogging and the things I can and can't say became a bit of a hassle. So I probably will not blog, but I'm on LinkedIn. You can search my name, João Soares, on LinkedIn.
Drew Conry-Murray 1:00:06
OK. Yeah, we'll have that link in the show notes that accompany the podcast.
João Soares 1:00:11
And just add me. And feel free to ping me. Reach out to me by email as well. And if you need to schedule a meeting to know more about this, I'm also available for that.
Drew Conry-Murray 1:00:21
Awesome. Well, João, this is a fantastic conversation and I'm glad we got to give you more time than the 10 minutes you got on stage. So, really appreciate you taking the time to really dig into this. It was a lot of fun.
João Soares 1:00:32
Very happy to be here.
Drew Conry-Murray 1:00:33
Awesome.
João Soares 1:00:33
Thank you for inviting me.
Drew Conry-Murray 1:00:35
Yeah, thank you. All right, well that wraps up the episode of Packet Protector. Thank you for listening check out packetpushers.net to find this and many more episodes. We have a whole ton of other shows talking about all kinds of technical stuff for your professional development. As always, thanks for listening and stay safe out there.