distribution/registry
Don Bowman 9c43ba9dcc
fix: disable DisableHTMLEscape on logrus json logging
Fixes #3363

Without this, we emit illegal json logs, the user-agent
ends up as:

```
"http.request.useragent": "docker/19.03.4 go/go1.12.10 git-commit/9013bf583a kernel/5.10.10-051010-generic os/linux arch/amd64 UpstreamClient(Docker-Client/19.03.4 \(linux\))"
```

which is not valid according to [spec](https://www.json.org/json-en.html)

specifically, string: "<any codepoint except " or \ or control>*"

Signed-off-by: Don Bowman <don@agilicus.com>
2021-02-15 13:16:27 -05:00
..
api go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
auth go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
client go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
handlers go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
listener [Server] Listen and serve on a unix socket 2015-05-11 16:00:14 +03:00
middleware go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
proxy go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
storage go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
registry.go fix: disable DisableHTMLEscape on logrus json logging 2021-02-15 13:16:27 -05:00
registry_test.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
root.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00