Refactor start.sh to allowlist .dev.vars generation - #3
Open
heliosran wants to merge 1 commit into
Open
Conversation
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.
Motivation
.dev.varsby generating only the app-required keys..dev.varsalready exists.Description
env | while read ...export logic with an explicit allowlist of keys written to.dev.vars:OPENAI_API_KEY,OPENAI_CODEX_AUTH,CHATGPT_LOCAL_CLIENT_ID,CHATGPT_RESPONSES_URL,OLLAMA_API_URL,DEBUG_MODEL, andVERBOSE.REASONING_*variables via environment enumeration so reasoning controls are preserved when present..dev.varsif the file already exists and make the script stricter withset -euo pipefail.docs/docker.mdto document the allowlist behavior and addCHATGPT_LOCAL_CLIENT_IDandOLLAMA_API_URLto the environment variable table;.dev.varsremains gitignored.Testing
bash -n start.sh, which completed successfully.Codex Task