|
|
@@ -27,7 +27,7 @@ import (
|
|
|
aws_cloud_id "github.com/akeylesslabs/akeyless-go-cloud-id/cloudprovider/aws"
|
|
|
azure_cloud_id "github.com/akeylesslabs/akeyless-go-cloud-id/cloudprovider/azure"
|
|
|
gcp_cloud_id "github.com/akeylesslabs/akeyless-go-cloud-id/cloudprovider/gcp"
|
|
|
- "github.com/akeylesslabs/akeyless-go/v3"
|
|
|
+ "github.com/akeylesslabs/akeyless-go/v4"
|
|
|
authenticationv1 "k8s.io/api/authentication/v1"
|
|
|
corev1 "k8s.io/api/core/v1"
|
|
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
|
@@ -272,7 +272,11 @@ func (a *akeylessBase) GetStaticSecret(ctx context.Context, secretName string, v
|
|
|
if !ok {
|
|
|
return "", fmt.Errorf("can't get secret: %v", secretName)
|
|
|
}
|
|
|
- return val, nil
|
|
|
+ valStr, ok := val.(string)
|
|
|
+ if !ok {
|
|
|
+ return "", fmt.Errorf("can't convert secret value to string: %v", val)
|
|
|
+ }
|
|
|
+ return valStr, nil
|
|
|
}
|
|
|
|
|
|
func (a *akeylessBase) getCloudID(provider, accTypeParam string) (string, error) {
|