Skip to content

fix: validate startup config paths#267

Open
Bortlesboat wants to merge 1 commit into
CortexLM:mainfrom
Bortlesboat:fix/startup-config-dir-writable
Open

fix: validate startup config paths#267
Bortlesboat wants to merge 1 commit into
CortexLM:mainfrom
Bortlesboat:fix/startup-config-dir-writable

Conversation

@Bortlesboat
Copy link
Copy Markdown

Summary

  • Resolve startup write checks through the same config env precedence as the config loader
  • Validate CORTEX_CONFIG_DIR and custom CORTEX_CONFIG parent paths before startup continues
  • Add regression tests for invalid override paths

Platform bounty: PlatformNetwork/bounty-challenge#49355

Tests

  • cargo test -p cortex-cli --bin Cortex check_cortex_home_writable_rejects -- --nocapture
  • cargo check -p cortex-cli
  • cargo fmt --check --package cortex-cli
  • git diff --check

Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

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