You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Externalize OPA-related properties using configuration properties to improve configurability.
Actual behaviour
We have some properties such as opaURL, opaPath, and reasonKey. Currently, these properties can only be set through code. Moreover, there are some constants which can be defined as properties.
How to improve
By externalizing these properties using a @ConfigurationProperties (link1, link2), we could:
manage these properties as a Spring bean
setting default values
standardize their name
validate them
enable client applications to change them through properties/yaml file, environment variables, system properties, ... without rebuilding code
Expected behaviour
Externalize OPA-related properties using configuration properties to improve configurability.
Actual behaviour
We have some properties such as opaURL, opaPath, and reasonKey. Currently, these properties can only be set through code. Moreover, there are some constants which can be defined as properties.
How to improve
By externalizing these properties using a
@ConfigurationProperties
(link1, link2), we could:We could define
OPAProperties
class:and use these properties in classes like
OPAAuthorizationManager
. (request...
properties can also be wrapped in a separate object.)On the flip side, client applications can easily define and change these properties, for instance in:
The text was updated successfully, but these errors were encountered: