Skip to content

Commit

Permalink
Remove blobfuse URLs along with security vulnerability warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
foodprocessor committed Oct 18, 2023
1 parent 2737c58 commit 2fbacc9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
9 changes: 0 additions & 9 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}()
Expand Down
7 changes: 0 additions & 7 deletions cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 0 additions & 2 deletions common/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2fbacc9

Please sign in to comment.