Conversation
Introduce load/prepare scripts and GATEWAY_* placeholders so nginx auth files are generated from .env with distinct admin vs public users.
Introduce load/prepare scripts and GATEWAY_* placeholders so nginx auth files are generated from .env with distinct admin vs public users.
Clarify admin vs public-user credentials across README, nginx, UI, and smoke docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This change makes nginx Basic Auth credentials a single local source of truth in .env, then generates matching htpasswd files and wires the same values into Streamlit and smoke tests—with admin and public user kept separate.
GATEWAY_ADMIN_*andGATEWAY_USER_*to.env.example(real secrets stay in gitignored.env).scripts/load_gateway_env.sh+scripts/prepare_gateway_auth.sh, exposed as makegateway-auth.-
nginx/.htpasswd-admin→ ops routes (/api/v1admin paths,/mlflow,/api/train)-
nginx/.htpasswd-user→ predict routes (/api/predict/*,predict-go-*)/GATEWAY_USER*.predict-go-from-fasta.Why
Local 401s came from htpasswd drifting away from what the UI/smoke used (and from shared/reused credentials). This keeps nginx, Streamlit, and smoke aligned without putting passwords in git.