<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Aptos;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Aptos",sans-serif;
        mso-ligatures:standardcontextual;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Aptos",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:11.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#212121;mso-ligatures:none">We’re storing Kea configurations in GitLab, and would like to use CI/CD to validate them before pushing out to our servers. I can run “kea-dhcp4 -T <file>” in a docker container on my desktop
 fine, but get an “Operation Not Permitted” error when doing the same through GitLab. It appears that GitLab CI/CD runners have additional restrictions in place, including dropping the NET_RAW capability. I can reproduce the error by running docker with “--cap-drop
 NET_RAW”.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#212121;mso-ligatures:none"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#212121;mso-ligatures:none">This all makes sense, CI/CD tasks shouldn’t be opening raw sockets. Except that we get the same error even after configuring "dhcp-socket-type": "udp". I even removed all the interfaces from
 the configuration ("interfaces": []) as an extra step.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#212121;mso-ligatures:none"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#212121;mso-ligatures:none">It seems that kea is trying to open a raw socket no matter what. Any reason why? Any other tricks to prevent this error when testing the configuration?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#212121;mso-ligatures:none"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#212121;mso-ligatures:none">Thanks!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#212121;mso-ligatures:none"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#212121;mso-ligatures:none">Norman<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#212121;mso-ligatures:none"> <o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>