Regex validating the gitconfig passed via `config.toml` disallows domain-specific configuration
It is currently not possible to set http.${domain}.foobar
configuration in Gitaly's config.toml
as the regular expression that validates the key is too strict. Configuration:
[[git.config]]
key = "http.https://example.com.proxy"
value = "http://proxyUsername:proxyPassword@proxy.server.com:port"
Error:
{"correlation_id":"01GFHM9C3VKNW3QRNAW0D9KYBX","error":"config key \"https.https://github.com.proxy\" failed regexp validation: invalid argument","grpc.code":"Internal","grpc.meta.auth_version":"v2","grpc.meta.deadline_type":"none","grpc.meta.method_type":"unary","grpc.method":"HasLocalBranches","grpc.request.fullMethod":"/gitaly.RepositoryService/HasLocalBranches","grpc.request.glProjectPath":"sdx-digital-platform/testapp/ci","grpc.request.glRepository":"","grpc.request.payload_bytes":154,"grpc.request.repoPath":"@hashed/61/a2/61a229bae1e90331edd986b6bbbe617f7035de88a5bf7c018c3add6c762a6e8d.git","grpc.request.repoStorage":"gitlab-gitaly-cluster-praefect-0","grpc.response.payload_bytes":0,"grpc.service":"gitaly.RepositoryService","grpc.start_time":"2022-10-17T00:07:53.212","grpc.time_ms":0