Skip to content

Commit 521e91a

Browse files
committed
fix(stores): define separate update type for submitting secret types
1 parent e10c747 commit 521e91a

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

v3/api/store_models.go

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,20 @@ type UpdateStoreFctArgs struct {
5151
// automatically populated by the CreateStore method. However, if configured, this field will be used.
5252
PropertiesString string `json:"Properties,omitempty"`
5353
// Mapped name-value pair field used to configure properties.
54-
Properties map[string]interface{} `json:"-"`
55-
AgentId string `json:"AgentId"`
56-
AgentAssigned *bool `json:"AgentAssigned,omitempty"`
57-
ContainerName *string `json:"ContainerName,omitempty"`
58-
InventorySchedule *InventorySchedule `json:"InventorySchedule,omitempty"`
59-
ReEnrollmentStatus *ReEnrollmnentConfig `json:"ReEnrollmentStatus,omitempty"`
60-
SetNewPasswordAllowed *bool `json:"SetNewPasswordAllowed,omitempty"`
61-
Password *StorePasswordConfig `json:"Password"`
54+
Properties map[string]interface{} `json:"-"`
55+
AgentId string `json:"AgentId"`
56+
AgentAssigned *bool `json:"AgentAssigned,omitempty"`
57+
ContainerName *string `json:"ContainerName,omitempty"`
58+
InventorySchedule *InventorySchedule `json:"InventorySchedule,omitempty"`
59+
ReEnrollmentStatus *ReEnrollmnentConfig `json:"ReEnrollmentStatus,omitempty"`
60+
SetNewPasswordAllowed *bool `json:"SetNewPasswordAllowed,omitempty"`
61+
Password *UpdateStorePasswordConfig `json:"Password"`
62+
}
63+
64+
type UpdateStorePasswordConfig struct {
65+
SecretValue *string `json:"SecretValue"` // used for setting kf-secret value or No Value (null)
66+
Parameters map[string]string `json:"Parameters"`
67+
Provider *string `json:"Provider"`
6268
}
6369

6470
// InventorySchedule holds configuration data for creating an inventory schedule for a certificate store in Keyfactor

0 commit comments

Comments
 (0)