EDITD / kubetools

:nut_and_bolt: Kubetools is a tool and processes for developing and deploying microservices to Kubernetes.
MIT License
13 stars 2 forks source link

Shell escape command in run container entrypoint #106

Closed eatoncns closed 3 years ago

eatoncns commented 3 years ago

Purpose of PR

Example of a problematic command:

command: [
  curl, -X, PUT,
  'http://example.com/_mapping',
  -H, 'Content-Type: application/json',
  -d@/opt/mappings/mappings.json
]

Here the current code would not correctly escape quotes on the Content-Type section and the space inside would be interpreted by the shell.