mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
* 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]>
16 lines
320 B
Go
16 lines
320 B
Go
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
|
|
}
|