Releases: pivotal-cf/brokerapi
v4.2.3
v4.2.2
v4.2.1
Adds middleware that parses the X-Broker-API-Originating-Identity header and adds it as a value to the downstream context passed to the functions of the brokerapi.ServiceBroker
interface. Thanks to @fitzoh.
This is added automatically as middleware if the brokerapi is constructed using brokerapi.New()
. When using an existing gorilla.mux.Router
via the brokerapi.AttachRoutes()
function, you will have to attach this middleware manually if required.
Breaking Changes
This bumps the gorilla/mux dependency to v1.6.1+ to use the middleware functions.
v4.1.0
Add new struct fields and errors to enable app developers to perform maintenance on service instances, as described in: openservicebrokerapi/servicebroker#628
Specifically:
- ProvisionDetails and UpdateDetails have an optional MaintenanceInfo field
- ErrMaintenanceInfoConflict and ErrMaintenanceInfoNilConflict to be returned when the provided maintenance info does not match the current catalog
Also adds instances_retrievable/bindings_retrievable catalog fields added to the spec in 2.14. Thanks to @drnic.
v4.0.0
- Implements GetInstance for OSB 2.14 spec
- Adds DashboardURL to UpdateResponse structure for Update in OSB 2.14 spec
v3.0.2
- Use constant time when authenticating users
- See CVE-2018-15759
3.0.1
Bug-fix: if accepts_incomplete is sent in a binding request with API Version < 2.14, this should be ignored rather than triggering an error.
3.0.0
Features:
- The brokerapi now supports asynchronous bindings, as per v2.14 of the open-service-broker API specification. Thanks to @liorokman for an extensive PR.
Breaking Changes:
ServiceBroker
interface:
- New methods
GetBinding(ctx context.Context, instanceID, bindingID string) (GetBindingSpec, error)
LastBindingOperation(ctx context.Context, instanceID, bindingID string, details PollDetails) (LastOperation, error)
- Modified method signatures:
Bind(ctx context.Context, instanceID, bindingID string, details BindDetails, asyncAllowed bool) (Binding, error)
Unbind(ctx context.Context, instanceID, bindingID string, details UnbindDetails, asyncAllowed bool) (UnbindSpec, error)
LastOperation(ctx context.Context, instanceID string, details PollDetails) (LastOperation, error)
Bind
and Unbind
now take asyncAllowed as new parameter. LastOperation
takes PollDetails
as its final parameter which is a new structure wrapping the operationData
string used previously.