Skip to content

Commit 4b406cd

Browse files
authored
Fix LTPA config leader writing wrong last rotation key (#700)
* Fix LTPA config leader reading wrong rotation key * Set encryptionKeyLastRotation for LTPA config
1 parent edadf55 commit 4b406cd

File tree

3 files changed

+1
-170
lines changed

3 files changed

+1
-170
lines changed

internal/controller/assets/create_ltpa_config.sh

Lines changed: 0 additions & 84 deletions
This file was deleted.

internal/controller/assets/create_ltpa_keys.sh

Lines changed: 0 additions & 85 deletions
This file was deleted.

internal/controller/ltpa_keys_sharing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ func (r *ReconcileOpenLiberty) generateLTPAConfig(instance *olv1.OpenLibertyAppl
440440
ltpaConfigSecret.Labels[lutils.ResourcePathIndexLabel] = ltpaConfigMetadata.PathIndex
441441
ltpaConfigSecret.Data = make(map[string][]byte)
442442
if passwordEncryptionKey != "" && encryptionSecretLastRotation != "" {
443-
ltpaConfigSecret.Data["encryptionSecretLastRotation"] = []byte(encryptionSecretLastRotation)
443+
ltpaConfigSecret.Data["encryptionKeyLastRotation"] = []byte(encryptionSecretLastRotation)
444444
}
445445
ltpaConfigSecret.Data["lastRotation"] = []byte(ltpaSecret.Data["lastRotation"])
446446
ltpaConfigSecret.Data["password"] = encodedPassword

0 commit comments

Comments
 (0)