Skip to content

remove problematic special chars for bash#276

Merged
nimakaviani merged 1 commit intocnoe-io:mainfrom
nabuskey:doublequotes
Jun 4, 2024
Merged

remove problematic special chars for bash#276
nimakaviani merged 1 commit intocnoe-io:mainfrom
nabuskey:doublequotes

Conversation

@nabuskey
Copy link
Copy Markdown
Collaborator

@nabuskey nabuskey commented Jun 4, 2024

When using idpbuilder with bash, the gitea secret could contain special characters that are not user or bash friendly. Especially in bash scripts, special characters often have meaning. Removing the following characters: ", \.

Ref: https://cloud-native.slack.com/archives/C05TN9WFN5S/p1717410133645919

Signed-off-by: Manabu McCloskey <manabu.mccloskey@gmail.com>
@nabuskey nabuskey requested a review from cmoulliard June 4, 2024 16:33
Copy link
Copy Markdown
Contributor

@nimakaviani nimakaviani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nimakaviani nimakaviani merged commit c13a570 into cnoe-io:main Jun 4, 2024
@cmoulliard
Copy link
Copy Markdown
Contributor

Backstage is complaining too about the ] symbol ==>

YAMLParseError: Unexpected flow-seq-end token in YAML stream: "]" at line 82, column 31:
       password: *e=sUnx)4Eu-2]k$j~cX-]l$,8EZ"4m7tC!?+C9q

@nimakaviani
Copy link
Copy Markdown
Contributor

sorry I missed the context on this one when I merged it. Only saw the slack conversation afterwards. Should have let @cmoulliard review it first. Anyway, we will have to get the fix in for the latest issue with Backstage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants