{"id":15192129,"url":"https://github.com/moberwasserlechner/docker-secret-spring-post-processor","last_synced_at":"2026-03-07T14:31:49.680Z","repository":{"id":57727626,"uuid":"241605358","full_name":"moberwasserlechner/docker-secret-spring-post-processor","owner":"moberwasserlechner","description":"Use docker secrets in a spring boot application with ease","archived":false,"fork":false,"pushed_at":"2021-04-18T22:40:26.000Z","size":106,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-23T14:03:59.368Z","etag":null,"topics":["docker","docker-compose","docker-secrets","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moberwasserlechner.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-19T11:31:01.000Z","updated_at":"2023-12-13T09:46:28.000Z","dependencies_parsed_at":"2022-09-26T21:50:53.980Z","dependency_job_id":null,"html_url":"https://github.com/moberwasserlechner/docker-secret-spring-post-processor","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/moberwasserlechner/docker-secret-spring-post-processor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moberwasserlechner%2Fdocker-secret-spring-post-processor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moberwasserlechner%2Fdocker-secret-spring-post-processor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moberwasserlechner%2Fdocker-secret-spring-post-processor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moberwasserlechner%2Fdocker-secret-spring-post-processor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moberwasserlechner","download_url":"https://codeload.github.com/moberwasserlechner/docker-secret-spring-post-processor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moberwasserlechner%2Fdocker-secret-spring-post-processor/sbom","scorecard":{"id":655301,"data":{"date":"2025-08-11","repo":{"name":"github.com/moberwasserlechner/docker-secret-spring-post-processor","commit":"94ef6616ddfc24bb3a6c7ed929926c750c41f832"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/19 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":"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":"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/tests.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/moberwasserlechner/docker-secret-spring-post-processor/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/moberwasserlechner/docker-secret-spring-post-processor/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/moberwasserlechner/docker-secret-spring-post-processor/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/moberwasserlechner/docker-secret-spring-post-processor/tests.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned 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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: 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-21T14:29:23.183Z","repository_id":57727626,"created_at":"2025-08-21T14:29:23.183Z","updated_at":"2025-08-21T14:29:23.183Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30217451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T14:02:48.375Z","status":"ssl_error","status_checked_at":"2026-03-07T14:02:43.192Z","response_time":53,"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-compose","docker-secrets","spring-boot"],"created_at":"2024-09-27T21:05:11.931Z","updated_at":"2026-03-07T14:31:49.636Z","avatar_url":"https://github.com/moberwasserlechner.png","language":"Java","funding_links":["https://www.paypal.me/moberwasserlechner"],"categories":[],"sub_categories":[],"readme":"# Spring Boot PostProcessor for Docker Secrets\n\n[![Maven Central](https://img.shields.io/maven-central/v/com.byteowls/docker-secret-spring-post-processor.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.byteowls%22%20AND%20a:%22docker-secret-spring-post-processor%22)\n![Tests](https://github.com/moberwasserlechner/docker-secret-spring-post-processor/workflows/Tests/badge.svg)\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/moberwasserlechner)\n\nDocker secrets are mounted to the container on a file basis. This is an approach not support by Spring out of the box.\n\nThe class `DockerSecretEnvPostProcessor` reads these secret files and creates properties usable like any other spring property.\n\n```properties\n# `docker_secret_` is the prefix and `email_username` the name of the secret file\napp.email.username=${docker_secret_email_username}\n```\n\n## Setup\n\nTo enable this post processor you have to create `src/main/resources/META-INF/spring.factories` containing\n```\norg.springframework.boot.env.EnvironmentPostProcessor=com.byteowls.docker.boot.DockerSecretEnvPostProcessor\n```\n\n## Configure\n\nAfter that you can configure the post processor from your `application-\u003cenv\u003e.properties` or any other Spring supported mechanism.\n\n```properties\n#key=default_value\n\n# enable/disable the post processor during runtime\ndocker.boot.secret.enabled=true\n# docker secret mount path\ndocker.boot.secret.path=/run/secrets\n# prefix for secret name \ndocker.boot.secret.prefix=docker_secret_\n# remove leading and trailing whitespace chars\ndocker.boot.secret.trim=true\n# print errors to System.out\ndocker.boot.secret.print.errors=true\n# Attention: print all found secrets (masked) to System.out. Use with care.\ndocker.boot.secret.print.secrets=false\n# Attention: unmasks all printed secrets. Use with care.\ndocker.boot.secret.print.secrets.unmasked=false\n```\n\nNote: We print to System.out because the log system is **not ready**, when the post processor is executed.\n\n## Dependency\n\nMaven\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.byteowls\u003c/groupId\u003e\n    \u003cartifactId\u003edocker-secret-spring-post-processor\u003c/artifactId\u003e\n    \u003cversion\u003ereplace.with.version\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nGradle\n\n```gradle\ndependencies {\n  implementation \"com.byteowls:docker-secret-spring-post-processor:REPLACE.WITH.VERSION\"\n}\n```\n\n## Contribute\n\nSee [Contribution Guidelines](https://github.com/moberwasserlechner/docker-secret-spring-post-processor/blob/master/.github/CONTRIBUTING.md).\n\n## Gradle\n\n```\n./gradlew wrapper --gradle-version 6.8.3\n```\n\n## Changelog\nSee [CHANGELOG](https://github.com/moberwasserlechner/docker-secret-spring-post-processor/blob/master/CHANGELOG.md).\n\n## License\n\nMIT. Please see [LICENSE](https://github.com/moberwasserlechner/docker-secret-spring-post-processor/blob/master/LICENSE).\n\n## BYTEOWLS Software \u0026 Consulting\n\nThis plugin is powered by [BYTEOWLS Software \u0026 Consulting](https://byteowls.com).\n\nIf you need extended support for this project like critical changes or releases ahead of schedule. Feel free to contact us for a consulting offer.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoberwasserlechner%2Fdocker-secret-spring-post-processor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoberwasserlechner%2Fdocker-secret-spring-post-processor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoberwasserlechner%2Fdocker-secret-spring-post-processor/lists"}