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

improvement(config): explicitly validate sub-paths when applicable #874

Merged
merged 1 commit into from
Jun 24, 2019

Conversation

edvald
Copy link
Collaborator

@edvald edvald commented Jun 23, 2019

We add a path rule, with options to disallow absolute paths or parent
paths, i.e. stepping up a directory tree, in order to ensure that some
paths are sub-paths of a project or module.

This required a refactor where we use a custom Joi instance across our
codebase, hence the size of the change.

This is done both for general hardening, and in preparation of #853 and
other similar configuration options.

@edvald edvald force-pushed the validate-subpaths branch 4 times, most recently from 61a4fc9 to 72f9605 Compare June 24, 2019 00:19
We add a `path` rule, with options to disallow absolute paths or parent
paths, i.e. stepping up a directory tree, in order to ensure that some
paths are sub-paths of a project or module.

This required a refactor where we use a custom Joi instance across our
codebase, hence the size of the change.

This is done both for general hardening, and in preparation of #853 and
other similar configuration options.
@thsig thsig force-pushed the validate-subpaths branch from 72f9605 to 6343603 Compare June 24, 2019 17:23
@thsig thsig merged commit f224bf9 into master Jun 24, 2019
@thsig thsig deleted the validate-subpaths branch June 24, 2019 17:33
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