Merge pull request #29106 from overleaf/bg-fix-capdrop-in-docker-runner

fix capdrop in docker runner

GitOrigin-RevId: 1e8c81723a9e152ec85a3a2776965891fbe07606
This commit is contained in:
Eric Mc Sween
2025-10-15 08:41:09 -04:00
committed by Copybot
parent 8a8a0fbf3c
commit 3ddf88a031
2 changed files with 2 additions and 2 deletions

View File

@@ -254,7 +254,7 @@ const DockerRunner = {
Hard: timeoutInSeconds + 10,
},
],
CapDrop: 'ALL',
CapDrop: ['ALL'],
SecurityOpt: ['no-new-privileges'],
},
}

View File

@@ -487,7 +487,7 @@ describe('DockerRunner', function () {
return expect(options.HostConfig).to.deep.include({
Binds: ['/some/host/dir/compiles/directory:/compile:rw'],
LogConfig: { Type: 'none', Config: {} },
CapDrop: 'ALL',
CapDrop: ['ALL'],
SecurityOpt: ['no-new-privileges'],
newProperty: 'new-property',
})