{"id":44823853,"url":"https://github.com/handlename/ssmwrap","last_synced_at":"2026-02-16T21:04:05.624Z","repository":{"id":33942767,"uuid":"138238036","full_name":"handlename/ssmwrap","owner":"handlename","description":"Execute command with environment variables or/and files loaded from AWS SSM.","archived":false,"fork":false,"pushed_at":"2026-01-29T09:53:17.000Z","size":301,"stargazers_count":35,"open_issues_count":4,"forks_count":7,"subscribers_count":2,"default_branch":"v2","last_synced_at":"2026-01-29T21:38:21.241Z","etag":null,"topics":["aws","systems-manager-parameter-store"],"latest_commit_sha":null,"homepage":"","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/handlename.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"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":"2018-06-22T01:09:14.000Z","updated_at":"2026-01-14T21:30:42.000Z","dependencies_parsed_at":"2024-03-29T10:24:30.426Z","dependency_job_id":"14d222a4-271b-4fca-91e0-49b7ac7fe9b5","html_url":"https://github.com/handlename/ssmwrap","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/handlename/ssmwrap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handlename%2Fssmwrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handlename%2Fssmwrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handlename%2Fssmwrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handlename%2Fssmwrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/handlename","download_url":"https://codeload.github.com/handlename/ssmwrap/tar.gz/refs/heads/v2","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handlename%2Fssmwrap/sbom","scorecard":{"id":454227,"data":{"date":"2025-08-11","repo":{"name":"github.com/handlename/ssmwrap","commit":"81c89b983957bbcc2a8da1e50e80780a397a78f9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.3,"checks":[{"name":"Code-Review","score":1,"reason":"Found 1/7 approved changesets -- score normalized to 1","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":"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":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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/go.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/tagpr.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":"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":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:11"],"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":"Pinned-Dependencies","score":7,"reason":"dependency not pinned by hash detected -- score normalized to 7","details":["Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating alpine:latest to alpine:latest@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1","Info:   5 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   2 out of   2 third-party GitHubAction dependencies pinned","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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v2.2.3 not signed: https://api.github.com/repos/handlename/ssmwrap/releases/215775034","Warn: release artifact v2.2.2 not signed: https://api.github.com/repos/handlename/ssmwrap/releases/209168763","Warn: release artifact v2.2.1 not signed: https://api.github.com/repos/handlename/ssmwrap/releases/209160428","Warn: release artifact v2.2.0 not signed: https://api.github.com/repos/handlename/ssmwrap/releases/163442738","Warn: release artifact v2.1.0 not signed: https://api.github.com/repos/handlename/ssmwrap/releases/156447990","Warn: release artifact v2.2.3 does not have provenance: https://api.github.com/repos/handlename/ssmwrap/releases/215775034","Warn: release artifact v2.2.2 does not have provenance: https://api.github.com/repos/handlename/ssmwrap/releases/209168763","Warn: release artifact v2.2.1 does not have provenance: https://api.github.com/repos/handlename/ssmwrap/releases/209160428","Warn: release artifact v2.2.0 does not have provenance: https://api.github.com/repos/handlename/ssmwrap/releases/163442738","Warn: release artifact v2.1.0 does not have provenance: https://api.github.com/repos/handlename/ssmwrap/releases/156447990"],"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":-1,"reason":"internal error: error during GetBranch(main): error during branchesHandler.query: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 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"}}]},"last_synced_at":"2025-08-19T09:08:52.159Z","repository_id":33942767,"created_at":"2025-08-19T09:08:52.159Z","updated_at":"2025-08-19T09:08:52.159Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29518633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T18:37:19.720Z","status":"ssl_error","status_checked_at":"2026-02-16T18:36:46.920Z","response_time":115,"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":["aws","systems-manager-parameter-store"],"created_at":"2026-02-16T21:03:58.768Z","updated_at":"2026-02-16T21:04:05.616Z","avatar_url":"https://github.com/handlename.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ssmwrap\n\n[![Documentation](https://godoc.org/github.com/handlename/ssmwrap?status.svg)](https://godoc.org/github.com/handlename/ssmwrap)\n\nssmwrap execute commands with output values loaded from AWS SSM Parameter Store to somewhere.\n\nSupported output targets:\n\n- environment variables\n- files\n\n## Usage\n\n```console\n$ ssmwrap \\\n\t-env 'path=/production/*' \\\n\t-file 'path=/production/ssl_cert,to=/etc/ssl/cert.pem,mode=0600' \\\n\t-- app\n```\n\n## Install\n\nDownload binary from [releases](https://github.com/handlename/ssmwrap/releases)\n\nor\n\n```console\n$ brew install handlename/tap/ssmwrap\n```\n\nor\n\n```console\n$ go install github.com/handlename/ssmwrap/v2/cmd/ssmwrap@latest\n```\n\n## Options\n\n```console\n$ ssmwrap -help\nUsage of ssmwrap:\n  -env rule\n    \tAlias of rule flag with `type=env`.\n  -file rule\n    \tAlias of rule flag with `type=file`.\n  -retries int\n    \tNumber of times of retry. Default is 0\n  -rule path\n    \tSet rule for exporting values. multiple flags are allowed.\n    \tformat: path=...,type={env,file}[,to=...][,entirepath={true,false}][,prefix=...][,mode=...][,gid=...][,uid=...]\n    \tparameters:\n    \t        path: [required]\n    \t              Path of parameter store.\n    \t              If path ends with no-slash character, only the value of the path will be exported.\n    \t              If `path` ends with `/**/*`, all values under the path will be exported.\n    \t              If `path` ends with `/*`, only top level values under the path will be exported.\n    \t        type: [required]\n    \t              Destination type. `env` or `file`.\n    \t          to: [required for `type=file`]\n    \t              Destination path.\n    \t              If `type=env`, `to` is name of exported environment variable.\n    \t              If `type=env`, but `to` is not set, `path` will be used as name of exported environment variable.\n    \t              If `type=file`, `to` is path of file to write.\n    \t  entirepath: [optional, only for `type=env`]\n    \t              Export entire path as environment variables name.\n    \t              If `entirepath=true`, all values under the path will be exported. (/path/to/param -\u003e PATH_TO_PARAM)\n    \t              If `entirepath=false`, only top level values under the path will be exported. (/path/to/param -\u003e PARAM)\n    \t      prefix: [optional, only for `type=env`]\n    \t              Prefix for exported environment variable.\n    \t        mode: [optional, only for `type=file`]\n    \t              File mode. Default is 0644.\n    \t         gid: [optional, only for `type=file`]\n    \t              Group ID of file. Default is current user's Gid.\n    \t         uid: [optional, only for `type=file`]\n    \t              User ID of file. Default is current user's Uid.\n  -version\n    \tDisplay version and exit\n```\n\n### Environment Variables\n\nAll of command line options can be set via environment variables.\n\n```console\n$ SSMWRAP_ENV='path=/production/*' ssmwrap ...\n```\n\nis same as,\n\n```console\n$ ssmwrap -env 'path=/production/*' ...\n```\n\nYou can set multiple options by add suffix like '_1', '_2', '_3'...\n\n```console\n$ SSMWRAP_ENV_1='path=/production/app/*' SSMWRAP_ENV_2='path=/production/db/*' ssmwrap ...\n```\n\n## Migration from v1.x to v2.x\n\nOn v2, options flags are reformed.\n\n### Output to environment variables\n\nFlags for output to environment variables are consolidated to `-env` flag.\n\n```conosle\n# v1\n$ ssmwrap \\\n\t-paths '/foo,/bar' \\\n\t-env-entire-path \\\n\t-- ...\n\n# v2\n$ ssmwrap \\\n\t-env 'path=/foo/*,entirepath=true' \\\n\t-env 'path=/bar/*,entirepath=true' \\\n\t-- ...\n```\n\n### Output to files\n\nFlags for output to files are remaining as `-file` flag, but format is changed.\n\n```conosle\n# v1\n$ ssmwrap -file 'Path=/foo/value,Name=/path/to/file,Mode=0600' -- ...\n\n# v2\n$ ssmwrap -file 'path=/foo/value,to=/path/to/file,mode=0600' -- ...\n```\n\n### General output rules\n\nAdded new flag `-rule` that can be used for all type of output.\nFlag `-env` and `-file` are alias of `-rule` flag.\n\n```conosle\n# by -env and -file flag\n$ ssmwrap \\\n\t-env 'path=/foo/*' \\\n\t-file 'path=/bar/value,to=/path/to/file' \\\n\t-- ...\n\n# by -rule flag (same as above)\n$ ssmwrap \\\n\t-rule 'type=env,path=/foo/*' \\\n\t-rule 'type=file,path=/bar/value,to=/path/to/file' \\\n\t-- ...\n```\n\n## Motivation\n\nThere are some tools to use values stored in AWS System Manager Parameter Store,\nbut I couldn't find that manipulate values including newline characters correctly.\n\nssmwrap runs your command through syscall.Exec, not via shell,\nso newline characters are treated as part of a environment value.\n\n## Usage as a library\n\n`ssmwrap.Export()` fetches parameters from SSM and export those to envrionment variables.\nPlease check [example](./examples/lib/main.go).\n\n## License\n\nsee [LICENSE](https://github.com/handlename/ssmwrap?tab=MIT-1-ov-file#readme) file.\n\n## Special Thanks\n\n@fujiwara has gave me an idea of ssmwrap.\n\n## Author\n\n@handlename (https://github.com/handlename)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhandlename%2Fssmwrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhandlename%2Fssmwrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhandlename%2Fssmwrap/lists"}