coder / coder/usgov-reference

Refactor config-embedding scripts to read from a values file

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Three operational scripts embed configuration (org/group hierarchies, persona rosters, reference-clone URLs) directly in code, so a forker must edit Python/Bash to adapt them:

- `scripts/setup-coder-idp-sync.py` (org/group hierarchy dict)
- `scripts/setup-keycloak-hierarchy.py` (realm/persona dict)
- `scripts/preflight-readiness.sh` (reference repo URL arrays)

**Action**: refactor these to read their inputs from a values file (e.g. `values/env.example.yaml` or a dedicated companion file) so adapting them requires only editing configuration, not code.

---
Generated by Coder Agents, on behalf of @ausbru87.

Contributor guide

Open the contributing guide

Research direction

Read scripts/setup-coder-idp-sync.py, scripts/setup-keycloak-hierarchy.py, and scripts/preflight-readiness.sh to inventory their embedded configuration, then inspect values/env.example.yaml if present. Define a shared values-file approach and verify that all three scripts use it so a forker can adapt the hierarchies, personas, and reference URLs without editing code.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, python
Domain
devops
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.