Supercharge Your Pipeline leveraging AI-Augmented DevSecOps
Vidhi Saxena23:262025
Bezpieczeństwo sprawdzane przy wydaniu to zamykanie drzwi, gdy włamywacz jest już w środku
Wyobraźmy sobie aplikację zbudowaną, przetestowaną i gotową do wydania, aż końcowy przegląd bezpieczeństwa wykrywa krytyczną podatność w bibliotece open source: trzeba opóźnić wydanie albo wypuścić je ze znanym ryzykiem. Ewangelistka DevOps Vidhi Saxena z Nagarro, z ponad 17-letnim doświadczeniem we wdrażaniu DevOps, oraz Anupam Agarwal przekonują, że rozwiązanie zaczyna się znacznie wcześniej w pipeline. Gdzie dokładnie narzędzia AI mogą wychwycić to, co umyka przeglądowi w ostatniej chwili?
Plan DevSecOps wspierany przez AI dla sześciu faz SDLC oraz działające demo pipeline'u
Vidhi Saxena i jej współpracownik z Nagarro, Anupam Agarwal, przekonują, że bezpieczeństwo musi być wbudowane w każdy etap cyklu dostarczania oprogramowania, a nie sprawdzane tuż przed wydaniem, oraz że narzędzia wspierane przez AI sprawiają, że takie przesunięcie w lewo (shift left) staje się praktyczne. Przypisują środki bezpieczeństwa oparte na AI do sześciu faz SDLC i kończą nagranym demo pipeline'u GitHub Actions, który przed wdrożeniem skanuje sekrety, kod infrastruktury, jakość kodu i obrazy kontenerów.
“Kluczowy przekaz jest więc taki, aby integrować bezpieczeństwo od samego początku, zamiast traktować je jako coś drugorzędnego.”
“więc teraz utknęliście gdzieś pośrodku: możecie albo opóźnić wydanie, albo wypuścić je ze znanym ryzykiem, prawda”
What you will learn
Przypisanie środków bezpieczeństwa wspieranych przez AI do każdej z sześciu faz SDLC, od modelowania zagrożeń w planowaniu po wykrywanie zagrożeń w czasie działania w monitorowaniu.
Wyjaśnienie, dlaczego bezpieczeństwo dodane na końcu pipeline'u DevOps zmusza do wyboru między opóźnieniem wydania a wydaniem ze znanym ryzykiem.
Zbudowanie praktycznego zestawu narzędzi DevSecOps obejmującego skanowanie sekretów, kontrole infrastruktury jako kodu, jakość kodu, pokrycie testami i skanowanie kontenerów.
Konfiguracja bramek jakości tak, aby build kończył się niepowodzeniem do czasu naprawienia problemów z bezpieczeństwem.
Zaplanowanie samonaprawy i wykrywania anomalii na produkcji w celu ograniczenia ręcznych interwencji.
Details
Level
Intermediate
Format
Tech talk
Technical depth
Practitioner
For
Mid-career, Senior individual contributor, Early career
Length
23:26
Published
July 2025
Questions this talk answers
Czym różni się pipeline DevOps od pipeline'u DevSecOps?
W wielu tradycyjnych pipeline'ach DevOps kontrole bezpieczeństwa są doklejane na końcu, często tuż przed wydaniem. DevSecOps przesuwa bezpieczeństwo w lewo, dzięki czemu praktyki i narzędzia są zintegrowane z każdą fazą, od planowania po monitorowanie.
Gdzie można zastosować AI w pipeline DevSecOps?
Prelegenci umieszczają AI w modelowaniu zagrożeń i ocenie ryzyka podczas planowania, asystentów kodu w kodowaniu, SAST wzbogacony o AI i analizę składu oprogramowania w buildzie, DAST i IAST oparte na ML oraz generowanie testów w testowaniu, bramki wydań oparte na ryzyku we wdrażaniu, a wykrywanie zagrożeń w czasie działania i samonaprawę w monitorowaniu.
Jakich narzędzi użyto w pipeline demonstracyjnym?
W demo użyto TruffleHog do skanowania sekretów, Checkov do infrastruktury jako kodu, Flake8, Black, pytest i coverage do jakości kodu i testów, Trivy do obrazów kontenerów, GitHub Secrets do wartości wrażliwych oraz GitHub Actions do uruchamiania pipeline'u.
Co powinno się stać, gdy podczas buildu zostanie wykryty problem z bezpieczeństwem?
Bramki jakości, na przykład w SonarQube, powinny powodować niepowodzenie buildu i zatrzymywać pipeline do czasu naprawienia problemów.
Jak zespoły mogą obsługiwać problemy produkcyjne przy mniejszym nakładzie pracy ręcznej?
Poprzez uruchomienie wykrywania anomalii i analityki predykcyjnej na produkcji, tak aby mechanizmy samonaprawy usuwały anomalie zamiast ręcznych interwencji inżynierów, przy wsparciu analityki logów i narzędzi SIEM do proaktywnego monitorowania.
Shift left: bezpieczeństwo na każdym etapie SDLC (83 s)
Dlaczego doklejone bezpieczeństwo zawodzi (76 s)
Trivy skanuje kontener przed wdrożeniem (52 s)
so hello and welcome to this deep dive session into AI augmented DevSecOps so firstly thanks to this forum women in tech for giving us this opportunity to present our thoughts on this particular topic here and we are really glad to be talking here in this in this forum so before we deep dive into our topic let's have a quick introduction introduction of ourselves so I am I'm Vidhi Saksana and I'm part of DevOps CEO in Nagaro and I have around 16 plus years of experience in IT where my major expertise lies in helping the clients and enterprises to embrace DevOps in the right manner and also to implement and innovate in the world of DevOps.
So, that's a quick introduction about me. I would also like Anupam to introduce herself to the audience, so Anupam if you can do it. Hello everyone. So, I also work with Nagaro. I currently hold almost 14 plus years of experience, wherein I again help the clients with their cloud infrastructure, help them with their DevOps culture, and also how they can accelerate and be good when it comes to faster time to market.
I'm also enthusiastic about participating at the different forums where we can share our ideas and of course we can gain insights from each and every one. So that was a quick intro round about myself. Over to you, Vidhi. Okay, thank you Anupam. So let's have a quick look at the agenda as to what we have in the session plan today. So first we'll be seeing why is AI taking over the conversation everywhere. So wherever we go, we are seeing everyone is talking about AI. So we'll see why is that so. Then we'll have a quick look at the AI enhanced DevSecOps landscape, followed by a quick talk on the AI enabled DevSecOps blueprint with all the tools and technologies embedded into it. And then towards
the end we have a quick demo as to what we talk about in this particular session we have wrapped it up in a quick demo to show you how an AI augmented DevSecOps pipeline looks like and we have also leveraged the power of AI in that in creating that demo because we have used cursor app for it so for those who don't know cursor app is an AI powered code editor on top of built on the top of visual studio code and it has its own agentic AI capabilities so yeah we'll be talking about more about it in the second half of the session so yeah let's get started so as we can see AI is taking over the conversations everywhere so wherever we go now it's no more a buzzword in
fact many enterprises have already started investing into AI because AI is going to stay because of the benefits that it brings on through the table. So let's see why is it everywhere. So as per the market statistics, when we talk about AI and DevOps market, it is expected to grow from $3.5 billion in 2023 to $23.8 billion by 2028 as per the results of the report given by markets and markets.
Then if we talk about the aspect of the global market of AI-assisted software-driven tools, it's projected to reach around 12.5 or 12.6 billion dollars by 2026 then when we talk about how enterprises are now adopting AI into their platforms and everything so over 65 percent of enterprises have already integrated AI or ML into their DevSecOps landscape as of 2024 so yeah it's quite evident that AI is revolutionizing the industry with the endless benefits that it brings to the table and there are endless use cases also where it has already you know proven beneficial for the enterprises be it enhancing the software development with intelligent code assistance by automating infrastructure management through ai ops then spreading the cyber security using real-time threat detection and many so the use cases and the benefits are endless and that's why
ai is already make its its impact and transforming how the industry looks like now and the enterprises are also embedded ai into their tools and platforms to drive smarter decision making predictive maintenance and automated operations and it has also transformed our ways of working in order to have more agile collaborative and highly automated devops and it workflows so yeah that's how AI is setting its foot everywhere in the market. And when we talk about how AI impacts the DevOps infinity loop, so as we can see, the entire DevOps infinity loop has been transformed by AI starting from the planning phase to the last phase, which is the monitor phase. So each and every phase starting from the planning phase to the last phase, everywhere AI can be embedded
into it to reap the benefits out of it. So let's see how it can be done. So now this is how a basic DevSecOps pipeline looks like. So yeah, a DevOps pipeline is very simple, but when it comes to DevSecOps, this is how it should look like because we have highlighted the major security hacks that can be embedded into a DevOps pipeline to make it more secure.
So all the Depsicops best practices have been embedded into the phases, the six major stages of the SDLC. So starting from the planning phase, then to code phase, build, test, deploy, monitor. So the key message here is to integrate security right from the beginning rather than giving it an afterthought. The emphasis is on towards shifting left in terms of security so that we can bake security into the entire SDLC in each and every phase so that the whole DevOps landscape is much more protected and it's more reliable, stable and resilient. So this is how the DevSecOps best practices can be embedded into a DevSecOps landscape. But now how do we take a step further and make it more smart and intelligent by harnessing the power of AI? So these are the
measures which can be integrated in a DevSecOps pipeline to make it more smart and intelligent by leveraging the power of AI. So as we can see the different security has that are emphasized here are related to the shift left focus on the security in SDLC along with the use of AI assisted tools. So if we talk about the different six phases over here so in the planning phase we can leverage the power of AI part threat modeling tools then we can also do risk assessments then when we talk about the coding phase in that we can use code suggestion tools like github copilot purser etc so there are many in the market but yes these tools helps us to suggest the best practice of the coding and like to see if there are any vulnerabilities or let's
say if there are any issues with the coding guidelines or stuff which is being violated then then they can be well taken care of in the coding phase itself then we talk of when we talk about the build phase we can use AI enhanced SaaS tools which are there in the market we can also use AI enabled software composition analysis tools and we can also perform auto remediation of the different vulnerabilities that could be there in the code by using AI tools and libraries then when we come to the next phase which is the test phase so in the testing phase we can use the power of ML for doing the DAST and IST scans. So DAST scans are dynamic code analysis tests that can run on your code. And then we have interactive application security testing tool, which is IST
test that can run on your code. So we can use the tools which can run these tests on our code, which also uses the power of machine learning. Then when it comes to generating the test cases, be it the unit test cases or integration test cases ai can be leveraged in that particular area also to see that we are not missing any critical parts of the testing and all the critical parts are well covered and we are not missing any edge cases as well so it in turns provides a good quality code coverage and code quality which is again a key factor in having a stable and reliable code infraction then we can also have behavior and anomaly prediction in the pre-prod environment to see whether we are good to go live or not based on the anomaly prediction that we can
have by using ai-assisted tools then when we come to the deploy phase when we are almost ready to release the code to the environment then we can apply the power of ai for risk-based release gates we can also have change approval automations using the ai tools and then we can also it's always recommended to do the security scans using the ai tools in the market on our infrastructure as code so that there are no misconfigurations and if there's any deviation the ai tools can prompt us to take care of those misconfigurations and also enforce security best practices then uh when we come to the last phase that is the monitor phase where we are all once the code is deployed we are ready to hand it over to the operations team that time we can employ ai for
runtime uh threat detection using tools like dark trace then we can also use behavioral analysis and self-healing mechanisms so let's say if there's any issue in production then we can run anomaly detection on it and then based on the predictive data analytics so we can take care of healing get those uh anomalies healed by itself rather than uh manually intervening and doing it uh fixing the stuff in production so they're also for self-healing mechanisms ai tools are there in the market which can be leveraged and can be well integrated with your pipelines and we can also integrate ai power tools like the log analytics tools or sim tools for continuous logging and proactive monitoring of the entire system so this flow uh visually emphasizes how
ai embed security checks at every phase enabling continuous intelligent protection in the modern devops workflow so yeah this is how uh a pro like a good a good ai enhanced depths depths landscapes looks like which all with all the security and the ai enabled best practices embedded into each and every phase of the sdlc so from now here uh anupam will take over uh on takeover and she'll be explaining it a little more in details related to the technical aspect of it so over to you anubam thank you vidi hi everyone so let's get back to dev devops first so in most of the traditional devops pipelines the ones that you see on the top side of it security checks are often bolted onto the end of the development cycle so sometimes it happens like
right before the release that is happening so it's like if we call it in a layman language it's like locking your doors after a bugler has already entered into your house right so now let me give you another example so imagine you have already built and you have tested your application and it is ready to go live but when the final security review takes place you just let's say a critical vulnerability in one of your open source libraries so now you are stuck somewhere in the middle you can either delay your release or you can ship with a known risk right so this is where devsecops come into picture and now how uh when we talk about devops uh devops is all about speed collaboration
and automation like vidi mentioned right so how we are breaking these silos between our development and the operation teams how we are delivering our software at a much faster pace and in a more reliable way when it comes to DevSecOps most of us are already aware with the concept of the DevSecOps right so we are already it is something which is built on top of the DevOps and we are shifting all the security practices towards the left so we are trying to integrate security practices and tools early in the development process not as an afterthought right so what you see at the bottom is your DevSecOps pipeline so when we see a DevSecOps pipeline here going forward what i'll be showing you we will be seeing a holistic approach of how security can be embedded
in every stage like the six phases we recovered right right from the source or the planning phase to the monitoring phase how ai assisted tools can help us in the security aspect so likewise when we talk about the code phase so for the secret scanning we have used in our demo a tool named truffle hog so when we start with truffle log it scans the secrets like our api keys and our password so the best part of truffle hog is that it uses ai for its pattern recognition so whenever so it can find the secrets or if there are any hidden personal information in the code it can it can be proactive in catching those kind of leaks right so we don't have to wait till the time it shows up in the production uh when it comes to the next phase which is our ci
server phase or even when we are talking about the code another thing that we talked about was the infrastructure as a code right so basically when our infrastructure should be as secure as our code so here we are using checkovi so checkovi is a tool which is focusing majorly on the files aspect of it like we have terraform files or we have docker files which are like the blueprints of our environment right so checkovi what it does it it scans the security misconfigurations before anything is even built so even before you are trying to build up your environment it will check and it will tell you if there are any sort of misconfigurations at that particular at that level at the infrastructure level and it will give you a security design around it that these are the
misconfigurations in your environment right when we talk about the code quality or when we talk about the test and scanning we are here using flake 8 black py test and coverage because this is a python based application that we have used in this demo to deploy so when we talk about flak flake it or black we are enforcing code quality and style so we are making sure that our code is not just clean or prettier but it can also reduce the security bugs then we are also running our automated test cases using the pi test so that we can generate the coverage reports so this will make sure that our code is being tested and we are not missing any sort of blind spots there are
no kind of blind spots here. When it comes to creating the artifacts, we have used a containerized application over here. And in order to scan it, we are using Trivi. So when the application is containerized, we are scanning it using Trivi, which is also using AI to detect the vulnerabilities in the container images. So given the scenario, how common containerization is happening today, and it is very crucial part of any application deployment, we need to ensure that every layer in the container should be risk-free we we have to catch each and every error before the deployment right also when we are talking about containerization we are also looking into container hardening and also in any sort of custom security tools that can help us to know that
so for example if this is a python based application we have we can create a security dot py file wherein we can define our own custom rules based on our applications so this will not only set certain standards based on our application but we can make our project more unique we can set our own standards if we have any we can also perform security health checks we can use any custom security tools uh based on our project needs right so that is how right from the beginning we are trying to embed the security at each and every phase rather than it being an afterthought right then when we are talking about the dependency on the secret managers there are multiple tools available in the market for an example snick so we can use any third party
dependencies for these safeties so this can help us to prevent us in any sort of supply chain attacks because vulnerabilities in any sort of open libraries that we are trying to download they are not just dangerous but they can actually make worst of our code right also when we talk about managing our secret codes in this case we are using github secrets so that we are not exposing any sort of information in the code we have we are storing all the sensitive information in as a part of the github secrets also when we talk about the code qualities there are multiple tools available we can use sonar cube and then we can set different sort of quality gates there we can have different sort of quality profiles so when we talk about the code quality also
it is a requirement to move ahead right whenever we have to move ahead in our cicd pipeline we need to make sure that we our code has the best quality gates right so if any if there is any security issue the build should fail and it should stop until and unless those issues are being fixed again when we talk about the repository level security and when we talk about the web application defenses we are talking about so here we are using flask limiter we are using talisman we are using helmet for all side of security headers that are being happening so we are trying to protect the application against the web-based threats like xss or click jacking so like vidhi talked about right from the beginning we need to make sure in the planning phase
we need to use ai tools which can help us to detect all these if there are any sort of attacks happening in our application right so when we can we move on to the next slides vidhi so i'll just go through a quick demo for time we have recorded the demo and within will you please play it so again like withy mentioned the entire pipeline entire code we have tried to design with the help of the cursor so like she mentioned it is built on top of visual studio so cursor what it does it it combines the functionality of our ide also featured id as well as it gives us an intelligent co-assistance so once we have submitted our code on the left side you see we have
a python based application so we have tried to deploy a sample e-commerce application and once our code is checked in it it will trigger our pipeline we have created the pipeline using the github actions and once the github github actions pipeline is triggered we can see the different stages of all the tools that we have talked about in our recent slide this is our docker repository wherein our images are getting pushed so if you see the last image if you will see it will get pushed almost a minute ago and when we see this different stages you can see like security scanning code quality build and scan container and then we are deploying it right so currently if you see the application uh would not be accessible right once we deploy it our
application would be accessible so when it comes to security scanning you can see we are using truffle log here we are using check over for our infrastructure security and that's how all the reports are also getting generated so in future if you want to address these issues or you want to share it with your uh security teams you can probably download these reports and share it with them to for them to access these vulnerabilities and see what is the severities of these vulnerabilities again we see that it is trying to install all the dependencies we are using coverage we are uploading the reports and then comes our scanning part where we are trying to build the docker image so we are trying to log into our docker registry we are also building our docker images
so once our docker images are built we are again running trivi as a vulnerability scanner to see if there are any vulnerabilities and here we can classify as high critical what kind of vulnerabilities we would like to highlight so in this it shows that there is one high vulnerability and zero critical vulnerabilities here so again this can be shared across to work upon and then finally once our docker images has been created we are trying to deploy that image on the staging which is our local system and here we will see that our new docker image has been uploaded which shows a minute ago so it was freshly deployed and whenever a new image is being created it gets pushed to our docker hub and once it is being pushed our application will be
running so once we go back to the application i'll be able to show you that so at the bottom of the deployment we will be able to see the link and the port on which our application has been deployed so it has been deployed currently on the 5000 port so in our local host if i run 5000 now the application is up and we are able to see a basic e-commerce application which has connectivity with the database at the back end we are using sqlite in the database but i haven't worked on too many operations over here because the time limit was less and of course when we go to the main page of the github actions we can get the link where our application has been deployed from there there itself so if we
see at the bottom there is a staging app link if we click here we are redirected to the page where our application has been deployed so this was uh pretty much from our end and these were the different stages i have tried to keep the stages minimal but the aspect was security so we have tried to incorporated security at each and every phase over here so thank you for listening out to us over to you vidi yeah so yeah uh that was all uh in the discussion like in the talk today and again we are thankful to all of you for listening to us and we'd be happy to answer all your queries you can post it in the chat group and we'll be happy to answer them and here we have shared our
contact details as well if offline you want to get connected to us we are just a ping away on LinkedIn. So yeah, that's it for the talk today. And yeah, I hope you all liked it and you got your key takeaways from our talk. Thank you.
Transcribed automatically; names checked against the speaker record. Select a time to jump there.
Article based on this talk
Gdzie AI pasuje do pipeline'u DevSecOps, faza po fazie
Vidhi Saxena i Anupam Agarwal z Nagarro pokazują, jak narzędzia wspierane przez AI pozwalają zespołom wbudować bezpieczeństwo w każdy etap SDLC zamiast sprawdzać je przy wydaniu.
W skrócie
Bezpieczeństwo sprawdzane dopiero na końcu pipeline'u dostarczania pojawia się zbyt późno, by było przydatne. Vidhi Saxena, ewangelistka DevOps w Nagarro, i jej współpracownik Anupam Agarwal opowiadają się za przesunięciem bezpieczeństwa w lewo, do wszystkich sześciu faz cyklu życia oprogramowania, i pokazują, jak narzędzia wspierane przez AI czynią to praktycznym. Na zakończenie prezentują nagrane demo pipeline'u GitHub Actions, który skanuje sekrety, kod infrastruktury, jakość kodu i obrazy kontenerów, zanim cokolwiek zostanie wdrożone.
Najważniejsze wnioski
Dlaczego DevSecOps wzmocniony przez AI należy do najbardziej poszukiwanych podejść w branży.
Jak wnieść nowy poziom inteligencji i automatyzacji do procesu DevOps.
Jak wnioski oparte na AI umożliwiają inteligentniejsze zarządzanie zasobami i ograniczenie interwencji człowieka.
Krótkie demo, które pomaga odbiorcom odnieść temat do praktyki.
Dlaczego AI pojawia się w każdej rozmowie o DevOps
Saxena zaczyna od przedstawienia AI jako czegoś, w co przedsiębiorstwa już inwestują, a nie modnego hasła. Jak przytoczyła prelegentka za raportem MarketsandMarkets, rynek AI w DevOps ma wzrosnąć z 3,5 mld USD w 2023 roku do 23,8 mld USD do 2028 roku; dodaje też, że według stanu na 2024 rok ponad 65 procent przedsiębiorstw zintegrowało AI lub ML ze swoim środowiskiem DevSecOps. Jej przypadki użycia obejmują zarówno inteligentne wsparcie kodowania, jak i AIOps do zarządzania infrastrukturą oraz wykrywanie zagrożeń w czasie rzeczywistym.
Następnie umieszcza AI w całej nieskończonej pętli DevOps. Jak mówi: „Więc w każdej fazie, począwszy od planowania aż po ostatnią fazę, wszędzie można osadzić AI” (4:12).
Przesunięcie w lewo: bezpieczeństwo we wszystkich sześciu etapach SDLC
Trzonem części Saxeny jest plan DevSecOps obejmujący planowanie, kodowanie, build, testowanie, wdrażanie i monitorowanie. Zasada jest prosta: „Kluczowy przekaz jest więc taki, aby integrować bezpieczeństwo od samego początku, zamiast traktować je jako coś drugorzędnego.” (5:38)
Następnie nakłada AI na ten plan, faza po fazie:
Planowanie: modelowanie zagrożeń i oceny ryzyka wspierane przez AI.
Kodowanie: asystenci tacy jak GitHub Copilot i Cursor, którzy wskazują podatności i naruszenia wytycznych kodowania już podczas pisania kodu.
Build: SAST wzbogacony o AI, analiza składu oprogramowania wspierana przez AI i automatyczne usuwanie podatności.
Testowanie: uczenie maszynowe w skanach DAST i IAST, generowane przez AI testy jednostkowe i integracyjne pokrywające przypadki brzegowe oraz przewidywanie anomalii w środowisku przedprodukcyjnym.
Wdrażanie: bramki wydań oparte na ryzyku, automatyczne zatwierdzanie zmian i skanowanie infrastruktury jako kodu przez AI w celu wychwycenia błędnych konfiguracji.
Monitorowanie: wykrywanie zagrożeń w czasie działania za pomocą narzędzi takich jak Darktrace, analiza behawioralna, mechanizmy samonaprawy oraz analityka logów lub narzędzia SIEM do proaktywnego monitorowania.
To właśnie samonaprawa ogranicza interwencję człowieka: wykrywanie anomalii i analityka predykcyjna na produkcji pozwalają usuwać problemy automatycznie, zamiast angażować inżynierów do ręcznych działań.
Dlaczego doklejone bezpieczeństwo zawodzi
Agarwal przejmuje głos, by wyjaśnić koszt tradycyjnego podejścia, w którym kontrole bezpieczeństwa znajdują się na końcu cyklu, czasem tuż przed wydaniem. Jej analogia zapada w pamięć: „to jak zamykanie drzwi, gdy włamywacz już wszedł do domu, prawda” (11:27).
Ukonkretnia to scenariuszem, który rozpozna każdy zespół dostarczający oprogramowanie. Aplikacja jest zbudowana, przetestowana i gotowa do uruchomienia, a końcowy przegląd wykrywa krytyczną podatność w bibliotece open source. „więc teraz utknęliście gdzieś pośrodku: możecie albo opóźnić wydanie, albo wypuścić je ze znanym ryzykiem, prawda” (11:27). Jak wyjaśnia, DevSecOps zachowuje szybkość, współpracę i automatyzację DevOps, przenosząc jednocześnie praktyki i narzędzia bezpieczeństwa na wcześniejsze etapy procesu.
Zestaw narzędzi bezpiecznego pipeline'u
Agarwal omawia konkretne narzędzia użyte w demo. TruffleHog skanuje w poszukiwaniu sekretów, takich jak klucze API i hasła; zauważa, że wykorzystuje AI do rozpoznawania wzorców, dzięki czemu wycieki są wychwytywane przed produkcją. Checkov skanuje pliki Terraform i Docker pod kątem błędnych konfiguracji, zanim powstanie jakiekolwiek środowisko, ponieważ „nasza infrastruktura powinna być tak bezpieczna jak nasz kod” (13:39).
W demonstracyjnej aplikacji Python Flake8 i Black egzekwują jakość i styl kodu, a pytest i coverage generują raporty, aby nie pozostały żadne martwe punkty. Kontenery są skanowane za pomocą Trivy, a zespoły mogą dodać własny plik bezpieczeństwa z regułami i kontrolami stanu. Skanowanie zależności narzędziami takimi jak Snyk pomaga zapobiegać atakom na łańcuch dostaw, GitHub Secrets utrzymuje wartości wrażliwe poza kodem, a Flask-Limiter, Talisman i Helmet dodają nagłówki bezpieczeństwa chroniące przed zagrożeniami takimi jak cross-site scripting i clickjacking.
Całość spinają bramki jakości. Jak ujmuje to Agarwal: „więc jeśli jakiś, jeśli jest jakikolwiek problem z bezpieczeństwem, build powinien zakończyć się niepowodzeniem i zatrzymać się, dopóki te problemy nie zostaną naprawione” (17:25). Jako jeden ze sposobów egzekwowania tego wskazuje bramki jakości i profile SonarQube.
Demo: pipeline GitHub Actions w działaniu
Nagrane demo pokazuje przykładową aplikację e-commerce, napisaną z pomocą edytora kodu AI Cursor i wdrażaną przez GitHub Actions. Etapy obejmują skanowanie bezpieczeństwa, jakość kodu, budowanie i skanowanie kontenera oraz wdrożenie do lokalnego środowiska stagingowego. Raporty z TruffleHog i Checkov można pobrać i udostępnić zespołom bezpieczeństwa, a Trivy klasyfikuje wyniki według istotności; w tym przebiegu wykazał jedną podatność wysoką i zero krytycznych. Agarwal wyjaśnia swój zamysł: „starałam się ograniczyć etapy do minimum, ale chodziło o bezpieczeństwo, więc staraliśmy się uwzględnić bezpieczeństwo w każdej fazie tutaj” (22:21).
Obejrzyj wystąpienie
Supercharge Your Pipeline leveraging AI-Augmented DevSecOps, Vidhi Saxena (z Anupamem Agarwalem), 23 minuty: https://www.womentech.net/video/supercharge-your-pipeline-leveraging-ai-augmented-devsecops
O prelegentce
Vidhi Saxena jest ewangelistką DevOps w Nagarro z ponad 17-letnim doświadczeniem w innowacjach, adopcji i wdrażaniu DevOps. Prezentowała wspólnie z Anupamem Agarwalem, który ma ponad 14 lat doświadczenia w wielu technologiach chmurowych i zestawach narzędzi DevOps oraz odpowiada za plany adopcji chmury, architekturę i nadzór w wielu chmurach.
Pytania, na które odpowiada to wystąpienie
Czym różni się pipeline DevOps od pipeline'u DevSecOps?
Gdzie można zastosować AI w pipeline DevSecOps?
Jakich narzędzi użyto w pipeline demonstracyjnym?
Co powinno się stać, gdy podczas buildu zostanie wykryty problem z bezpieczeństwem?
Jak zespoły mogą obsługiwać problemy produkcyjne przy mniejszym nakładzie pracy ręcznej?
Wersja robocza przygotowana przez AI na podstawie transkrypcji wystąpienia. Oczekuje na redakcję.