registrystack / registrystack/registry-stack

Decide whether caseworkctl dev may share the bregctl dev PostgreSQL container

Open
#1,003 0 comments 0 reactions 0 assignees View on GitHub
area:casework criticality:p3 enhancement needs-jeremi-decision
Dominant language
Rust
Stars
2
Forks
0
Avg merge
2h 55m
Merged PRs (30d)
130

Description

Found while writing the public tutorial `Review BReg changes in Casework`.

## Use Case

`caseworkctl dev --source-project` runs beside a `bregctl dev` session. It borrows that session's Registry Mint as issuer and exports its clients from the registry, but it still starts a second PostgreSQL container for Casework.

## What we hit

The Casework runtime refuses plaintext PostgreSQL unless the binary is built with the `postgres-test` feature and the runtime file sets `database.testOnlyPlaintext: true` (`crates/registry-casework/src/config.rs`, documented in `products/casework/RUNTIME-CONFIG.md`). The `bregctl dev` container speaks plaintext on loopback, so the Casework dev session cannot share it with a release build.

## Decision needed

1. Keep two containers (what ships today; the tutorial documents it).
2. Let the dev session use a loopback plaintext connection under an explicit dev-only setting that release builds accept.
3. Have `bregctl dev` provision TLS for its container so both dev sessions can share it.

Option 1 costs one extra container per reader. Option 2 touches a deployment default and needs a security review note. Option 3 is the cleanest runtime story but the largest change.

Triage: later, needs a product decision first.

Contributor guide

Open the contributing guide

Research direction

Start with crates/registry-casework/src/config.rs and products/casework/RUNTIME-CONFIG.md, then review the public `Review BReg changes in Casework` tutorial and the three proposed container-sharing options. Done means a product decision is recorded and the tutorial and relevant runtime or deployment guidance reflect the selected approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, rust
Domain
databases, devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.