Failed to bind properties under 'cas' to org.apereo.cas.configuration.CasConfigurationProperties
cas.standalone.configurationsecurity.iterations = 999 (Origin: "cas.standalone.configurationSecurity.iterations" from property source "commandLineArgs")
----------------------------
The documented property is:
cas.standalone.configuration-security.iteration=999
2022-09-06 12:58:30,001 ERROR [org.apereo.cas.util.crypto.CipherExecutor] - <Could not decrypt value [{cas-cipher}someawesometext]
> It appears the documented property does not work
----------------------
To try to understand the scope I tried the following:
2022-09-06 13:13:22,629 ERROR [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <
Failed to bind properties under 'cas' to org.apereo.cas.configuration.CasConfigurationProperties
cas.standalone.configuration-security.iterations = 999
This however seemed still to function.
----------------------
In the event my original was incorrect and being ignored giving way to the default, I tried what is posted.
cas.standalone.configuration-security.iteration=0
This too led to a fail to decrypt message.
----------------------
Using the old naming convention, I pass
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
--
2022-09-07 14:39:35,708 DEBUG [org.apereo.cas.util.crypto.CipherExecutor] - <Configured Jasypt algorithm [PBEWithMD5AndTripleDES]>
2022-09-07 14:39:35,710 DEBUG [org.apereo.cas.util.crypto.CipherExecutor] - <Configured Jasypt password>
2022-09-07 14:39:35,710 DEBUG [org.apereo.cas.util.crypto.CipherExecutor] - <Configured Jasypt provider>
2022-09-07 14:39:35,717 DEBUG [org.apereo.cas.util.crypto.CipherExecutor] - <Configured Jasypt iterations>
........
2022-09-07 14:39:38,243 TRACE [org.apereo.cas.util.crypto.CipherExecutor] - <Attempting to decode key [cas.authn.ldap[0].bindCredential]>
2022-09-07 14:39:38,243 TRACE [org.apereo.cas.util.crypto.CipherExecutor] - <Initializing Jasypt...>
2022-09-07 14:39:38,303 TRACE [org.apereo.cas.util.crypto.CipherExecutor] - <Decrypting value [wLG8ti97SbbrP04JdOR4vW08qBOEd1c5yB9n4eMMNeNGQCVzoogUGA==]...>
2022-09-07 14:39:38,319 DEBUG [org.apereo.cas.util.crypto.CipherExecutor] - <Decrypted value [wLG8ti97SbbrP04JdOR4vW08qBOEd1c5yB9n4eMMNeNGQCVzoogUGA==] successfully.>
2022-09-07 14:32:13,852 DEBUG [org.apereo.cas.util.crypto.CipherExecutor] - <Configured Jasypt algorithm [PBEWithMD5AndTripleDES]>
2022-09-07 14:32:13,853 DEBUG [org.apereo.cas.util.crypto.CipherExecutor] - <Configured Jasypt password>
2022-09-07 14:32:13,853 DEBUG [org.apereo.cas.util.crypto.CipherExecutor] - <Configured Jasypt provider>
NO ITERATOR Picked up
.......
2022-09-07 14:32:16,279 TRACE [org.apereo.cas.util.crypto.CipherExecutor] - <Attempting to decode key [cas.authn.ldap[0].bindCredential]>
2022-09-07 14:32:16,279 TRACE [org.apereo.cas.util.crypto.CipherExecutor] - <Initializing Jasypt...>
2022-09-07 14:32:16,363 TRACE [org.apereo.cas.util.crypto.CipherExecutor] - <Decrypting value [wLG8ti97SbbrP04JdOR4vW08qBOEd1c5yB9n4eMMNeNGQCVzoogUGA==]...>
2022-09-07 14:32:16,416 ERROR [org.apereo.cas.util.crypto.CipherExecutor] - <Could not decrypt value [{cas-cipher}wLG8ti97SbbrP04JdOR4vW08qBOEd1c5yB9n4eMMNeNGQCVzoogUGA==]>
export CAS_STANDALONE_CONFIGURATION_SECURITY_ITERATION=35
or
--cas.standalone.configuration-security.iteration=35
When i use iterations it does, unless the iteration value is actually wrong.
HERE is the message.
Failed to bind properties under 'cas' to org.apereo.cas.configuration.CasConfigurationProperties cas.standalone.configuration-security.iterations = 35 (Origin: "cas.standalone.configuration-security.iterations" from property source "commandLineArgs")Listed settings above are no longer recognized by CAS 6.6.12. They may have been renamed, removed, or relocated to a new namespace in the CAS configuration schema. CAS will ignore such settings to proceed with its normal initialization sequence. Please consult the CAS documentation to review and adjust each setting to find an alternative or remove the definition from the property source. Failure to do so puts the server stability in danger and complicates future upgrades.
I was told that it will be fixed in a future version an answer that satisfied my need as I could continue to leverage the camelCase as described in thequasi official CAS how-too blog . Today, in v6.5.9 It still works with camelCase.
If the fact is: The documentation and class say: iteration but the command line usesiterations and that is intentional, it is confusing.