Allow admins to specify priviledged plugins by name **and tag** (#4075)

previous the tags where ignored, now we respect them if set
This commit is contained in:
6543
2024-09-01 21:27:12 +02:00
committed by GitHub
parent 3c8204a0e0
commit 5b208d2c01
3 changed files with 4 additions and 2 deletions

View File

@@ -138,7 +138,7 @@ func (c *Compiler) createProcess(container *yaml_types.Container, stepType backe
environment[requested] = secretValue
}
if utils.MatchImage(container.Image, c.escalated...) && container.IsPlugin() {
if utils.MatchImageDynamic(container.Image, c.escalated...) && container.IsPlugin() {
privileged = true
}