[cas-user] Re: Auto-Reload of Properties File Not Working
Thanks, Andy. That is very helpful. On Tuesday, April 7, 2020 at 7:06:37 PM UTC-7, Andy Ng wrote: > > Hi Dustin, > > > Is there a list somewhere of which properties can/can't auto-reload? The > documentation I linked to in the original post states that "Most if not all > CAS settings are eligible candidates for reloads." > Not that I am aware of, maybe other can provide insight if they know of > such list. > > > Most if not all CAS settings are eligible candidates for reloads > Not sure about this statement, from my understanding quite a lot of them > can auto reload. However as you and me both found some setting not able to > auto reload, so I guess the "all" CAS settings are eligible candidate is > not true. > > > For me to check whether the properties consist of the following procedure: > > 1. Go to Apereo CAS github page: https://github.com/apereo/cas > 2. Search for the properties keyword at top right searach bar: > requiredIpAddresses > 3. Doing multiple Searches and trace back the Bean responsible for the > properties, in the requireIpAddress case I found this: > https://github.com/apereo/cas/blob/v6.1.5/webapp/cas-server-webapp-config/src/main/java/org/apereo/cas/config/CasWebAppSecurityConfiguration.java#L51 > 4. Check if there is the keyword "RefreshScope", if you see it then it can > reload, if not then cannot reload. > 5. For your case, casWebSecurityConfigurerAdapter is a Bean without > RefreshScope, so it cannot be reloaded. > > For RefreshScope example, the properties under this Bean can refresh, due > to having the keyword @RefreshScope: > > https://github.com/apereo/cas/blob/v6.1.5/support/cas-server-support-actions/src/main/java/org/apereo/cas/web/config/CasSupportActionsConfiguration.java#L168 > > > > Although troublesome, this is the so far only way I found able to check > for properties refresh Other then of course testing it using live server > > > See if the above helps. > > Cheers! > Andy > > > > > -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/00a800a4-4b74-426a-a7b5-cab907dbb271%40apereo.org.
[cas-user] Re: Auto-Reload of Properties File Not Working
Hi Dustin, > Is there a list somewhere of which properties can/can't auto-reload? The documentation I linked to in the original post states that "Most if not all CAS settings are eligible candidates for reloads." Not that I am aware of, maybe other can provide insight if they know of such list. > Most if not all CAS settings are eligible candidates for reloads Not sure about this statement, from my understanding quite a lot of them can auto reload. However as you and me both found some setting not able to auto reload, so I guess the "all" CAS settings are eligible candidate is not true. For me to check whether the properties consist of the following procedure: 1. Go to Apereo CAS github page: https://github.com/apereo/cas 2. Search for the properties keyword at top right searach bar: requiredIpAddresses 3. Doing multiple Searches and trace back the Bean responsible for the properties, in the requireIpAddress case I found this: https://github.com/apereo/cas/blob/v6.1.5/webapp/cas-server-webapp-config/src/main/java/org/apereo/cas/config/CasWebAppSecurityConfiguration.java#L51 4. Check if there is the keyword "RefreshScope", if you see it then it can reload, if not then cannot reload. 5. For your case, casWebSecurityConfigurerAdapter is a Bean without RefreshScope, so it cannot be reloaded. For RefreshScope example, the properties under this Bean can refresh, due to having the keyword @RefreshScope: https://github.com/apereo/cas/blob/v6.1.5/support/cas-server-support-actions/src/main/java/org/apereo/cas/web/config/CasSupportActionsConfiguration.java#L168 Although troublesome, this is the so far only way I found able to check for properties refresh Other then of course testing it using live server See if the above helps. Cheers! Andy -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/471e0f69-b84b-418b-9ee6-ca64d3a97712%40apereo.org.
[cas-user] Re: Auto-Reload of Properties File Not Working
Hi Andy- Sorry it has taken me so long to reply. The two properties I'm most interested in at this time are: - cas.monitor.endpoints.endpoint.health.requiredIpAddresses - cas.authn.ldap[0].principalAttributeList Is there a list somewhere of which properties can/can't auto-reload? The documentation I linked to in the original post states that "Most if not all CAS settings are eligible candidates for reloads." I also tried to figure out how to manually refresh the properties since my properties files are external, but after following the instructions, I got an error when trying to run the curl command. Thanks in advance for any insight you may have. On Wednesday, February 26, 2020 at 12:06:17 AM UTC-8, Andy Ng wrote: > > Hi Dustin, > > I am using 5.3.x and the auto reload does work, however not for all > properties (I think maybe some of the properties are hard to implement auto > reload). > > For eample, changing TGT cookie timeout cannot auto-reload > But changing pac4j OAuth credential can auto-reload > > What is the properties that you are trying to auto-reload? Maybe it is one > of the properties that cannot be auto-reloaded... > > Cheers! > - Andy > > > -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/836ccfb2-baef-47b8-8188-4bcc1be6fe80%40apereo.org.
[cas-user] Re: Auto-Reload of Properties File Not Working
Hi Dustin, I am using 5.3.x and the auto reload does work, however not for all properties (I think maybe some of the properties are hard to implement auto reload). For eample, changing TGT cookie timeout cannot auto-reload But changing pac4j OAuth credential can auto-reload What is the properties that you are trying to auto-reload? Maybe it is one of the properties that cannot be auto-reloaded... Cheers! - Andy -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/b5fcfdd1-28c4-4a0c-bfee-a435fb6ffa41%40apereo.org.