From 2fbacc940fce9f9a3a21aad58c307fc42f14f53e Mon Sep 17 00:00:00 2001 From: Michael Habinsky Date: Wed, 18 Oct 2023 15:27:44 -0600 Subject: [PATCH] Remove blobfuse URLs along with security vulnerability warnings. --- cmd/root.go | 9 --------- cmd/root_test.go | 7 ------- common/version.go | 2 -- 3 files changed, 18 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 5a0779bc3..3c109f7f9 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -151,15 +151,6 @@ func beginDetectNewVersion() chan interface{} { log.Info("beginDetectNewVersion: A new version of Cloudfuse is available. Current Version=%s, Latest Version=%s", common.CloudfuseVersion, remoteVersion) fmt.Fprintf(stderr, "*** "+executableName+": A new version [%s] is available. Consider upgrading to latest version for bug-fixes & new features. ***\n", remoteVersion) log.Info("*** "+executableName+": A new version [%s] is available. Consider upgrading to latest version for bug-fixes & new features. ***\n", remoteVersion) - - warningsUrl := common.CloudfuseListContainerURL + "/securitywarnings/" + common.CloudfuseVersion - hasWarnings := checkVersionExists(warningsUrl) - - if hasWarnings { - warningsPage := common.CloudfuseWarningsURL + "#" + strings.ReplaceAll(common.CloudfuseVersion, ".", "") - fmt.Fprintf(stderr, "Visit %s to see the list of vulnerabilities associated with your current version [%s]\n", warningsPage, common.CloudfuseVersion) - log.Warn("Visit %s to see the list of vulnerabilities associated with your current version [%s]\n", warningsPage, common.CloudfuseVersion) - } completed <- "A new version of Cloudfuse is available" } }() diff --git a/cmd/root_test.go b/cmd/root_test.go index fc49766ea..09e8c557f 100644 --- a/cmd/root_test.go +++ b/cmd/root_test.go @@ -120,13 +120,6 @@ func (suite *rootCmdSuite) TestCheckVersionExistsInvalidURL() { suite.assert.False(found) } -func (suite *rootCmdSuite) TestNoSecurityWarnings() { - defer suite.cleanupTest() - warningsUrl := common.CloudfuseListContainerURL + "/securitywarnings/" + common.CloudfuseVersion - found := checkVersionExists(warningsUrl) - suite.assert.False(found) -} - func (suite *rootCmdSuite) TestGetRemoteVersionInvalidURL() { defer suite.cleanupTest() out, err := getRemoteVersion("abcd") diff --git a/common/version.go b/common/version.go index eb84790e2..eaac5c2f1 100644 --- a/common/version.go +++ b/common/version.go @@ -32,8 +32,6 @@ import ( ) const CloudfuseReleaseURL = "https://api.github.com/repos/Seagate/cloudfuse/releases" -const CloudfuseListContainerURL = "https://blobfuse2.blob.core.windows.net/release" -const CloudfuseWarningsURL = "https://aka.ms/blobfuse2warnings" type Version struct { segments []int64