Skip to content

Registry support for htpasswd #288

@iainsproat

Description

@iainsproat

Hi, I'd like to deploy the docker registry with basic/htpasswd protection.

I'm able to add the relevant env values (see below), but I'm not sure if there's an existing supported way to configure ctlptl to mount a volume containing the htpasswd (to /auth/htpasswd)?

apiVersion: ctlptl.dev/v1alpha1
kind: Registry
name: ctlptl-registry
port: 5000
listenAddress: 127.0.0.1
env:
  - REGISTRY_AUTH=htpasswd
  - REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd
  - REGISTRY_AUTH_HTPASSWD_REALM="Registry Realm"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions