diff --git a/plan/task/decodesecret.go b/plan/task/decodesecret.go index 816661a7..c7e9906d 100644 --- a/plan/task/decodesecret.go +++ b/plan/task/decodesecret.go @@ -69,7 +69,9 @@ func (c *decodeSecretTask) Run(ctx context.Context, pctx *plancontext.Context, _ output.FillPath(path, secret.MarshalCUE()) case map[string]interface{}: for k, v := range entry { - convert(append(p, cue.ParsePath(k).Selectors()...), v) + np := append([]cue.Selector{}, p...) + np = append(np, cue.ParsePath(k).Selectors()...) + convert(np, v) } } }