diff --git a/docs/snippets/bitwarden-secrets-manager-secret-store.yaml b/docs/snippets/bitwarden-secrets-manager-secret-store.yaml index 0b55da735..91a01b641 100644 --- a/docs/snippets/bitwarden-secrets-manager-secret-store.yaml +++ b/docs/snippets/bitwarden-secrets-manager-secret-store.yaml @@ -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: diff --git a/pkg/provider/bitwarden/bitwarden_sdk.go b/pkg/provider/bitwarden/bitwarden_sdk.go index 1a50785f5..e661dfb0c 100644 --- a/pkg/provider/bitwarden/bitwarden_sdk.go +++ b/pkg/provider/bitwarden/bitwarden_sdk.go @@ -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,