Skip to content
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

config: add path validation #304

Merged
merged 2 commits into from
Nov 28, 2024
Merged

config: add path validation #304

merged 2 commits into from
Nov 28, 2024

Conversation

ffromani
Copy link
Contributor

@ffromani ffromani commented Nov 26, 2024

add validation and restrictions about configuration paths,
to reduce the chance of path traversal vulnerabilities.

Most notably:

  • config root path must be one of the allowed subpaths
  • configlet are expected not to escape the configuration
    directories

@ffromani ffromani force-pushed the validate-paths branch 2 times, most recently from bf48a27 to 1361f01 Compare November 27, 2024 13:21
@ffromani ffromani changed the title DNM WIP config: add path validation Nov 27, 2024
pkg/config/validation.go Outdated Show resolved Hide resolved
pkg/config/validation.go Outdated Show resolved Hide resolved
pkg/config/validation.go Show resolved Hide resolved
@ffromani ffromani force-pushed the validate-paths branch 3 times, most recently from 7071a48 to 3761b24 Compare November 28, 2024 15:43
add validation and restrictions about configuration paths,
to reduce the chance of path traversal vulnerabilities.

Most notably:
- config root path must be one of the allowed subpaths
- configlet are expected not to escape the configuratio
  directories

Signed-off-by: Francesco Romani <[email protected]>
@ffromani ffromani merged commit 43b8ef4 into main Nov 28, 2024
6 checks passed
@ffromani ffromani deleted the validate-paths branch November 28, 2024 16:59
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.

2 participants