mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
Fix Issue with Lost Timezone in Metadata for Database Secret Engines (#28509)
* Set cron schedule location after pulling from storage * Add changelog
This commit is contained in:
committed by
GitHub
parent
8d6d26e531
commit
b861d8b03f
@@ -268,6 +268,10 @@ func (b *databaseBackend) pathStaticCredsRead() framework.OperationFunc {
|
||||
if role.StaticAccount.RotationWindow.Seconds() != 0 {
|
||||
respData["rotation_window"] = role.StaticAccount.RotationWindow.Seconds()
|
||||
}
|
||||
|
||||
// The schedule is in UTC, but we want to convert it to the local time
|
||||
role.StaticAccount.Schedule.Location = time.Local
|
||||
respData["ttl"] = role.StaticAccount.CredentialTTL().Seconds()
|
||||
}
|
||||
|
||||
switch role.CredentialType {
|
||||
|
||||
3
changelog/28509.txt
Normal file
3
changelog/28509.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
databases: fix issue where local timezone was getting lost when using a rotation schedule cron
|
||||
```
|
||||
Reference in New Issue
Block a user