Skip to content

Parameterize auth secret name, branding env, and genesis ports - #1

Open
markmattina wants to merge 1 commit into
devfrom
parameterize-auth-branding-ports
Open

Parameterize auth secret name, branding env, and genesis ports#1
markmattina wants to merge 1 commit into
devfrom
parameterize-auth-branding-ports

Conversation

@markmattina

Copy link
Copy Markdown

Summary

Parameterizes the remaining upstream-hardcoded values in the genesis component so they can be configured via values.yaml, while keeping every default identical to the current upstream value (a default helm template render is byte-identical to dev).

This is a follow-up to the namespace de-hardcoding already on dev.

New values (all default to the current upstream value)

  • auth.secretName (juno-auth-secret) - consumed by the genesis AUTH_SECRET env. Note: the secret is still written by the genesis-create-nextauth-token PreSync Job (the image's /create-nextauth-secret), which uses this fixed name, so changing it requires image support.
  • galaxy / icon - the GALAXY and ICON branding env (genuinely overridable).
  • ports.ui / ports.backend (3000 / 8000) - threaded through the deployment containerPorts, the Service, the ingress (auth-url annotation + both backends), and the in-pod nginx proxy ConfigMap upstreams, so one value updates all references. These must match what the genesis image binds internally.

Out of scope (left as-is)

  • rhea :13000 internal probe port and the titan/terra/metrics-gatherer ports.
  • The cluster-scoped ClusterRole/ClusterRoleBinding fixed names (multi-install-per-cluster).

Test plan

  • helm template genesis . (default values) diffs clean against dev - no change.
  • helm template genesis . -f values-dev.yaml renders the genesis-dev Service (443/3000/8000), WARP annotation, auth secret, branding env, and proxy upstreams intact.
  • helm lint . and helm lint . -f values-dev.yaml pass.

Replace the remaining upstream-hardcoded genesis values with values.yaml
knobs, each defaulting to the current upstream value so a default render is
byte-identical:

  * auth.secretName (juno-auth-secret) -- consumed by the genesis AUTH_SECRET
    env; still written by the create-nextauth-token PreSync Job/image.
  * galaxy / icon -- the GALAXY and ICON branding env.
  * ports.ui / ports.backend (3000 / 8000) -- threaded through the deployment
    containerPorts, the Service, the ingress (auth-url + backends), and the
    in-pod nginx proxy ConfigMap upstreams so one value updates all references.

Defaults preserved; verified `helm template` with default values diffs clean
against dev, and the values-dev (genesis-dev WARP/TLS) render is intact.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant