twuni/docker-registry.helm

nosniff in config.yml

gleupold opened this issue · 0 comments

Hi,

while investigating, delete is "unsupported" although we set:

delete:
  enabled: true

we noticed in:
/etc/docker/registry/config.yml

health:
  storagedriver:
    enabled: true
    interval: 10s
    threshold: 3
http:
  addr: :5000
  debug:
    addr: :5001
    prometheus:
      enabled: true
      path: /metrics
  headers:
    X-Content-Type-Options:
    - nosniff
log:
  fields:
    service: registry
storage:
  cache:
    blobdescriptor: inmemory
  delete:
    enabled: true
  maintenance:
    uploadpurging:
      age: 168h
      dryrun: false
      enabled: true
      interval: 24h
version: 0.1

that nosniff looks wrong?
Shouldnt the http headers look like this:
headers: X-Content-Type-Options: [nosniff]
We expect the "toYaml" in

{{ toYaml .Values.configData | indent 4 }}

to issue that but dont know how to fix it. Or does it work as expected?

Best regards