Registry support for htpasswd
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 722
- Forks
- 48
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 8
Description
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"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing ctlptl's Registry configuration and the entry point that creates the local registry container; the issue names no files or tests. Determine how a volume containing htpasswd can be configured and mounted at /auth/htpasswd while preserving the supplied environment variables, then add coverage for the supported configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- infrastructure
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100