1.4.2
- Sets
setValidateAfterInactivityto 500ms on connection manager. - Now retries on the following exceptions,
NoHttpResponseExceptionandSocketException.
1.4.1
- Expose
X-Request-IDvia.getRequestId()for both synchronousOsoand asynchronousOso.Asyncinstances. TheX-Request-IDis a UUIDv4 generated per request.
1.4.0
- Add non-blocking
Oso.AsyncAPI.
1.3.1
- Expand retry functionality to retry requests in more cases, including client-configured timeouts.
1.3.0
- Add ability to set read and write timeouts separately.
1.2.1
- Add OsoTimeoutException for timeout.
1.2.0
- Add ability to set client timeout.
1.1.0
- Stable release of
ParityHandlefor use withOso Migrate.
1.1.0-alpha.2
- Move
ParityHandleto public API - users no longer need to import from internal package.
1.1.0-alpha.1
- Add
ParityHandlefor use with unreleasedOso Migrate.
1.0.0
See the migration guide for details on upgrading from v0.x. This major release introduces a redesigned API surface for improved consistency and developer experience, including the new Query Builder API. Please consult the migration guide for a comprehensive list of breaking changes and instructions on adapting your code. Breaking Changes & New Features:- Package Structure: Public API is now primarily accessed via
com.osohq.oso_cloud.Oso. Query-related methods are available through theQueryBuilderreturned byoso.buildQuery(). - Centralized Authorization Data API:
tell(name, ...args)is replaced byinsert(Fact).delete(name, ...args)is replaced bydelete(Fact)for specific facts and a newdelete(FactPattern)overload for pattern matching usingValuePattern.ANYandValuePattern.ValueOfType.get(name, ...args)is replaced byget(FactPattern)which allows wildcard matching.bulkTell,bulkDelete, andbulkare replaced by the atomicbatch(Consumer<BatchTransaction>)method, usingtx.insert()andtx.delete()within the transaction.
- Query API:
- The previous
queryandauthorizeResourcesmethods are replaced by the new fluent Query Builder API, accessed viaoso.buildQuery(). - The Query Builder (
com.osohq.oso_cloud.QueryBuilder) provides methods likeand(),in(),withContextFacts(), andevaluate()(usingEvaluateArgs.exists(),EvaluateArgs.values(),EvaluateArgs.map()) for constructing and executing flexible queries. - Queries returning unconstrained results (e.g., an admin can access everything) now yield
"*"in the results list, consistent with Check APIs.
- The previous
- Local Check API:
- Integrates with the new Query Builder API via
evaluateLocalSelect()andevaluateLocalFilter()methods on theQueryBuilderfor generating SQL. - Existing
listLocal,authorizeLocal, andactionsLocalmethods remain functional.
- Integrates with the new Query Builder API via
0.11.0
- Add support for QueryBuilder and Local Authorization evaluation.
0.10.0
- Added
.equals()method forValueandFactclasses.
0.9.0
- Add context facts support to actionsLocal, listLocal, authorizeLocal.
0.8.0
- Increase the maximum number of connections used in the connection pool to 20. Previous default was 2 which limited the throughput a single client would handle.
- Added a
setMaxConnectionsmethod to configure the maximum number.
0.7.1
- Specify a
User-Agentto identify the Java and SDK client versions. - Treat all 2xx status codes as valid.
0.7.0
- Use Fallback, if configured, for
.get,.get_policy_metadata, and local check APIs if Oso Cloud returns an error (Requires Fallback 1.0.0 or later). - Use Fallback, if configured, if Oso Cloud returns an HTTP 400 error.
0.6.0
- Remove extra argument from
actionsLocaland mark old version as deprecated.
0.5.1
- Add
X-Request-IDheader to uniquely identify individual API requests; include this ID in error messages for better debugging.
0.5.0
- Added new
oso.actionsLocal()method.
0.4.2
- Add
X-Request-IDheader to uniquely identify individual API requests; include this ID in error messages for better debugging.
0.4.1
Removed undocumented & no longer in-use built-inFloat type.
0.4.0
Added support for the local check API:- Added new
oso.listLocal()method. - Added new
oso.authorizeLocal()method. - Added optional data bindings argument to
the
Osoconstructor.