Skip to content

Conversation

@ali-jalaal
Copy link
Contributor

@ali-jalaal ali-jalaal commented Feb 20, 2025

  • To properly using configuration properties loaded by OPAProperties, this bean should be autowired in OPAAutoConfiguration bean.
  • To keep opaProperties object immutable, opaPath field has been restored.
    • opaPath can be set by constructors.
    • If opaPath is not set and current object (opaAuthorizationManager) is instantiated as a Spring bean, it will be set based on opaProperties.getPath().

Related to #22

To properly use configuration properties loaded using `OPAProperties`, this bean should be autowired in `OPAAutoConfiguration`. Autowiring has been made optional to maintain backward compatibility.
@ali-jalaal
Copy link
Contributor Author

@chendrix Please also consider this change in the new release, if possible.

Copy link
Member

@anderseknert anderseknert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@anderseknert anderseknert merged commit 155fa21 into open-policy-agent:main Feb 25, 2025
1 check passed
@ali-jalaal ali-jalaal deleted the Autowire-OPAProperties-in-OPAAutoConfiguration branch February 25, 2025 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants