Skip to content

customSecrets adds a new line to data #2036

Description

@gtirloni

values.yaml:

artifactory:
  customSecrets:
    - name: mysecret
       key: mykey
       data: mydata

(mydata in base64 is bXlkYXRh)

When this added to stringData is templates/artifactory-unified-secret.yaml, the base64-encoded string has a new line added to it so it becomes bXlkYXRhCg==

This breaks tools that do not expect new lines in the data (e.g. Go's net/http and bearer tokens).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions