Repository navigation
feat(dstack-util): validate env values against specs in allowed_envs #1649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
2c797be
feat(value-spec): add a spec language for validating string values
kvinwang 6d5e14c
feat(dstack-util): validate env values against specs in allowed_envs
kvinwang 967353c
feat(dstack-util): add validate-env subcommand
kvinwang e4fdafe
feat(value-spec): accept the empty string with a trailing ?
kvinwang c70fdd5
feat(dstack-util): check env values against specs in exec-with-env
kvinwang 15c2412
docs: add environment value specs to the changelog
kvinwang 73c5cf1
feat(dstack-util): allow whitespace before the spec in allowed_envs
kvinwang 6868d78
feat(value-spec): bound spec length and pin the regex size limit
kvinwang 83e28d4
feat(dstack-util): treat an unset env variable as empty when checking…
kvinwang 3b1831c
feat(dstack-util): reject env variables outside allowed_envs
kvinwang 0e246f1
refactor(value-spec): parse NAME: spec entries in the crate
kvinwang 2edb069
feat(vmm): reject malformed allowed_envs specs at deployment
kvinwang 7ef065b
feat(vmm-cli): add --env-spec and keep specs when rewriting allowed_envs
kvinwang 0ddb6fe
feat(vmm-ui): edit value specs and keep them on update
kvinwang 74179a3
docs: mention deployment tooling for environment value specs
kvinwang 32a2497
feat(dstack-util): add import-env
kvinwang 8bd38b3
fix(value-spec): check entry names and report empty integer ranges
kvinwang e863f06
fix(dstack-util): keep .decrypted-env in sync on import-env
kvinwang 9ee7412
feat(vmm): let vmm-cli and the web UI remove value specs
kvinwang 4fd8e19
fix(dstack-util): leave unset env variables to the check before the a…
kvinwang 8f0ee40
fix(vmm): keep the order of allowed_envs and check --env-spec arguments
kvinwang 15aa4d5
fix(vmm): leave variables listed only for their spec unset
kvinwang 1bf0ce7
fix(dstack-util): check env only on app start and cap spec entry names
kvinwang 3819464
fix(dstack-util): reject mistyped validate-env arguments and hint at …
kvinwang 7606192
refactor(vmm): drop --drop-env-spec now that update keeps allowed_envs
kvinwang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.