Skip to content

Add a way to escape quotes in secret values generated by agent template #3135

Open
@wfjsw

Description

@wfjsw

Feature description

Using the following template:

{{- with secret "*" "*" "/" `{"recursive": true, "expandSecretReferences": true}` }}
{{- range . }}
{{ .Key }}="{{ .Value }}"
{{- end }}
{{- end }}

When {{ .Value }} contains double quotes, it would generate invalid combinations, for example:

"["abc"]"

It would be great if the template could handle this situation.

Why would it be useful?

It won't require user to manually escape them, creating a surprise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions