{"id":37092622,"url":"https://github.com/microparts/configuration-golang","last_synced_at":"2026-01-14T11:16:15.950Z","repository":{"id":57482166,"uuid":"165043391","full_name":"microparts/configuration-golang","owner":"microparts","description":"Configuration module for microservices written on Golang. Specially created for follow up corporate standards of application configuration.","archived":true,"fork":false,"pushed_at":"2020-04-29T09:18:04.000Z","size":61,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-17T12:45:06.293Z","etag":null,"topics":["config-management","configuration-golang","corporate-standards","golang","microparts","microservice","microservices","standards","yaml","yaml-configuration"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/microparts.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":"2019-01-10T10:55:15.000Z","updated_at":"2023-01-28T14:30:26.000Z","dependencies_parsed_at":"2022-09-02T06:11:20.222Z","dependency_job_id":null,"html_url":"https://github.com/microparts/configuration-golang","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/microparts/configuration-golang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microparts%2Fconfiguration-golang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microparts%2Fconfiguration-golang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microparts%2Fconfiguration-golang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microparts%2Fconfiguration-golang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microparts","download_url":"https://codeload.github.com/microparts/configuration-golang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microparts%2Fconfiguration-golang/sbom","scorecard":{"id":643008,"data":{"date":"2025-08-11","repo":{"name":"github.com/microparts/configuration-golang","commit":"832fcd9483b694d967dee9b5b7dd34c3ff48ed50"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.4,"checks":[{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:2","Info:   0 out of   1 containerImage 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":"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":-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":"Code-Review","score":0,"reason":"Found 1/28 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":"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":"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: 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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2021-0061 / GHSA-r88r-gmrh-7j83","Warn: Project is vulnerable to: GO-2022-0956 / GHSA-6q6q-88xp-6f2r","Warn: Project is vulnerable to: GO-2020-0036 / GHSA-wxc4-f4m6-wwqv"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T11:20:19.833Z","repository_id":57482166,"created_at":"2025-08-21T11:20:19.834Z","updated_at":"2025-08-21T11:20:19.834Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28418063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["config-management","configuration-golang","corporate-standards","golang","microparts","microservice","microservices","standards","yaml","yaml-configuration"],"created_at":"2026-01-14T11:16:15.213Z","updated_at":"2026-01-14T11:16:15.944Z","avatar_url":"https://github.com/microparts.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"This rrepo is **DEPRECATED**! Use https://github.com/spacetab-io/configuration-go instead.\n\nGolang Microservice configuration module\n----------------------------------------\n\n[![CircleCI](https://circleci.com/gh/microparts/configuration-golang.svg?style=shield)](https://circleci.com/gh/microparts/configuration-golang) [![codecov](https://codecov.io/gh/microparts/configuration-golang/graph/badge.svg)](https://codecov.io/gh/microparts/configuration-golang)\n\n\nConfiguration module for microservices written on Go. Preserves [corporate standards for services configuration](https://confluence.teamc.io/pages/viewpage.action?pageId=4227704).\n\n## Installation\n\nUsing `go get`:\n\n    go get github.com/imdario/mergo\n    \nUsing `dep`:\n\n    dep ensure -add github.com/microparts/configuration-golang\n\nImport in your configuration file\n\n    import (\n        \"github.com/microparts/configuration-golang\"\n    )\n     \n\n## Usage\n\nSome agreements:\n1. Configuration must be declared as struct and reveals yaml structure\n2. Default config folder: `./configuration`. If you need to override, pass your path in `ReadConfig` function\n3. Default stage is `development`. To override, set `STAGE` env variable\n \nCode example:\n\n```go\npackage main\n\nimport (\n\t\"github.com/microparts/configuration-golang\"\n\t\"gopkg.in/yaml.v2\"\n\t\"log\"\n)\n\n\n// Your app config structure. This must be related to yaml config file structure. Everything that is not\n// in this struct will be passed and will not be processed.\n// Keep in mind that inheritance must be implemented with `struct{}`\ntype ConfigStruct struct {\n\tLog struct {\n\t\tLevel  string `yaml:\"level\"`\n\t\tDebug  bool   `yaml:\"debug\"`\n\t\tFormat string `yaml:\"yaml\"`\n\t} `yaml:\"log\"`\n\tDatabase struct {\n\t\tHost           string `yaml:\"host\"`\n\t\tPort           string `yaml:\"port\"`\n\t\tUser           string `yaml:\"user\"`\n\t\tPass           string `yaml:\"password\"`\n\t\tName           string `yaml:\"name\"`\n\t\tSslMode        string `yaml:\"sslMode\"`\n\t\tLogs           bool   `yaml:\"logs\"`\n\t\tMigrateOnStart bool   `yaml:\"migrateOnStart\"`\n\t\tMigrationPath  string `yaml:\"migrationsPath\"`\n\t} `yaml:\"db\"`\n\tHttp struct {\n\t\tHost string `yaml:\"host\"`\n\t\tPort string `yaml:\"port\"`\n\t} `yaml:\"ws\"`\n}\n\nfunc main() {\n\t// Reader accept config path as param. Commonly it stored like STAGE in ENV.\n\tconfigPath := config.GetEnv(\"CONFIG_PATH\", \"./configuration\")\n\t// Reading ALL config files in defaults configuration folder and recursively merge them with STAGE configs\n\tconfigBytes, err := config.ReadConfigs(configPath)\n\tif err != nil {\n\t\tlog.Fatalf(\"config reading error: %+v\", err)\n\t}\n\n    var Config ConfigStruct \n    // unmarshal config into Config structure \n\terr = yaml.Unmarshal(configBytes, \u0026Config)\n\tif err != nil {\n        log.Fatalf(\"config unmarshal error: %+v\", err)\n    }\n} \n```\n\n## License\n\nThe MIT License\n\nCopyright © 2019 teamc.io, Inc. https://teamc.io\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicroparts%2Fconfiguration-golang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicroparts%2Fconfiguration-golang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicroparts%2Fconfiguration-golang/lists"}