Page MenuHomePhabricator

Figure out right way to add CORS header to docker-registry.tools.wmflabs.org
Open, NormalPublic

Description

In https://gerrit.wikimedia.org/r/#/c/operations/puppet/+/528617/ I tried to add a CORS header, but the docker-registry service ended up not starting with the error message:

Sep 05 18:09:28 tools-docker-registry-03 docker-registry[650]: configuration error: error parsing /etc/docker/registry/config.yml: yaml: unmarshal errors:

The generated YAML looked like:

http:
  addr: 127.0.0.1:5000
  headers:
    Access-Control-Allow-Origin: "['*']"
storage:
  cache:
    blobdescriptor: inmemory
  filesystem:
    rootdirectory: "/srv/registry"
version: 0.1

Event Timeline

bd808 created this task.Thu, Sep 5, 6:18 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptThu, Sep 5, 6:18 PM
bd808 triaged this task as Normal priority.Thu, Sep 5, 6:18 PM

Mentioned in SAL (#wikimedia-cloud) [2019-09-05T21:02:18Z] <bd808> Enabled Puppet on tools-docker-registry-03 and forced puppet run (T232135)