Fix unescaped quotes/newlines in YAML and gitconfig emitters #276
Reference in New Issue
Block a user
Delete Branch "fix/yaml-gitconfig-escape-special-chars"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #258.
Summary
egress.py: Added_yaml_str_escapehelper and applied it to every manifest string interpolated into a double-quoted YAML scalar inegress_render_routesand_render_match_entry(host, auth_scheme, token_env, path values, header names/values, method names). A stray"no longer corruptsroutes.yaml; a newline no longer splits a scalar across lines.git_gate.py: Added_gitconfig_validate_valueand called it on eachUpstreamvalue (and the derived host alias) before writing theinsteadOfline. A newline inUpstreamis rejected with a clear error rather than silently injecting arbitrary gitconfig keys.test_egress.pyandtest_provision_git.py.43e8c5244cto515a95a79d