openservicebrokerapi / servicebroker

Open Service Broker API Specification
https://openservicebrokerapi.org/
Apache License 2.0
1.19k stars 436 forks source link

Binding rotation #701

Closed fmui closed 4 years ago

fmui commented 4 years ago

What is the problem this PR solves? This PR adds the binding rotation concept as discussed on the last OSB summit.

Checklist:

mattmcneeney commented 4 years ago

Thanks for writing this up @fmui. This looks like a great start!

Do we think we need two different request sections outlined for PUT /v2/service_instances/:guid/service_bindings/:guid? This feels a little funky for me, but I guess it may be clearer than having spec readers have to understand that it's one field OR the others.

lyubo1 commented 4 years ago

Thanks @fmui, LGTM.

rsampaio commented 4 years ago

I gave this a try and implemented a rotate command in https://github.com/rsampaio/rocs in a branch and it provides a nice interface to request a binding rotation, I used a fake broker and the workflow is very similar to requesting a new binding, this made me wonder about extensions for bindings and I believe the trigger of rotation could be an extension in the future that can do more than just create a new binding and for now, this should cover the basic use cases of expiring a credential.