NB: This service broker is provided as a proof-of-concept and as a practical example for integrating service brokers with CredHub. It is not actively maintained or intended for deployment or use in production environments.
Secure Application Credentials Broker
This broker is prototype application service broker that lets user-provided credentials to be securely stored in CredHub for applications to use.
The service broker stores the user-provided configuration parameters in CredHub, and returns a CredHub reference back to the platform.
The broker is currently configured to use a UAA client for authentication. You must first login with uaa admin credentials to create a UAA client that has credhub read and write access.
Note: Please refer to here for the example and the destination is subject to your ERT/PAS network CIDR
Push the service broker application, and then register it to CF as a broker.
Note, currently the broker credentials, and the service name, and plan are hardcoded in the broker code.
NB: This service broker is provided as a proof-of-concept and as a practical example for integrating service brokers with CredHub. It is not actively maintained or intended for deployment or use in production environments.
Secure Application Credentials Broker
This broker is prototype application service broker that lets user-provided credentials to be securely stored in CredHub for applications to use. The service broker stores the user-provided configuration parameters in CredHub, and returns a CredHub reference back to the platform.
For the entire process about how to setup a local environment by using BOSH Lite and Cloud Foundry
cf-deployment, please refer to here.Using the sample broker
Creating a UAA client with credhub permissions
Configuring the broker
git clonethis repo and modify the manifest file to have the client and client secret you created using uaac.For example:
Create a service instance of your broker and bind to the application that is meant to talk to the broker
Assuming that you are running credhub in assisted-mode your application should be able to access the JSON used when creating the service-instance.
Updating the json data
If you would like to update the data that the application has access to, you can do the following: