mirror of
https://github.com/containers/podman.git
synced 2026-02-18 23:14:49 -05:00
inspect: preserve secret target name in env masking
Fixes #28075 Signed-off-by: Amol Yadav <amyssnipet@yahoo.com>
This commit is contained in:
@@ -386,9 +386,9 @@ func (c *Container) generateInspectContainerConfig(spec *spec.Spec) *define.Insp
|
||||
// env variables come in the style `name=value`
|
||||
envName := strings.Split(envValue, "=")[0]
|
||||
|
||||
envSecret, ok := envSecrets[envName]
|
||||
_, ok := envSecrets[envName]
|
||||
if ok {
|
||||
ctrConfig.Env[envIndex] = envSecret.Name + "=*******"
|
||||
ctrConfig.Env[envIndex] = envName + "=*******"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user