fluxcd-flux2/internal/flags
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
..
arch.go Change fluxcd/toolkit to fluxcd/flux2 2020-10-29 16:31:32 +01:00
decryption_provider.go Change fluxcd/toolkit to fluxcd/flux2 2020-10-29 16:31:32 +01:00
ecdsa_curve.go Change copyright to Flux authors 2020-10-27 18:59:01 +02:00
helm_chart_source.go Change fluxcd/toolkit to fluxcd/flux2 2020-10-29 16:31:32 +01:00
helm_release_values.go Add values-from arg to create helmrelease cmd 2020-11-23 11:29:35 +02:00
kustomization_source.go Change fluxcd/toolkit to fluxcd/flux2 2020-10-29 16:31:32 +01:00
log_level.go Change fluxcd/toolkit to fluxcd/flux2 2020-10-29 16:31:32 +01:00
public_key_algorithm.go Change copyright to Flux authors 2020-10-27 18:59:01 +02:00
rsa_key_bits.go Change copyright to Flux authors 2020-10-27 18:59:01 +02:00
safe_relative_path.go Add safe guards for relative paths 2020-12-14 15:14:49 +01:00
safe_relative_path_test.go Add safe guards for relative paths 2020-12-14 15:14:49 +01:00
source_bucket_provider.go Change fluxcd/toolkit to fluxcd/flux2 2020-10-29 16:31:32 +01:00