mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Small fixes on UX of Automated Root Rotation parameters (#29685)
This commit is contained in:
@@ -416,6 +416,9 @@ func (b *databaseBackend) connectionReadHandler() framework.OperationFunc {
|
||||
|
||||
resp.Data = structs.New(config).Map()
|
||||
config.PopulateAutomatedRotationData(resp.Data)
|
||||
// remove extra nested AutomatedRotationParams key
|
||||
// before returning response
|
||||
delete(resp.Data, "AutomatedRotationParams")
|
||||
return resp, nil
|
||||
}
|
||||
}
|
||||
@@ -523,7 +526,7 @@ func (b *databaseBackend) connectionWriteHandler() framework.OperationFunc {
|
||||
delete(data.Raw, "skip_static_role_import_rotation")
|
||||
delete(data.Raw, "rotation_schedule")
|
||||
delete(data.Raw, "rotation_window")
|
||||
delete(data.Raw, "rotation_ttl")
|
||||
delete(data.Raw, "rotation_period")
|
||||
delete(data.Raw, "disable_automated_rotation")
|
||||
|
||||
id, err := uuid.GenerateUUID()
|
||||
|
||||
Reference in New Issue
Block a user