Welcome to The Secure Developer, a podcast about security for developers, covering security tools and practices you can and should adopt into your development workflow. The Secure Developer is hosted by Guy Podjarny, CEO and co-founder of Snyk.
In this episode of The Secure Developer, Guy talks with Chef CTO Adam Jacob about the role security can play in DevOps and continuous integration/deployment. They cover the differences between baked-in and bolted-on security and how automation with Habitat can change the way developers approach secure coding. Adam Jacob is the co-founder and CTO of Chef, formerly known as Opscode, where he wrote the open-source, automated applications project Habitat.
This podcast is brought to you by Heavybit, a program that helps developer product companies take their product to market.
Guy Podjarny: Hello, everybody, and welcome back to The Secure Developer. Today we have an awesome guest on the show, Adam Jacob from Chef. Adam, thanks for joining us.
Adam Jacob: Hi.
Guy: Weâll talk about various cool topics we teed up, that I think are interesting with the world of security and the world of DevOps and CI/CD, and some very interesting new package management, build system capabilities coming out of Chef that I think are very relevant to the security play.
Before we dig in, for the few of you that might not know Adam Jacob or Chef, Adam, do you want to give a quick intro of your background?
Adam: Sure, I think thereâs probably more than a few who have no idea who I am. Iâm Adam. I wrote Chef, originally. Iâm the CTO at Chef, and I wrote a thing called Habitat not that long ago that does application automation. And thatâs sort of new stuff.
Then, mostly what all of that really boils down to is, I spent the last 10 years going around talking to big web companies like Facebook and Google and Yahoo, and Iâve also spent a bunch of time with startups. And then Iâve also gotten to go see really large enterprises ranging from giant banks to insurance companies, retail companies like Nordstrom, Wal-Mart.
So I get to just travel around and see what everybody is doing and see what theyâre worried about and try to help them get better in terms of the time it takes or the speed to deliver, or their organization or their culture. So a bunch of it is software, but a lot of it is just helping people sort of understand how better to build their organization.
Guy: Yeah, I guess thereâs always this conversation about whether DevOps and, well, continuous deployment maybe is a little bit more specific, but DevOps is really more about the tools and more about the people and it tends to be a consensus that itâs more people.
Adam: Itâs both, right? Like, if you have a great culture, itâs really easy to say that you want to have a good culture. Itâs really easy to be like, âOh, I want to empower people,â or, âWe want to streamline a process,â or whatever. It takes nothing. Itâs just words.
Usually, itâs the technology that reinforces those cultural behaviors that hold you back.
So, a good example is, âOh, I want to do continuous delivery, but we use a terrible source control system that makes it almost impossible to do effective continuous delivery. But because thatâs the source control system we use, weâll never change.â
Therefore, which oneâs true? Do you want to do continuous delivery, or do you love your bad source control system? So thereâs this reinforcing circle that hides inside there, and I think you see that all the time in security, too, that same circle and that same behavior.
Everybody says, âOh, we want to be secure.â I was working with a bank who I wonât name, and I was on an engagement for a couple weeks.One of my first questions thatâs going to help them do continuous delivery, and they wanted to, their first target was, to harden the operating system.
I asked them, âOkay, do you have the hardening spec? Do you know what you want to harden?â And they were like, âOh yeah, yeah, of course we do. Weâre a global bank.â And Iâm like, âThatâs amazing, great! I would love to see that.â And theyâre like, âOh, weâll have it for you on the day you arrive.â
I left three weeks later, and they had never found it. And what they had realized was it didnât exist. Everybody thought someone else had built that, and that it was someone elseâs job, and no one actually did. It was just this loose conglomeration of stuff that theoretically they were supposed to do, but no one actually could track or knew. And thatâs a global bank. It probably should matter.
Guy: I think sometimes itâs about the mess or the fact that tools can help surface information and hold information in a way that is accessible. And sometimes itâs just the sheer obstacle for many of these more complex topics when you talk about deep ops topics around how containers operate or how some machines are orchestrated.
Or in the world of security, when you talk about deeper security, understanding about whatâs an attack, whatâs not, and that sort of a constantly moving landscape. Just fundamentally, you have to have the tools. You cannot overcome those problems by sheer education. And at the same time,
if you have tools and people donât know how to use them, or they have no understanding of what theyâre for, then you would eventually not achieve what youâre aiming for.
Adam: Context is everything, right? Tooling is great, but itâs not enough. One of the things that we do at Chef and in the security world, is we have a thing called InSpec, which is a language for letting you describe security posture and code.
So you can say, âThis particular machine should have this particular policy. That policy means that port 25 should be open, you should be able to auth this way, you shouldnât be able to auth this way.âYou should be able to talk about packages being installed, you should be able to talk about all of those things and then relate them back up to the actual security line items and talk about their severity.
We care about this thing because of this piece of HIPAA, or we care about it because of this piece of CIS, or whatever. And those tools are great because they sort of combine the documentation of, this is what the standard is, with the check that actually is executable that says, âAnd are we meeting the standard, yes or no?â
I think whether itâs InSpec or tools like InSpec, when you think about that operational part of security and how it applies to those large enterprises, especially large enterprises, but the big web, too, more and more itâs becoming that policy is executable.
So that conversation between security and developers and operators becomes a conversation around code as opposed to a conversation around documents, and controls, which I think is really the conversation most people have now.
Some security guy wrote a control and then hereâs the list of people that say that they can validate the control. But is the control any good?
Guy: Is it actually happening?
Adam: No. I mean, itâs not, right?
Guy: Yeah.
Adam: And thatâs true everywhere. We wrote a control. Hereâs the list of 10 people that you could go interview that know how to do that control. Okay, what about the other 10 people who could also do that, that arenât on the interview list that wasnât updated on the last year? Do they always do the procedure the right way?
Do they always make that process right? And of course, the answer is no. But we just sort of let it ride because the auditor passed.
Guy: Yeah, itâs the notion of protecting yourself from audits, not from attacks.
Adam: Exactly!
Guy: It becomes sort of increasingly there. I love that notion. So with InSpec or, in general, with security, one of the key challenges is that itâs invisible. So if youâre not doing it, you really have no immediate indicator to the fact that itâs not happening.
The user experience, if you will, of not monitoring, not watching for a certain vulnerability, and the user experience of watching for it and having nothing happen, is the same thing, which is, nothing happens, right?
Adam: Yeah, which is nothing.
Guy: Which is good news. So I think anything that helps define and articulate the controls that are supposed to be happening, giving you some mechanisms to understand that the action has been taken so you know that InSpec, the locking or whatever, say, if we use a simple example, the limiting of ports being open, that has been explicitly articulated and explicitly tracked by the tools here, and you can get informed that it has happened.
We see this in Snyk a lot. We watch projects for vulnerabilities, for vulnerable dependencies, and then you have really, again, it comes back to the fact that you have the same user experience. If youâre not watching a project, or if youâre watching a project for vulnerabilities and none happened there, and we have a lot of these conversations with users today about, âHow do you want to hear about it? How do you want to know that youâre watching it?â
And today, we remain fairly simple. We just remain in this ongoing report that just sort of shows you, âHey, youâre monitoring five projectsâ or something, and they have those things.
Adam: Right, it shows that it reacts often, or whatever, and we can measure change.
Guy: But itâs great to sort of increasingly have those and have some requirement, whatever, in your Chef and InSpec, and that defines it as well, project X is being monitored for X, Y, Z, so you know itâs being enforced.
Adam: Right, and then you stick that in the pipelines.
When you think about continuous delivery and security, security and the validation of that compliance is part of the process by which software goes into production.
And itâs part of the way that software gets maintained once itâs there, and itâs part of that build process. You bake it in sort of throughout the SDLC, instead of it being a thing that happens at the end.
And thatâs one of those things thatâs obviously a good idea. So, as soon as you hear it, youâre like, âOh, of course, security should be baked into the process, all through the whole thing.â
Guy: The whole built-in versus bolt-on.
Adam: Yeah, right? Sort of, duh. But actually, doing it is actually completelyâ
Guy: A whole different ball game.
Adam: A whole other ball game. And the thing that we really came to realize, especially with InSpec, but just sort of in general, is that if you canât figure out how to manage that security posture the same way you manage the rest of what you do, itâs really difficult to then tell a software developer that itâs their responsibility to ensure that that posture is good or bad. Because, sure, they can make that they write âgood code.â You canât hear the air quotes, but m I was making little air quotes in my brain, probably.
Guy: I can attest to that.
Adam: Itâs good, but you canât really ask them to understand the posture of what itâs going to be like when itâs deployed.
Because the distance from a software developer making a decision to a software developer talking about how that software should be in production, and what itâs posture ought to be, is so vast. And their ability to influence it is so low that itâs really difficult to come back to them and be like, âOh, this was your responsibility.â Like, clearly it was on you.
And when those tools give you the ability to talk about it as code. They allow people to participate, you can code-review them. You can have security people audit the code as opposed to audit your documentation, and then have those things as a living piece of that deployment model, I think everything gets better and it gets a lot more secure.
One hard part of doing things that way is that itâs very not the way that most security regimes are set up right now. If you go talk to a security officer and you ask them, âHey, could we remain compliant to whatever the standard is, HIPAA?â If everything we did was continuously delivered, nine times out of 10, the answer is just a flat no.
And whatâs interesting is that there is, one out of 10, where that security officer is like, âI donât know, maybe. Tell me more about how that would work.â And I think if I roll my clock back three years, it was 10 out of 10 that weâre telling me no and that was crazy. And now itâs like nine of 10. And I predict in six months, itâll be six of 10. And then in two years, itâll be like talking about, âShould you be doing continuous delivery or should you be doing Agile?â
Guy: It comes back actually to the commentations sometimes or even that document or something that big bank did not have. Like, these things eventually come back to the documents and to the guidelines. So at the end of the day, you go down the compliance route and you actually have that in the compliance document that it says, well, if you are using continuous delivery, then to be HIPAA-compliant, you need to ensure that youâre doing these things as opposed to just sort of having the goal in it.
Many of these regulations have the same flaw, the same notion that says, âWell, you have to do these actions,â as opposed to, âYou have to achieve these goals.â So they give the vague goals, but then everybody prescribes to whatever recommended actions that have been prescribed, because that makes passing the audit the easiest.
Adam: Yeah, and I mean,
the relationship between the auditor and your security posture is pretty tight.
Like, the real test of your security posture, in most cases, is the auditor. Not like a pen test, or people actually trying to break you. I mean, they are, but youâre not doing it proactively.
I think when you think about those CD pipelines, the idea that theyâre applied continuously, that as applications change, that youâre reapplying the security posture to see if that application has done something that violates that posture, and that when you change the security posture, youâre re-validating the applications and youâre doing it sort of throughout the whole cycle, itâs super powerful. Itâs what people are starting to be able to do. I think you donât see it a lot yet, but itâs sort of the future.
Guy: I think thatâs interesting to understand, the potential versus whatâs happening, right? High-level continuous deployment and your whole infrastructureâs code, the fact that youâve prescribed it, built it in, allows you to get predictability. You know whatâs where, and you know that a certain test or a certain enforcement has been done to the extent of bugs. But at least, not as human error.
On the flip side, it requires security auditors to change how they behave. Itâs not just about that compliance, itâs also the fact that today, many of these security audits, you gave the example of a security auditor reviewing your code, are done as gates.
Theyâre done as a way that says âstop here,â which is the antithesis to continuous.
The whole notion of continuous is just, you roll out. Itâs okay to pause for a moment, but you canât stop. You canât accumulate a backlog, because otherwise itâll deteriorate, unless you automate that.
Adam: Yes and no, right? Thereâs continuous deployment, and then thereâs continuous delivery,and theyâre not quite the same. So yes, in continuous deployment, thereâs nowhere to pause. I think in continuous delivery, there is.
In continuous delivery, the idea is youâre shipping when you should be able to ship, any time that the business required shipping or it made sense to ship. And thatâs different than saying, âWe just ship every time you commit,â right? And so in continuous delivery, I think thereâs plenty of space to say that, âHey, this project, in order to ship, requires a security review.â And that process can still be continuous.
The question is, that should be the only gate between you and getting to production. So if they say yes, could you ship? And then the question of course is, is that true for every commit? Like, could you ship today, if today was the time? The answer to that is very rarely yes, and so thatâs where the difficulty comes in.
Guy: Yeah, and I think itâs an interesting comment. I accept the delta between continuous delivery and continuous deployment, but it seems to me that from security route, well, first of all, even from a quality perspective, one of the values of continuous, both delivery and deployment, is the fact that you spot errors when theyâre small, at any given time.
So definitely, for continuous deployment, when you ship every small code change, whatever, at some low resolution, when a problem occurs, itâs much easier to pinpoint to what was the issue, the source of the problem.
That value proposition is pretty compelling in security as well, right? If you are looking for a security flaw, being able to, only looking at it within the range of whatever the 100 lines of code to change versus the 100,000 lines of code or 100 million that existed, is very valuable. If you accumulate those changes and you need to now do the security audit, I would argue youâre not actually ready to deliver in that spot.
This podcast is brought to you by Heavybit, a program that helps developer-focused companies take their product to market. Throughout the program, founders work on developer traction, product market fit and customer development. If you like what you hear, be sure to subscribe to Heavybitâs Podcast Network on iTunes.


