-
Notifications
You must be signed in to change notification settings - Fork 34
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
Preventing CLI command injection in a debug mode #194
Preventing CLI command injection in a debug mode #194
Conversation
Skipping CI for Draft Pull Request. |
recheck |
/retest |
log message announcing that the operator is running in a debug mode. Kuttl tests were expanded to cover the new edge case and original test cases were adjusted to unify their structure. Signed-off-by: Jiri Podivin <[email protected]>
@@ -299,6 +299,7 @@ func (r *OpenStackAnsibleEEReconciler) jobForOpenStackAnsibleEE( | |||
// Override args list if we are in a debug mode | |||
if instance.Spec.Debug { | |||
args = []string{"sleep", "1d"} | |||
r.Log.Info(fmt.Sprintf("Instance %s will be running in debug mode.", instance.Name)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fao89, jpodivin 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 |
a1bb25e
into
openstack-k8s-operators:main
…rators/fix_edpm Use Local storage in EDPM CI
Also sets up a log message announcing that the operator is running in a debug mode and expands the test coverage.
I did forget about an edge case that may cause problems down the line. I haven't seen any yet, but I would rather err on the side of caution here.