Skip to content

Commit

Permalink
Fix #133 - Self-signed flag truncates left side characters in Base UR…
Browse files Browse the repository at this point in the history
…L in certain scenarios (#134)

* Fix #133 - change from TrimLeft to TrimPrefix

* bump version to v0.1.8-beta

* Add newly compiled binaries
  • Loading branch information
infamousjoeg authored Nov 3, 2021
1 parent a6e574a commit 27090a6
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 3 deletions.
Binary file modified bin/cybr
Binary file not shown.
Binary file modified bin/darwin_arm64_cybr
Binary file not shown.
Binary file modified bin/linux_cybr
Binary file not shown.
Binary file modified bin/windows_cybr.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion pkg/cybr/conjur/conjurrc.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func getPem(url string) (string, error) {
}

// trim https://
url = strings.TrimLeft(url, "https://")
url = strings.TrimPrefix(url, "https://")
// If no port is provide default to port 443
if !strings.Contains(url, ":") {
url = url + ":443"
Expand Down
2 changes: 1 addition & 1 deletion pkg/cybr/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cybr
import "fmt"

// Version field is a SemVer that should indicate the baked-in version of conceal
var Version = "0.1.7"
var Version = "0.1.8"

// Tag field denotes the specific build type for the broker. It may be replaced by compile-time variables if needed to
// provide the git commit information in the final binary.
Expand Down
2 changes: 1 addition & 1 deletion release.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "0.1.7-beta",
"version": "0.1.8-beta",
"go_version": "1.17.2"
}

0 comments on commit 27090a6

Please sign in to comment.