mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
fix: bitwarden API url to point to the correct default location (#3848)
* fix: bitwarden API url to point to the correct default location Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com> * explicitly remove trailing slashes to prevent not found error Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com> --------- Signed-off-by: Gergely Brautigam <182850+Skarlso@users.noreply.github.com>
This commit is contained in:
parent
1309c2c41b
commit
c3dcd9adcd
2 changed files with 4 additions and 3 deletions
|
@ -5,7 +5,7 @@ metadata:
|
|||
spec:
|
||||
provider:
|
||||
bitwardensecretsmanager:
|
||||
apiURL: https://vault.bitwarden.com
|
||||
apiURL: https://api.bitwarden.com
|
||||
identityURL: https://identity.bitwarden.com
|
||||
auth:
|
||||
secretRef:
|
||||
|
|
|
@ -21,6 +21,7 @@ import (
|
|||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
|
||||
|
@ -111,8 +112,8 @@ func NewSdkClient(ctx context.Context, c client.Client, storeKind, namespace str
|
|||
}
|
||||
|
||||
return &SdkClient{
|
||||
apiURL: provider.APIURL,
|
||||
identityURL: provider.IdentityURL,
|
||||
apiURL: strings.TrimSuffix(provider.APIURL, "/"),
|
||||
identityURL: strings.TrimSuffix(provider.IdentityURL, "/"),
|
||||
bitwardenSdkServerURL: provider.BitwardenServerSDKURL,
|
||||
token: token,
|
||||
client: httpsClient,
|
||||
|
|
Loading…
Reference in a new issue