-
Notifications
You must be signed in to change notification settings - Fork 115
Set the embeddings server url for CDC mixer #5906
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -58,6 +58,11 @@ fi | |||||
|
|
||||||
| nginx -c /workspace/nginx.conf | ||||||
|
|
||||||
| MIXER_ARGS="" | ||||||
| if [[ $ENABLE_MODEL == "true" ]]; then | ||||||
| MIXER_ARGS="--embeddings_server_url=localhost:6060" | ||||||
| fi | ||||||
|
|
||||||
| /workspace/bin/mixer \ | ||||||
| --use_bigquery=false \ | ||||||
| --use_base_bigtable=false \ | ||||||
|
|
@@ -67,7 +72,8 @@ nginx -c /workspace/nginx.conf | |||||
| --use_sqlite=$USE_SQLITE \ | ||||||
| --use_cloudsql=$USE_CLOUDSQL \ | ||||||
| --cloudsql_instance=$CLOUDSQL_INSTANCE \ | ||||||
| --remote_mixer_domain=$DC_API_ROOT & | ||||||
| --remote_mixer_domain=$DC_API_ROOT \ | ||||||
| $MIXER_ARGS & | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line introduces a high-severity command injection vulnerability due to the unquoted shell variable
Suggested change
|
||||||
|
|
||||||
| envoy -l warning --config-path /workspace/esp/envoy-config.yaml & | ||||||
|
|
||||||
|
|
||||||
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.
For better robustness and to avoid issues with word splitting, it's recommended to use an array for storing optional command-line arguments in bash. This is safer if arguments with spaces are ever needed in the future. This change should be made in conjunction with updating how
MIXER_ARGSis used on line 76.