forked from argoproj/argo-cd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent file traversal using helm file values param and applicat…
…ion details api (argoproj#8606) * fix: prevent file traversal using helm file values param and application details api Signed-off-by: Alexander Matyushentsev <[email protected]> * apply reviewer notes: move resolve.go into separate package; use uuid to generate random file Signed-off-by: Alexander Matyushentsev <[email protected]>
- Loading branch information
Showing
19 changed files
with
600 additions
and
464 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package apiclient | ||
|
||
func (q *ManifestRequest) GetValuesFileSchemes() []string { | ||
if q.HelmOptions == nil { | ||
return nil | ||
} | ||
return q.HelmOptions.ValuesFileSchemes | ||
} | ||
|
||
func (q *RepoServerAppDetailsQuery) GetValuesFileSchemes() []string { | ||
if q.HelmOptions == nil { | ||
return nil | ||
} | ||
return q.HelmOptions.ValuesFileSchemes | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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.