From 0b3163e7bd70afa5a2ddb5bd42f3efc034377d70 Mon Sep 17 00:00:00 2001 From: Marco Dinis Date: Mon, 16 Sep 2024 08:31:52 +0100 Subject: [PATCH] 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/`). --- lib/srv/server/installer/autodiscover.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/srv/server/installer/autodiscover.go b/lib/srv/server/installer/autodiscover.go index ff5da2af555..2597c2e05cf 100644 --- a/lib/srv/server/installer/autodiscover.go +++ b/lib/srv/server/installer/autodiscover.go @@ -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) }