{"id":36427397,"url":"https://github.com/rozidan/docker-secret-spring-boot-starter","last_synced_at":"2026-01-11T18:04:16.330Z","repository":{"id":57722494,"uuid":"339392011","full_name":"rozidan/docker-secret-spring-boot-starter","owner":"rozidan","description":"A Spring Boot launcher that allows you to read the contents of Docker containers secrets into your Spring Boot application","archived":false,"fork":false,"pushed_at":"2021-02-24T14:35:56.000Z","size":78,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-16T08:37:19.254Z","etag":null,"topics":["docker","docker-secrets","java","spring-autoconfigurations","spring-boot","spring-property"],"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/rozidan.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":"2021-02-16T12:30:26.000Z","updated_at":"2024-07-15T08:55:56.000Z","dependencies_parsed_at":"2022-09-12T07:50:28.988Z","dependency_job_id":null,"html_url":"https://github.com/rozidan/docker-secret-spring-boot-starter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rozidan/docker-secret-spring-boot-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozidan%2Fdocker-secret-spring-boot-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozidan%2Fdocker-secret-spring-boot-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozidan%2Fdocker-secret-spring-boot-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozidan%2Fdocker-secret-spring-boot-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rozidan","download_url":"https://codeload.github.com/rozidan/docker-secret-spring-boot-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozidan%2Fdocker-secret-spring-boot-starter/sbom","scorecard":{"id":786068,"data":{"date":"2025-08-11","repo":{"name":"github.com/rozidan/docker-secret-spring-boot-starter","commit":"84a489e0ba7d8c564edcb7a186bcd4a9f6cfa3dc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/12 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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T06:07:39.520Z","repository_id":57722494,"created_at":"2025-08-23T06:07:39.520Z","updated_at":"2025-08-23T06:07:39.520Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28317295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"last_error":"SSL_read: 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":["docker","docker-secrets","java","spring-autoconfigurations","spring-boot","spring-property"],"created_at":"2026-01-11T18:04:15.785Z","updated_at":"2026-01-11T18:04:16.325Z","avatar_url":"https://github.com/rozidan.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Boot Docker Secret Starter\n\n\u003e A Spring Boot launcher that allows you to read the contents of Docker containers secrets into your Spring Boot application.\n\n[![Build Status](https://travis-ci.org/rozidan/docker-secret-spring-boot-starter.svg?branch=master)](https://travis-ci.org/rozidan/docker-secret-spring-boot-starter)\n[![Coverage Status](https://coveralls.io/repos/github/rozidan/docker-secret-spring-boot-starter/badge.svg?branch=master)](https://coveralls.io/github/rozidan/docker-secret-spring-boot-starter?branch=master)\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.rozidan/docker-secret-spring-boot-starter/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.rozidan/docker-secret-spring-boot-starter/)\n[![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/https/oss.sonatype.org/com.github.rozidan/docker-secret-spring-boot-starter.svg)](https://oss.sonatype.org/content/repositories/snapshots/com/github/rozidan/docker-secret-spring-boot-starter/)\n\n[![License](http://img.shields.io/:license-apache-brightgreen.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)\n\n## Features\n\nRegister the docker-secret starter to your Spring Boot application and reads docker container secrets content to spring properties before it is starting up\n\n## Setup\n\nIn order to add docker-secret to your project simply add this dependency to your classpath:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.rozidan\u003c/groupId\u003e\n    \u003cartifactId\u003edocker-secret-spring-boot-starter\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n```groovy\ncompile 'com.github.rozidan:docker-secret-spring-boot-starter:1.0.0'\n```\n\nFor snapshots versions add the sonatype public repository:\n\n```groovy\nrepositories {\n    mavenCentral()\n    maven { url \"https://oss.sonatype.org/content/groups/public\" }\n    ...\n}\n```\n\n### How does it work?\n\nAccording to the file names, the docker-secrets starter reads the secrets before the application starts up and adds/overrides spring properties with their content.\nFor example, if there is a secret called \"spring.my.prop\", the property \"my.prop\" will be added or overrode, and its content will be the secret file content\n\n### Which secrets are going to be Spring property?\n\nThere are two different prefixes for secrets that will convert to Spring properties:\n\n* \"spring.*\" - the property content will be exactly as secret content.\n* \"spring64.*\" - the property content will be base64 decoded.\n\n### From which folder will include the extraction of the secrets?\n\nThe property/env called \"secrets.path\" allocates folder path.\n\nExample for classpath folder:\n\n```shell\nsecrets.path=classpath:/secretstests/*\n```\n\nExample for system folder:\n\n```shell\nsecrets.path=file:/run/secrets/*\n```\n\n\u003e **NOTE:** The default path for Docker secrets is \"/run/secrets/*\",\n\u003cbr\u003e\u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \u0026nbsp; \n\u003e and it is the default path in case 'secrets.path' is not defined\n\n### The property source\nA new property source (PropertiesPropertySource) will be created with a name as follows:\u003cbr\u003e\n```text\n\"Container secrets converted to properties via location '[the path of the secrets]' with '[full class name of the EnvironmentPostProcessor]'\"\n```\nand this is how it will showed with the actuator endpoints.\n\n### Docker container configuration\n\nExample for a secret config within Docker compose:\n\n```yaml\nsecrets:\n   - source: database-pass\n     target: spring.my.database.pass\n```      \n\n## License\n\n[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frozidan%2Fdocker-secret-spring-boot-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frozidan%2Fdocker-secret-spring-boot-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frozidan%2Fdocker-secret-spring-boot-starter/lists"}