mirror of
https://github.com/goharbor/harbor
synced 2025-04-13 17:27:30 +00:00
Add error log in case encryption on config save fails
Signed-off-by: Thomas Rosenstein <thomas.rosenstein@creamfinance.com>
This commit is contained in:
parent
b9bb47ca80
commit
452a0c9c45
|
@ -72,6 +72,8 @@ func (d *Database) Save(cfgs map[string]interface{}) error {
|
|||
if _, ok := item.ItemType.(*metadata.PasswordType); ok {
|
||||
if encryptPassword, err := encrypt.Instance().Encrypt(strValue); err == nil {
|
||||
entry.Value = encryptPassword
|
||||
} else {
|
||||
log.Errorf("encrypt password failed, error: %v", err)
|
||||
}
|
||||
}
|
||||
configEntries = append(configEntries, *entry)
|
||||
|
|
Loading…
Reference in New Issue
Block a user