Skip to content

Commit 4bf9472

Browse files
committed
set access type for auth request
Signed-off-by: Kobbi Gal <[email protected]>
1 parent fd335a0 commit 4bf9472

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

secretstores/akeyless/akeyless.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,20 @@ func (a *akeylessSecretStore) authenticate(ctx context.Context, metadata *akeyle
9494
}
9595
authRequest.SetAccessKey(metadata.AccessKey)
9696
case AUTH_IAM:
97+
authRequest.SetAccessType(AUTH_IAM)
9798
id, err := aws.GetCloudId()
9899
if err != nil {
99100
return errors.New("unable to get cloud ID: " + err.Error())
100101
}
101102
authRequest.SetCloudId(id)
102103
case AUTH_JWT:
104+
authRequest.SetAccessType(AUTH_JWT)
103105
if metadata.JWT == "" {
104106
return errors.New("jwt is required for JWT authentication")
105107
}
106108
authRequest.SetJwt(metadata.JWT)
107109
case AUTH_K8S:
110+
authRequest.SetAccessType(AUTH_K8S)
108111
err := setK8SAuthConfiguration(*metadata, authRequest, a)
109112
if err != nil {
110113
return errors.New("failed to set k8s auth configuration: " + err.Error())

0 commit comments

Comments
 (0)