fluxcd-flux2/pkg/manifestgen/install
Hidde Beydals 5ea4e814f5 Add safe guards for relative paths
This commit adds multiple safe guards for relative paths, ensuring they
never traverse outside the working directory.

The `SafeRelativePath` flag calculates the safe relative path based on a
relative base dir, which results in a flattened path.

The write methods of `manifestgen` make use of the `SecureJoin` as well,
to ensure writes are never outside of the given directory when used as
a lib outside of the CLI.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-12-14 15:14:49 +01:00
..
install.go Add safe guards for relative paths 2020-12-14 15:14:49 +01:00
install_test.go Refactor manifests generation 2020-10-29 10:15:53 +02:00
manifests.go Update kustomize/api to v0.7.0 2020-12-11 16:07:23 +02:00
options.go Add cluster-domain option for bootstrap command 2020-12-12 16:37:05 +01:00
templates.go Add cluster-domain option for bootstrap command 2020-12-12 16:37:05 +01:00