This is a fake service broker for creating proxy credentials which target a valid host (set in host) and optionally simulate fake user/password and subdomain.
- Get latest releases in releases page (only build is linux amd64)
- Unzip if you choose zipped version
- Create a user provided service to manage your configuration,
you can use the file included in the repo and run
cf cups <my-proxy-broker>-config -p service.json cf push mybroker -c ./fake-proxy-broker- register your broker:
cf create-service-broker myproxybroker <broker username> <broker password> <broker url> - enable service:
cf enable-service-access <proxy name>
Explanation of the config file given in /service.json:
{
"broker_username": "user",
"broker_password": "password",
"proxy": {
"name": "myproxy",
"description": "description of my proxy",
"host": "my.proxy.host",
"port": 3128,
"protocol": "http",
"random_subdomain": true,
"random_user": true
}
}name(Required): Name of your proxy, will be use in catalog and plansdescription(Optional): Description of your service and planhost(Required): Real host pointing to an existing proxyport(Optional, Default:3128): Port of the real hostprotocol(Optional, Default:http): Protocol used for proxyingrandom_subdomain(Optional): If set to true it will add a generated subdomain in binding credentials on host. e.g.: configured host ismy.proxy.hostcredentials will be<generated>.my.proxy.hostrandom_user(Optional): If set to true it will add a generated user and password in binding credentials.