Skip to content

Handle escape sequences correctly in authentication config

Aditya Tiwari requested to merge 355114-fixes-escape-seq into main

What does this MR do?

A customer scan fails with an error similar to: ERR MAIN configuration validation failed error="failed to parse TOML configuration due to (16, 13): invalid escape sequence: \\H"

This is due to the \ character not being escaped. We should escape all \ characters prior to inserting into the browserker.toml configuration file.

This MR converts the password and username to string representation before writing it to a file.

What are the relevant issue numbers?

gitlab-org/gitlab#355114 (closed)

GitLab Docs MR

Closes #355114

TODO:

  • Add changelog
Edited by Aditya Tiwari

Merge request reports