These releases include release engineering improvements, with no significant code or dependency changes.
These are also the first releases since this project was donated to the open-policy-agent organization on Github.
- Add
OPAPathSelectorto customize path selection - Add
OPAInputSubjectCustomizer,OPAInputResourceCustomizer,OPAInputActionCustomizerandOPAInputContextCustomizerbeans to override default request input - Add
OPAAuthorizationEventPublisherto publish deny or granted events
- Autowire
OPAPropertiesinOPAAutoConfiguration
- Add
OPAAutoConfigurationto auto-configureOPAClientandOPAAuthorizationManagerbeans. When anotherOPAClientandOPAAuthorizationManageris defined in Spring context, auto-configured beans will not be created. - Add
OPAPropertiesto organize properties, provide default values, and externalize them (modify them through properties files, yaml files, environment variables, system properties, etc.).
- Change
build.gradleto omit theplainclassifier from the jar file it builds. This should make the default snippet show on https://central.sonatype.com/artifact/com.styra.opa/springboot work as is. Before, you would have to add<classifier>plain</classifier>.
- Bump
opa-javaversion to 1.8.0.
- Fixed a null pointer exception while constructing the input to OPA with some Authentication implementations.
- Add
OPAAuthorizationManagerconstructor that accepts a path and aContextDataProvider, but not anOPAClient. opa-javais now marked as anapidependency inbuild.gradle, so it will not be transitively exposed to users.- Bump
opa-javaversion to 1.5.0.
- Explicitly mark the
ContextDataProviderinterface as public. - Remove several unused dependencies, update remaining dependencies to latest stable versions.
- Add
OPAAuthorizationManagerconstructor that accepts a path but not anOPAClient.
- Rather than hard-coding
en, the preferred key to search for decision reasons for can now be changed withOPAAuthorizationManager.setReasonKey(). The default remainsen. - Update
build.gradleto accurately reflect Apache 2 license.
- Initial release of the OPA Spring Boot SDK