Fix Auto Discover EC2 test when running in darwin (#46600)

This PR changes the method used for calculating the checksum for the
`/etc/teleport.yaml` file.

It was using a method that doesn't allow symlinks and we can't run tests
that use it in darwin boxes.

We don't expect any real issues with this, because files are in
root-only allowed directories (`/etc/`).
This commit is contained in:
Marco Dinis
2024-09-16 07:31:52 +00:00
committed by GitHub
parent 8019083ea6
commit 0b3163e7bd
+1 -1
View File
@@ -369,7 +369,7 @@ func (ani *AutoDiscoverNodeInstaller) configureTeleportNode(ctx context.Context,
}
func checksum(filename string) (string, error) {
f, err := utils.OpenFileNoUnsafeLinks(filename)
f, err := utils.OpenFileAllowingUnsafeLinks(filename)
if err != nil {
return "", trace.Wrap(err)
}