tilt-dev / tilt-dev/ctlptl

Registry support for htpasswd

Open
#288 1 comment 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.