backport of commit 2c6a3e72d52297e71a5606fc71ce1a8781dc94aa (#22405)

Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
This commit is contained in:
hc-github-team-secure-vault-core 2023-08-17 13:18:38 -04:00 committed by GitHub
parent e56ef6c9fb
commit f0992b323f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

3
changelog/22394.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
ui: fixes `max_versions` default for secret metadata unintentionally overriding kv engine defaults
```

View File

@ -35,7 +35,7 @@ export default SecretV2Model.extend(KeyMixin, {
subText: 'An optional set of informational key-value pairs that will be stored with all secret versions.', subText: 'An optional set of informational key-value pairs that will be stored with all secret versions.',
}), }),
maxVersions: attr('number', { maxVersions: attr('number', {
defaultValue: 10, defaultValue: 0,
label: 'Maximum number of versions', label: 'Maximum number of versions',
subText: subText:
'The number of versions to keep per key. Once the number of keys exceeds the maximum number set here, the oldest version will be permanently deleted.', 'The number of versions to keep per key. Once the number of keys exceeds the maximum number set here, the oldest version will be permanently deleted.',