Schema Registry config generator scripts fail with provided values that contain an ampersand #76774
Labels
schema-registry
tech-issues
The user has a technical issue about an application
triage
Triage is needed
Name and Version
bitnami/schema-registry:7.8.0
What architecture are you using?
amd64
What steps will reproduce the bug?
&
, e.g.SCHEMA_REGISTRY_KAFKA_SASL_PASSWORDS=my&password
What is the expected behavior?
config file
/opt/bitnami/schema-registry/etc/schema-registry/schema-registry.properties
containsWhat do you see instead?
config file
/opt/bitnami/schema-registry/etc/schema-registry/schema-registry.properties
containsAdditional information
Function schema_registry_conf_set trys to set a key value pair in the config file by calling replace_in_file. The bug is that
replace_in_file
is using the value in ased
command that interprets the ampersand as a replacement.I was able to workaround this issue by escaping the ampersand:
SCHEMA_REGISTRY_KAFKA_SASL_PASSWORDS='my\&password'
The text was updated successfully, but these errors were encountered: