SPEAKER_00

What's going on, builders? Welcome to Software Sundays. I'm your host, KD. And in this series, we have high-level conversations about technology and the impact that it has in our community. I want you to be able to walk away with the skills that you need in order to grow your income, become an owner, and shape what happens next in this world. If this is your first time tuning in, you're in the right place. And if you've been rocking with us for a minute, it is great to have you back. Welcome back. Let's jump into it. So, first up for the news for this week, I just want to highlight that AI companies are starting to get insurance, liability insurance for their AI agents. And so this story really stemmed from Crosby, an AI technology company inside of New York that focuses mostly on providing services for law firms. And they're looking to automate more of the law work and that legal work. But in order for them to feel more comfortable delegating that work to AI, they had to get insurance that was specifically designed to cover any errors or accidents that might occur from these systems being in production. And so this is part of the infrastructure that needs to happen, that needs to be in place for technology, AI, and the related software solutions to actually start proliferating and being more common inside of the business businesses and the industries that we see. Right now, if you look at AI, it's still early. We're still seeing the early potential of what an agent can do, which tasks and roles it can really help augment. But right now, if you were inside of some regulated regulated industry and you try to have AI do some task that traditionally required a human to do, then you're potentially opening yourself up to risk because any issues that occur because of that AI system now doing that work may not be covered by some of the existing insurance policies or coverages and just terms that may already exist for your company. If a human, if a person on your team does something wrong, if a person like your assistants, if you're a law firm, if they forget to send some contract on time, or they add a typo into a contract, that type of mistake can be covered by general corporate commercial liability protection. But if your AI agent does it, there are a lot of insurance companies that are explicitly excluding AI agents and these types of software from their policy coverage. So you could potentially be uncovered and on your own in the event of some type of loss, if that were to and so this I think there was like five million dollars worth of coverage that this company had purchased for their AI agents, and it took them about six months to actually secure that policy, while they also had to find a very new insurance company that would even write the policy out to cover them. And I just thought that the most interesting part about this is the fact that when we're thinking about AI and we're thinking about technology as a builder, most of the time we're thinking about the technology and the implementation for that technology. Not too often do we think about what other components have to go in place for the business to operate with this technology. Just because you make some AI agent that works doesn't mean we have an AI agent that we can put in front of a real customer or that we can put in front or between real customer data. You might still have requirements you have to meet, whether it's HIPAA compliance or PCI, DSS compliance, or creating some type of vulnerability management operation inside of your team. And those requirements are more legal, those requirements are more based on regulatory, regulatory rules that just apply to your company based on the industry that you're in and the type of data that you collect. Those things also matter when we're building software, those concepts that are important for managing risk, that are important for securing systems, like these things matter almost as much as the actual code that we're writing. And it makes me think that if we're looking at companies that are going to start creating AI agent insurance policies and providing that coverage, they're going to potentially start looking for specific operational controls inside of your company. They want to see that your team has experience evaluating the output of agents. They want to see that your team has the appropriate access control policies in place so that your agent is not providing access to some data that belongs to one customer to another customer. They want to see that any type of either prompt injection or even simple SQL injections are not getting through the prompt or being executed executed by that AI agent that could potentially result in a data breach. And when they are making their decision on whether or not your company is worth covering, whether the risk is acceptable for them to take on, they're going to ask that someone on the team has answers to these questions. It doesn't have to be every engineer, but someone on the team should be able to walk and auditor through the systems that you have in place, the controls that you have in place to meet whatever framework or requirements that you need to meet. And that's not always gonna just be like an insurance agent, right? Like they probably won't send an adjuster to your company to check this until after there's a claim, right? But even beforehand, having that expertise on your team, having someone who understands cybersecurity and the domains that are highlighted from the ISC squared organization or even other organizations like the NIST AI risk management framework. Like having someone who is familiar with these concepts can help your team to make better decisions when they're building something, whether it's an internal application or some customer public-facing application. It just helps to reduce the risk as much as possible. And of course, it's not 100% possible to reduce all risk, right? That's not the point. The point is that someone is available and someone has the expertise to reduce risk, mitigate it, manage it, and potentially transfer it if the situation calls for it, depending on what you are actually providing. And so the more we start to see AI agents make autonomous decisions, the more we start to see them do things with real people's data, with real outcomes in the world, the more we're going to have to consider how we're building these systems and how we're protecting these systems and understand that design. Because there's a few things that need to go in before you can actually look at your system your system that uses AI and say, hey, this is safe to put in front of my customers or to let live inside of my environment. So if you have any questions about what those actual best practices may be to achieve some level of confidence inside of your AI agents, definitely join the BLI university community. Every week we are having discussions about AI security and how you can use these opportunities to create more wealth for you and your family. So the link will be inside of the comments or in the description and definitely check us out and we look forward to seeing you very soon. We're gonna jump into our questions for this week. Uh, first question is how should software engineers design observability and audit trails for AI agents? So when we're thinking about AI, I think it's very important to step back and just realize we're talking about software. We're talking about whether or not you have the appropriate systems in place to observe and monitor and audit what your software is doing. This modern type of software is AI, it's generative AI for the most part, and it's other types of AI, we can get into that later. But that software needs to meet certain requirements that were pretty common with any type of application that you would deploy. So having a central logging tool, whether that's Datadog, whether that's Dynatrace, whether that's some custom deployment of Grafana, Prometheus, or some other architecture that you may decide. You have to have some way to collect and organize all of your logs so that as your applications are generating this data, as events are happening, whether it's a user accessing your data or a user doing something, whatever it may be, some batch system starting and transferring some data between different systems. You need to have some type of log, some type of way to understand that these things happened without having to SSH or connect to multiple different systems to get access to that data. And another value to having that centralized log platform is that you can build resiliency inside of the logging platform without having to rely on the logs to be stored resiliently at the application level. So you can spin up pods, you can spin up containers that are ephemeral, that they're going to shut down, they're not designed to be long-living, but you have the logs that exist somewhere else that you can always go back to in case there was some issue, whether it's three days from now, three months from now, or whatever it may be, you have access to those logs so you can investigate later on. And then beyond just simple logging and monitoring, knowing that, hey, this thing happened, this event happened, and being able to say, all right, if this event happens, this is a problem. Beyond that, you want to have observability. And observability is once you have the logging in place and then you have the monitoring and the alerts, is that now you have a way to trace requests and trace the relationship between different systems inside of your architecture and in your environment. You want to know that uh component A had a problem, and then that's why there are a bunch of alerts from component B showing up today, or that's why component B is not operating the way we would expect it to operate, whether there's a delay or it's actually erroring out, whatever it may be. You want to have that type of observability inside of your system so that you're not just coming up afterwards and saying, Oh, you know, what happened? You want to have a more proactive approach to maintaining that system and knowing, hey, I'm seeing that these requests here are slowing down. And I'm also seeing that that is in turn causing this next system to have some increased latency. And then instead of waiting for one of them to crash or fail, you can actually either automate this or manually go in and add more resources, scale that application, that system so that maybe you can give yourself more time to figure out a long-term solution. And you can do that type of observability, logging, like that. You have different alternatives and options available for you to do that. Um, I would definitely look into figuring out a pattern that you want to use across your applications, right? Whatever the platform is that you end up going with for your logging, for your monitoring, for your learning, you want to make sure that that is the source of truth for how you want to structure data and how to look at your event data and that all of your different applications, whether it's with a Python application or a Golang application or some other language that your developers use, you want to make sure you have a clear and defined structure for what those logs should include, whether it's some type of description of the service, whether it's the log level or the types of messages you need, right? You don't need every message, everything that the application does to show up in your centralized log repository because you are paying for those logs, right? So you don't want to just log any type of information. You want to make sure you have an idea about what information is important for the use case that that application or that system is supporting. So think about that, think about that and design those preferences and those standards with your team. What should you do when a software dependency reaches end of life? Alright, so end of life is actually the final stage of the product that you may use, whether it's a piece of hardware or some software package, no longer being supported by the original developers. And this pretty much means that the original manufacturer or developers deciding that they're no longer going to provide support. So that means patches, that means you know they might not, they'll probably not sell it anymore. There's n you're on your own at that point once it reaches end of life. But there are stages before end of life that you should start to make some plans for how you're going to be say responding, or even just how you're going to make sure that that's not a crippling event when it happens. So most enterprise serving platforms, whether it's Red Hat, Google Cloud, AWS, whatever platform you're using, and even some of the languages, the common languages like uh Kubernetes, if they're going to deprecate some feature or some version of a component, some piece of hardware, they're going to make announcements before they actually finalize that deprecation. They're going to say, hey, we're going to be shutting this down, or we're going to stop supporting this, or no more changes are going to be made in this version or this type. So you have to move to the next version in order to continue receiving support from our engineers. When that happens, you need to connect with your team, understand the timeline that they're giving, and put some plans in place. If you know that the server operating system is no longer going to be in support, then you need to figure out how to start one getting some of those servers or getting new servers that can actually be set up to run the newest version, or maybe not the newest, but the next version that is still within support. And then you start taking your time to migrate your applications to that new version. And then that'll give you a controlled uh migration. You don't have to just shut everything down and move to the new one because that could cause some issues, right? If you have an application that's really heavily tied to the operating system version and the way that that works, then you don't want to just do some type of complete shift like that. So it's okay to migrate what workloads one at a time until you see some consistency, so you see some stability inside of that new infrastructure that you're gonna be deploying on. So, but you have to have that plan in place to know hey, this is the timeline that we have, and this is what we need to do to meet our timeline so that we're no longer running an unsupported version of this package or this technology. And then you sh I think a best practice for it is to continuously do that, right? There are some packages that get a lot of updates. Now, you don't have to take every update, but you have to at least every few months when you have enough capacity and try to make some capacity, take some time to keep your applications and your versions up to date with whatever the latest may be, because that'll help prevent any last-minute hey, we have to move all of this, or else we're going to be paying a ton of money and extended support. And that's one of the main things too, right? End of life is the last like when they're no longer offering any type of support. Before that, when there's end of support, that's another uh period before end of life. And end of support is when they no longer offer standard support. At that point, you're paying double, if not triple, to continue to use a version of a software or a product that they no longer want to use. Not only is it is this not the best and greatest of the versions that in the products that you can be using, you're paying extra to be slower, to be less efficient. And so that's not where we want to be, right? We want to kind of move as quickly as possible to the best and greatest. So just keep that in mind when we're thinking about end of life and end support. It is uh expensive when we get there, but it's more expensive when you don't take the necessary precautions or uh preparations that you need to get there efficiently. What is the engineering tip of the week? So the engineering tip of the week is to not just deploy a system because it looks like it works. You want to make sure you understand how it works and how it fails. And most importantly, how it fails because once you deploy it into production, once it starts to deal with real-world edge cases, you need to know exactly what systems could break if some exception is found. Does it fail open or does it fail closed, right? And what is your preference for that particular industry or that particular workload? Do you want when it fails to allow all requests to come in maybe unauthenticated or unscanned, whatever it may be, unlogged, right? Or do you want no availability but you have full security? These are the things that are important to consider when we're talking about deploying a system in it the way it fails. If you're deploying something that is designed for a specific amount of data, figure out what happens when that data limit is surpassed. Does it slow the system down, like the server down, or does it shut it down? Does it crash things? Does it start storing excessive data that you would rather not store? And then now you have your actual storage being consumed faster than you expected. Right? Having that awareness and that understanding of what happens when something breaks is going to make you more resilient and agile if that potentially happens in the future. And there's going to be a time where it does happen. The things are gonna break, the system is going to get an input that was unexpected. You have to be able to roll with the punches, your system, your software has to be able to keep going and not just blow up for everyone now that this particular uh example is not what it expected. And sometimes it's just being able to recover quickly, right? A break can happen, but does your system stay broken for a long time just because one feels Was missing, or does it recover reliably? Does it recover in a way that it doesn't have long-term consequences? That's our tip for the week. Be very mindful about deploying systems just because it looks good on the outside and the surface. You want to make sure that it's doing everything you need it to do, whether the time is right or not. Where should secrets and non-secrets be stored for your application? Alright, so you could go a lot of ways with storing secrets and even non-secrets. We recommend storing them the same way consistently, right? Because it's possible that if you try to store non-secrets and secrets in different ways, that becomes more complex. It becomes more difficult for your team to understand and manage. So having one defined process for the configuration variables for that application, I think just becomes a better practice over time. To highlight, and I think even to add, the non-secret configuration value variables for an application are potentially just as important as the secret variables. And this could be the IP address that your server is trusted to connect to. Let's say it's pulling some data from S3, and I believe S3 has a list of IP addresses that S3 would be hosted on, right? So if your application tries to access an IP address that doesn't exist inside of one of those IP ranges that are trusted by S3, then you shouldn't even allow that connection to go through. And so that may not be a secret because that's public information and it's very clear, or there's ways to find out that your application uses S3 in the background. That's not the problem. But if someone were to change or remove an IP address from that list, it could actually have availability issues for your production application. And that's just as bad potentially as a leaked secret. Because a leaked secret like an API key could potentially result in increased cost if someone spoofs your API key and starts making requests as if they were you to, you know, let's say we're talking about tokens with open API, open AI or something like that. But if they don't spoof your API key and just delete it, then you're not able to serve your customers. And that could potentially result in a loss of revenue as well. So I honestly feel like both secrets and non-secrets that could potentially affect the way the application works are both worth protecting and managing like secrets. So not storing them inside of the code because if you store a development version of some configuration in the code and somehow, for some reason it gets pulled in production, then now you have production data potentially being acted upon with development configurations, which could be bad. So I recommend you don't do that. Don't create like environment files for particular environments and use that. Environment variables are the go-to for most teams because they are, I can say they're more tied to the environment itself, right? You can add environment variables to the container, to the pod, specifically the container, the VM that it's running on, like those are a little bit easier to manage from that perspective. You need to have access control for who can update an environment variable or the variable data that those variables kind of pull when they're ingest injecting them into the environment, have a way to mind and manage who's making those changes and you know when, because that could cause again availability issues. say just like with any other secret like if it's a credential you want to rotate that as frequently as you can uh Some requirements may be 30 days, some may be every six months. Have some type of standard rotation schedule. So, one, if a leaked secret does get found, or if a secret is leaked, there's a way to get to the next secret, and you have a defined process for that. But you can potentially identify issues and leaked secrets a little faster if you're rotating those keys, especially if you rotate all of your applications to the new key and see that the old key is still being used, that can offer a hint that some type of access control has been broken or circumvented. So it's very helpful for you to do that for the applications that you're building. And could AI liability insurance affect how software engineers build applications? I think that all changes that affect the risk for a company can impact the way software engineers design software. And we could go back to just some of the standard regulatory compliance requirements. Let's look at GDPR and the privacy laws out of California in the US. There are requirements that you have for how data is managed by your team. If you don't meet those requirements, you can get heavily fined, you can be barred from certain regions, and there are a bunch of other financial consequences if you are not meeting your requirements. And because of those rules, software has and software engineering has changed already, right? You are not supposed to allow unauthorized access to production data. You might give a developer read-only access to production, you might give them no access to production unless there's an actual problem going on, right? And that makes sense because you have to maintain and comply with the privacy laws. So when we're talking about AI agents and the risk that they present, they could potentially access data and share data to users, they can potentially take action on behalf of users, whether that's sending an email, that could be purchasing some product or service, and there and there are different things that they can do. So if you have to manage that extra risk, then you're going to need to think about designing your systems differently. You're going to need to think about evaluations earlier and having sufficient tests. Now, I'm not saying 100% test coverage is required or even helpful for a system. But that may be something that you have to consider with these not 100%, but test coverage and having a sufficient amount of test coverage, having that for your application and your systems. Because if you don't, you don't know how this thing could break. You don't know what it could potentially try to do and what guardrails you'll need to put in place in order to stop it from making it an unauthorized transaction. If you don't evaluate it, you don't know what prompts could potentially extract data that you don't want it to share. And that can change how you're isolating your applications and isolating them during deployment, right? If you're creating an application that needs to access some level of data, you might not want it to have and run in the same environment as a different application or different component that accesses different data. Because if it can access both, it might start providing answers as if it has access to both. And so that changes the way you're isolating an application in its environment. You might choose to use a separate VM versus a separate container if it's a really regulated workload. You might choose to not or allow certain types of networks or networking requests in different networks because and based on the risk that is presented by those systems. So I definitely think it is going to change the way engineers build software, even if we're thinking about beyond just applications that are built with AI or built that use AI. Let's think about the applications that are built using AI, right? If you're using a cursor or some other agent, AI agent tool, coding tool to help build software. If you're building that software inside of a bank, it doesn't matter that the agent wrote the code. That company, that bank is still liable for every financial mistake that happens based off of that software. And so that still matters. And that will change how you again, how you think about bringing software to production. Well, at least it should. It should make us all a little bit more uh, I don't want to say more careful, but at least consider what could potentially go wrong there. And so that's all we have for our QA for this week. If you have any more questions about any of the topics that I covered on that, uh definitely drop them in the comments. Uh we're happy to shed some more light to clarify anything that you may have some additional questions on or still not understand. So definitely drop those in. We're looking forward to them. And quick mindset tip before we get out of here. I just want to share and highlight that it is okay to learn at your own pace. I know there is so much knowledge and information in the world that sometimes I feel like you have to know everything, you have to understand how to do these and have these different skills. And honestly, that's just not realistic. I don't want to limit what anyone can learn. You can learn as much as you want to and can learn, but I've had it heard um an analogy, right, with knowledge and a beach. The amount of knowledge that we know, like the entire amount of knowledge that humans have, is the size of a grain of sand compared to the overall knowledge that exists inside of the universe. That is like uh an entire beach or an entire coast of beach, right? So trying to learn everything is not the point. Trying to learn everything too quickly or anything too quickly is not the point. I would suggest that you go and learn the thing that interests you, learn the thing that is valuable, and spend some time there. Spend some time going as deep as you can into that topic for as long as you can, and that could be you know practicing with it and practicing as in solving problems with it, right? Not just reading about it, actually going and applying what you're reading and what you're learning about. Do those exercises, go learn that way and take your time with it. Really digest the learning and try not to overwhelm yourself with the sheer amount of knowledge that exists and think you have to consume all of that at some point. You don't. It is okay to be a master of the thing that you mastered. It is okay to not know everything, right? So learn at your own place, learn and just just learn. That's the main point. As long as you're learning something and growing, it is fine. Yeah, there's no rush for you at all. And that's all we had. No announcements for this week. We definitely get into the holiday season, end of the year. But um, everybody just be safe, be great, enjoy your week, do your thing, keep building, keep enjoying, and keep learning. I will see y'all in the next one. Peace out.