{"id":31904244,"url":"https://github.com/cloudfoundry-community/spring-boot-cf-service-broker","last_synced_at":"2025-10-13T13:48:21.075Z","repository":{"id":16103043,"uuid":"18848023","full_name":"cloudfoundry-community/spring-boot-cf-service-broker","owner":"cloudfoundry-community","description":"Spring Boot project for creating Cloud Foundry service brokers","archived":false,"fork":false,"pushed_at":"2015-12-18T20:35:53.000Z","size":407,"stargazers_count":42,"open_issues_count":1,"forks_count":56,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-04-14T22:47:42.967Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudfoundry-community.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-16T16:56:55.000Z","updated_at":"2024-02-09T14:24:26.000Z","dependencies_parsed_at":"2022-08-04T07:47:42.790Z","dependency_job_id":null,"html_url":"https://github.com/cloudfoundry-community/spring-boot-cf-service-broker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cloudfoundry-community/spring-boot-cf-service-broker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fspring-boot-cf-service-broker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fspring-boot-cf-service-broker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fspring-boot-cf-service-broker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fspring-boot-cf-service-broker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudfoundry-community","download_url":"https://codeload.github.com/cloudfoundry-community/spring-boot-cf-service-broker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fspring-boot-cf-service-broker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015343,"owners_count":26085686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-13T13:48:07.217Z","updated_at":"2025-10-13T13:48:21.070Z","avatar_url":"https://github.com/cloudfoundry-community.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"spring-boot-cf-service-broker\n=============================\n\nSpring Boot project for creating Cloud Foundry service brokers.\n\n**NOTE**: This project has been deprecated and replaced by [Spring Cloud - Cloud Foundry Service Broker](https://github.com/spring-cloud/spring-cloud-cloudfoundry-service-broker). All enhancements and updates to the latest service broker API versions will be done on the newer project. \n\n# Overview\n\nThe goal is to provide a [Spring Boot](http://projects.spring.io/spring-boot/) project to quickly implement new [service brokers](http://docs.cloudfoundry.org/services/overview.html) in Cloud Foundry.\n\n## Compatibility\n\n* [service broker API](http://docs.cloudfoundry.org/services/api.html): 2.4\n* [cf-release](https://github.com/cloudfoundry/cf-release): 192 or later\n* [Pivotal CF](http://www.pivotal.io/platform-as-a-service/pivotal-cf): Expected 1.4\n\n# Getting Started\n\nSee the [Spring Boot documentation](http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#getting-started-first-application) for getting started building a Spring Boot application.\n\nA sample [Mongo service broker](https://github.com/spgreenberg/spring-boot-cf-service-broker-mongo) project is available.\n\nCreate a new project for your broker and include the following in your `build.gradle` dependencies (be sure to set the version properties):\n\n    dependencies {\n        ...\n        compile(\"org.cloudfoundry:spring-boot-cf-service-broker:${springBootCfServiceBrokerVersion}\")\n        testCompile(\"org.cloudfoundry:spring-boot-cf-service-broker-tests:${springBootCfServiceBrokerVersion}\")\n        testCompile(\"org.springframework.boot:spring-boot-starter-test:${springBootVersion}\")\n        ...\n    }\n\nThe value of `springBootCfServiceBrokerVersion` corresponds to the service broker API you want write to (example 2.3).\n\n## Latest\n\nspringBootCfServiceBrokerVersion: 2.5.0\n\nAs of version 2.4.1 we've changed the API in anticipation of async brokers. All service instance and binding calls now take request objects. This will allow us to support async and future service broker api changes without having to change method signatures, making this codebase and broker implementations easier to maintain.\n\nAs of version 2.4.1 we've changed the API in anticipation of async brokers. All service instance and binding calls now take request objects. This will allow us to support async and future service broker api changes without having to change method signatures, making this\ncodebase and broker implementations easier to maintain.\n\nAs of version 2.4.1 we've changed the API in anticipation of async brokers. All service instance and binding calls now take request objects. This will allow us to support async and future service broker api changes without having to change method signatures, making this\ncodebase and broker implementations easier to maintain.\n\n# Configuring the broker\n\n`spring-boot-cf-service-broker` provides default implementations of most of the components needed to implement a service broker. In Spring Boot fashion, you can override the default behavior by providing your own implementation of Spring beans, and `spring-boot-cf-service-broker` will back away from its defaults.\n\nTo start, use the `@EnableAutoConfiguration` annotation on the broker's main application class:\n\n    @ComponentScan\n    @EnableAutoConfiguration\n    public class Application {\n        public static void main(String[] args) {\n            SpringApplication.run(Application.class, args);\n        }\n    }\n\nThis will trigger the inclusion of `spring-boot-cf-service-broker` and its default configuration.\n\n## Service beans\n\nThe Cloud Foundry service broker API has three main endpoint groupings: catalog management, service instance provisioning/deprovisioning, and service instance binding/unbinding. The broker will need to provide one Spring bean to provide the necessary functionality for each endpoint grouping.\n\nFor catalog management, `spring-boot-cf-service-broker` provides a default implementation that requires the broker to just provide an implementation of a [`Catalog` bean](src/main/java/org/cloudfoundry/community/servicebroker/model/Catalog.java). There is an example of this approach in the [MongoDB sample broker](https://github.com/spgreenberg/spring-boot-cf-service-broker-mongo/blob/master/src/main/java/org/cloudfoundry/community/servicebroker/mongodb/config/CatalogConfig.java). To override this default, provide your own bean that implements the [`CatalogService`](src/main/java/org/cloudfoundry/community/servicebroker/service/CatalogService.java) interface.\n\nFor service instance provisioning/deprovisioning, provide a Spring bean that implements the [`ServiceInstanceService`](src/main/java/org/cloudfoundry/community/servicebroker/service/ServiceInstanceService.java) interface. There is no default implementation provided by `spring-boot-cf-service-broker`.\n\nFor service instance binding/unbinding, provide a Spring bean that implements the [`ServiceInstanceBindingService`](src/main/java/org/cloudfoundry/community/servicebroker/service/ServiceInstanceBindingService.java) interface. There is no default implementation provided by `spring-boot-cf-service-broker`.\n\n## Security\n\nThe project includes the [`spring-boot-starter-security`](https://github.com/spring-projects/spring-boot/tree/master/spring-boot-starters/spring-boot-starter-security) project.  See the [Spring Boot Security documentation](http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-security) for configuration options.\n\nThe default behavior creates a user called `user` with a generated password that is logged as an `INFO` message during app startup.  For example:\n\n    2014-04-16T10:08:52.54-0600 [App/0]   OUT Using default password for application endpoints: 7c2969c1-d9c7-47e9-9c9e-2cd94a7b6cf1\n\nIf you are deploying your service broker to Cloud Foundry as an app, be aware the password is re-generated every time you push the application.  Therefore, you need to run `cf update-service-broker` with the new password after each push.\n\nTo see the generated password in the application logs on Cloud Foundry, use one of the following commands:\n\n    $ cf logs \u003cbroker-app-name\u003e\n    $ cf logs --recent \u003cbroker-app-name\u003e\n\n## API version verification\n\nBy default, `spring-boot-cf-service-broker` will verify the version of the service broker API for each request it receives. To disable service broker API version header verification, provide a `BrokerApiVersion` bean that accepts any API version:\n\n    @Bean\n    public BrokerApiVersion brokerApiVersion() {\n        return new BrokerApiVersion();\n    }\n\n# Deploying your broker\n\nFollow the [documentation](http://docs.cloudfoundry.org/services/managing-service-brokers.html) to register the broker to Cloud Foundry.\n\n# Model Notes\n\n- The model is for the REST/Controller level.  It can be extended as needed.\n- All models explicitly define serialization field names.\n- Currently, `ServiceInstance` is used internally and not exposed by any controllers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry-community%2Fspring-boot-cf-service-broker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudfoundry-community%2Fspring-boot-cf-service-broker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry-community%2Fspring-boot-cf-service-broker/lists"}