Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue when username/password contain spaces #106

Merged
merged 1 commit into from
Nov 6, 2018

Conversation

ifireball
Copy link
Contributor

Fix issue #105

Signed-off-by: Barak Korren bkorren@redhat.com

Fix issue CentOS-PaaS-SIG#105

Signed-off-by: Barak Korren <bkorren@redhat.com>
@adl-bot
Copy link

adl-bot commented Nov 1, 2018

Can one of the admins verify this patch?

@arilivigni
Copy link
Member

[test]

Copy link
Member

@arilivigni arilivigni left a comment

Choose a reason for hiding this comment

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

LGTM

@dirgim
Copy link
Collaborator

dirgim commented Nov 5, 2018

This looks good to me, but when I tried applying the same logic to add_scc.yml#L6, it failed. I'll have to test it some more.

Copy link
Collaborator

@dirgim dirgim left a comment

Choose a reason for hiding this comment

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

LGTM

@ifireball
Copy link
Contributor Author

ifireball commented Nov 5, 2018

Who has merge rights?

@dirgim strange it does not work in the line you mentioned - can I see you patch and the failed test?

command: "{{ oc_bin }} login {{ cluster_ip|quote }} --username={{ username|quote }} --password={{ password|quote }} --insecure-skip-tls-verify=true"
Copy link
Member

Choose a reason for hiding this comment

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

Why can't we leave this as a shell?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

safer this way - less chance of injection, also I suspect |quote does not really work well with shell.

Copy link
Member

Choose a reason for hiding this comment

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

👍

@dirgim
Copy link
Collaborator

dirgim commented Nov 6, 2018

@ifireball It's fine, I got it working. I'm good to merge this.

@dirgim dirgim merged commit 5698af7 into CentOS-PaaS-SIG:master Nov 6, 2018
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.

None yet

4 participants