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

Escape password for tempest conf #863

Closed

Conversation

mrkisaolamb
Copy link
Contributor

In openstack-k8s-operators/tcib@9258ba0 eval was introduced and password for cirros start
returning an error

In openstack-k8s-operators/tcib@9258ba0
eval was introduced and password for cirros start
returning an error
@openshift-ci openshift-ci bot requested review from lewisdenny and stuggi September 18, 2024 12:40
Copy link
Contributor

openshift-ci bot commented Sep 18, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mrkisaolamb

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@SeanMooney
Copy link
Contributor

they do know that eval is generally considered a security risk and that probably should be reverted right...

@@ -112,9 +112,9 @@
service_available.swift false
service_available.cinder false
validation.image_ssh_user cirros
validation.image_ssh_password cubswin:)
validation.image_ssh_password cubswin:\)
Copy link
Contributor

Choose a reason for hiding this comment

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

i think this can be validation.image_ssh_password 'cubswin:)'

if we read the commit they are saying

Use 'eval' to expand the TEMPESTCONF_OVERRIDES variable prior to
using it to run discover-tempest-config. This prevents embedded
quotes within the variable from being mangled.

Without the 'eval' embedded quoted strings like "Some String" get
mangled into '"Some' 'String"' on the resulting command line.

that would imply we should just be able to quote it to prevent having to escape anyting

Copy link
Contributor Author

@mrkisaolamb mrkisaolamb Sep 18, 2024

Choose a reason for hiding this comment

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

I tried eval locally with "cubswin:)" and unfortunatly return error, problem is with bash: syntax error near unexpected token `)'

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/2f73048bad764d30a19c82de513fd543

✔️ openstack-meta-content-provider SUCCESS in 4h 19m 26s
✔️ nova-operator-kuttl SUCCESS in 40m 26s
nova-operator-tempest-multinode FAILURE in 2h 12m 45s
nova-operator-tempest-multinode-ceph FAILURE in 2h 39m 13s

@gibizer
Copy link
Contributor

gibizer commented Sep 19, 2024

I prefer openstack-k8s-operators/tcib#212 as that is a global solution

@mrkisaolamb
Copy link
Contributor Author

agree, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants