{"id":37016176,"url":"https://github.com/iromu/spring-boot-openfeature","last_synced_at":"2026-01-14T01:48:54.498Z","repository":{"id":275340304,"uuid":"925785556","full_name":"iromu/spring-boot-openfeature","owner":"iromu","description":"This is a Spring Boot starter that integrates OpenFeature, an open standard for feature flag management.","archived":false,"fork":false,"pushed_at":"2025-09-16T20:48:00.000Z","size":436,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-16T22:55:51.477Z","etag":null,"topics":["feature-flags","openfeature","spring-boot-starter"],"latest_commit_sha":null,"homepage":"https://iromu.github.io/spring-boot-openfeature/","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/iromu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-01T18:36:50.000Z","updated_at":"2025-09-16T20:48:04.000Z","dependencies_parsed_at":"2025-04-23T22:22:22.801Z","dependency_job_id":"2d4122a4-2737-44d1-9cc2-1aa6e177e86f","html_url":"https://github.com/iromu/spring-boot-openfeature","commit_stats":null,"previous_names":["iromu/spring-boot-openfeature"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/iromu/spring-boot-openfeature","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iromu%2Fspring-boot-openfeature","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iromu%2Fspring-boot-openfeature/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iromu%2Fspring-boot-openfeature/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iromu%2Fspring-boot-openfeature/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iromu","download_url":"https://codeload.github.com/iromu/spring-boot-openfeature/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iromu%2Fspring-boot-openfeature/sbom","scorecard":{"id":1237783,"data":{"date":"2025-09-16T20:40:15Z","repo":{"name":"github.com/iromu/spring-boot-openfeature","commit":"74d252d736ff8f66f744289dca3e722f2fee2474"},"scorecard":{"version":"v5.2.1","commit":"ab2f6e92482462fe66246d9e32f642855a691dc1"},"score":7.9,"checks":[{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: Dependabot: .github/dependabot.yml:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dependency-update-tool"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#security-policy"}},{"name":"Code-Review","score":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info:  29 out of  29 GitHub-owned GitHubAction dependencies pinned","Info:   3 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:31","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:32","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release.yml:14","Info: topLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:24","Info: topLevel 'contents' permission set to 'read': .github/workflows/dependency-review.yml:13","Info: topLevel 'contents' permission set to 'read': .github/workflows/jekyll-gh-pages.yml:16","Info: topLevel permissions set to 'read-all': .github/workflows/pull_request.yml:6","Info: topLevel 'contents' permission set to 'read': .github/workflows/release.yml:7","Info: topLevel permissions set to 'read-all': .github/workflows/scorecard.yml:12","Info: topLevel permissions set to 'read-all': .github/workflows/snapshots.yml:9","Info: topLevel permissions set to 'read-all': .github/workflows/tags.yml:9"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#token-permissions"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#license"}},{"name":"CII-Best-Practices","score":2,"reason":"badge detected: InProgress","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#cii-best-practices"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:10"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#packaging"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#signed-releases"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: SAST configuration detected: CodeQL","Info: all commits (27) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#sast"}},{"name":"Branch-Protection","score":3,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Info: 'branch protection settings apply to administrators' is required to merge on branch 'main'","Warn: could not determine whether codeowners review is allowed","Warn: no status checks found to merge onto branch 'main'","Warn: PRs are not required to make changes on branch 'main'; or we don't have data to detect it.If you think it might be the latter, make sure to run Scorecard with a PAT or use Repo Rules (that are always public) instead of Branch Protection settings"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#branch-protection"}},{"name":"Contributors","score":10,"reason":"project has 13 contributing companies or organizations","details":["Info: found contributions from: coderwall-bear, coderwall-charity, coderwall-epidexipteryx, coderwall-forked, coderwall-komododragon, coderwall-komododragon3, coderwall-labrador, coderwall-mongoose, coderwall-polygamous, coderwall-raven, coderwall-trex, deutsche bank, finos"],"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#contributors"}},{"name":"CI-Tests","score":10,"reason":"13 out of 13 merged PRs checked by a CI test -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#ci-tests"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-jmp9-x22r-554x"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-09-16T22:56:09.528Z","repository_id":275340304,"created_at":"2025-09-16T22:56:09.528Z","updated_at":"2025-09-16T22:56:09.528Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408689,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["feature-flags","openfeature","spring-boot-starter"],"created_at":"2026-01-14T01:48:53.546Z","updated_at":"2026-01-14T01:48:54.492Z","avatar_url":"https://github.com/iromu.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Starter OpenFeature\n\n[![Apache License 2](https://img.shields.io/badge/license-ASF2-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0.txt)\n![Build Status](https://github.com/iromu/spring-boot-openfeature/actions/workflows/snapshots.yml/badge.svg?branch=main)\n![Sonar Coverage](https://img.shields.io/sonar/coverage/iromu_spring-boot-openfeature?server=https%3A%2F%2Fsonarcloud.io)\n[![Coveralls](https://img.shields.io/coverallsCoverage/github/iromu/spring-boot-openfeature)](https://coveralls.io/github/iromu/spring-boot-openfeature?branch=main)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=iromu_spring-boot-openfeature\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=iromu_spring-boot-openfeature)\n[![Maven Central](https://img.shields.io/maven-central/v/org.iromu.openfeature/spring-boot-openfeature?label=release)](https://repo1.maven.org/maven2/org/iromu/openfeature/)\n[![Maven metadata URL](https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Fcentral.sonatype.com%2Frepository%2Fmaven-snapshots%2Forg%2Firomu%2Fopenfeature%2Fspring-boot-openfeature%2Fmaven-metadata.xml\u0026label=snapshot)](https://central.sonatype.com/service/rest/repository/browse/maven-snapshots/org/iromu/openfeature/)\n[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/iromu/spring-boot-openfeature/badge)](https://securityscorecards.dev/viewer/?uri=github.com/iromu/spring-boot-openfeature)\n\nThis is a Spring Boot starter that integrates [OpenFeature](https://openfeature.dev/), an open standard for feature flag\nmanagement.\n\n## Features\n\n- **OpenFeature Integration**: Easily toggle features and manage feature flags in your application.\n- **Spring Boot Framework**: Built with Spring Boot for rapid development.\n- **Extensibility**: Supports multiple feature flag providers via OpenFeature SDK.\n\n## Prerequisites\n\nBefore running the application, ensure you have the following installed:\n\n- Java 17 or higher\n- Maven 3.8++\n\n## Getting Started\n\n### 1. Clone the Repository\n\n```bash\n$ git clone https://github.com/iromu/spring-boot-openfeature.git\n$ cd spring-boot-openfeature\n```\n\n### 2. Configure OpenFeature Provider\n\nOpenFeature allows you to integrate with a feature flag management provider. Update the configuration in\n`application.properties` or `application.yml`.\n\nFor example, if you're using Unleash:\n\n```properties\nspring:\n    openfeature:\n        unleash:\n            app-name:${spring.application.name}\n            environment:development\n            unleash-api:http://unleash-instance:54242/api/\n            unleash-token:'default:development.your-api-key'\n    application:\n        name:UnleashApplication\n```\n\nRefer to the provider's documentation for specific configuration details.\n\n### 3. Build and Run the Example Applications\n\nUsing Maven:\n\n```bash\n$ cd examples\n$ mvn clean package\n```\n\n### 4. Testing Feature Flags\n\nTo test feature flags, create a simple feature toggle in your provider and use OpenFeature APIs in your code. Example:\n\n```java\nimport dev.openfeature.sdk.Client;\n\n@RestController\npublic class FeatureController {\n\n    private final Client client;\n    \n    public FeatureController(Client client) {\n        this.client = client;\n    }\n    \n    @GetMapping(\"/feature-status\")\n    public String getFeatureStatus() {\n        boolean isFeatureEnabled = client.getBooleanValue(\"my-feature\", false);\n        return isFeatureEnabled ? \"Feature is enabled!\" : \"Feature is disabled.\";\n    }\n\n    @GetMapping(\"/user/{id}\")\n    public Boolean featureOnUserId(@PathVariable(\"id\") final String id) {\n        return client.getBooleanValue(\"users-flag\", false, new ImmutableContext(Map.of(\"userId\", new Value(id))));\n    }\n}\n```\n\nNavigate to `/feature-status` to see the feature toggle in action.\n\n\n\n### 5. Annotations\n\nWith a strategy defined like:\n\n```json\n    {\n      \"name\": \"users-flag\",\n      \"enabled\": true,\n      \"strategies\": [\n        {\n          \"name\": \"userWithId\",\n          \"parameters\": {\n            \"userIds\": \"111,234\"\n          }\n        }\n      ]\n    }\n```\n\n```java\n@RestController\npublic class UserController {\n\n    @GetMapping(\"annotated/user/{id}\")\n    @ToggleOnFlag(key = \"users-flag\", attributes = \"{'userId': #id}\", orElse = \"featureOnUserIdDisabled\")\n    public String featureOnUserIdAnnotated(@PathVariable(\"id\") final String id) {\n        return \"User allowed\";\n    }\n\n    public String featureOnUserIdDisabled(final String id) {\n        return \"User not allowed\";\n    }\n}\n```\n\n## OpenFeature Providers\n\nOpenFeature supports multiple feature flag providers, including:\n\n- Unleash\n- Split\n- ...\n\nTo switch providers, replace the dependency and update configuration as per the provider's documentation.\n\n## Dependencies\n\nKey dependencies for this project:\n\n- Spring Boot Starter Web\n- Spring Boot OpenFeature Starter\n- OpenFeature Provider (e.g., Unleash or Split)\n\nAdd the OpenFeature SDK and provider dependencies to your `pom.xml` or `build.gradle`:\n\n**Maven**\n\n```xml\n\u003cproject\u003e\n    \u003cdependencies\u003e\n        \u003cdependency\u003e\n            \u003cgroupId\u003eorg.springframework.boot\u003c/groupId\u003e\n            \u003cartifactId\u003espring-boot-starter-web\u003c/artifactId\u003e\n        \u003c/dependency\u003e\n        \u003cdependency\u003e\n            \u003cgroupId\u003eorg.iromu.openfeature\u003c/groupId\u003e\n            \u003cartifactId\u003espring-boot-starter-openfeature-unleash\u003c/artifactId\u003e\n            \u003cversion\u003e${spring-boot-openfeature.version}\u003c/version\u003e\n        \u003c/dependency\u003e\n    \u003c/dependencies\u003e\n\u003c/project\u003e\n```\n\n**Gradle**\n\n```groovy\ndependencyManagement {\n    imports {\n        mavenBom \"org.iromu.openfeature:spring-boot-openfeature-dependencies:${springBootOpenFeatureDependenciesVersion}\"\n    }\n}\n\ndependencies {\n    implementation 'org.springframework.boot:spring-boot-starter-web'\n    implementation 'org.iromu.openfeature:spring-boot-starter-openfeature'\n    implementation 'dev.openfeature.contrib.providers:unleash'\n}\n```\n\n## Contributing\n\nContributions are welcome! Please follow these steps:\n\n1. Fork the repository\n2. Create a new branch\n3. Make your changes and test thoroughly\n4. Submit a pull request\n\n## License\n\nThis project is licensed under the Apache License 2.0. See the [LICENSE](LICENSE.txt) file for details.\n\n## Resources\n\n- [OpenFeature Documentation](https://docs.openfeature.dev/)\n- [Spring Boot Documentation](https://spring.io/projects/spring-boot)\n- [Unleash Documentation](https://docs.getunleash.io/)\n\n---\n\nHappy coding! 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firomu%2Fspring-boot-openfeature","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firomu%2Fspring-boot-openfeature","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firomu%2Fspring-boot-openfeature/lists"}