Convert not_before_duration to seconds before returning it (#15559)

* Convert not_before_duration to seconds before returning it

* changelog file
This commit is contained in:
Gabriel Santos 2022-05-23 13:06:37 +01:00 committed by GitHub
parent 7da2085fa3
commit 3e569ed186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -757,7 +757,7 @@ func (b *backend) parseRole(role *sshRole) (map[string]interface{}, error) {
"default_extensions_template": role.DefaultExtensionsTemplate,
"allowed_user_key_lengths": role.AllowedUserKeyTypesLengths,
"algorithm_signer": role.AlgorithmSigner,
"not_before_duration": role.NotBeforeDuration,
"not_before_duration": int64(role.NotBeforeDuration.Seconds()),
}
case KeyTypeDynamic:
result = map[string]interface{}{

3
changelog/15559.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
secrets/ssh: Convert role field not_before_duration to seconds before returning it
```