{"id":37094186,"url":"https://github.com/driftprogramming/goawsvault","last_synced_at":"2026-01-14T11:36:20.758Z","repository":{"id":64305562,"uuid":"385495060","full_name":"driftprogramming/goawsvault","owner":"driftprogramming","description":"go aws ecs vault assume role login","archived":false,"fork":false,"pushed_at":"2021-07-13T06:59:51.000Z","size":4033,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-20T12:41:21.744Z","etag":null,"topics":["assume-role","aws","ecs","go","login","vault"],"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/driftprogramming.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-07-13T06:08:52.000Z","updated_at":"2024-06-20T12:41:21.747Z","dependencies_parsed_at":"2023-01-15T10:30:51.695Z","dependency_job_id":null,"html_url":"https://github.com/driftprogramming/goawsvault","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/driftprogramming/goawsvault","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driftprogramming%2Fgoawsvault","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driftprogramming%2Fgoawsvault/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driftprogramming%2Fgoawsvault/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driftprogramming%2Fgoawsvault/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/driftprogramming","download_url":"https://codeload.github.com/driftprogramming/goawsvault/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driftprogramming%2Fgoawsvault/sbom","scorecard":{"id":356251,"data":{"date":"2025-08-11","repo":{"name":"github.com/driftprogramming/goawsvault","commit":"f8ec023ea6dd75ea959d8baca324c9f3044068d9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/10 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":"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":"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":"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":-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":"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":"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":"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":"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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: goCommand not pinned by hash: vendor/google.golang.org/grpc/vet.sh:38","Warn: goCommand not pinned by hash: vendor/google.golang.org/grpc/vet.sh:49","Info:   0 out of   2 goCommand 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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":0,"reason":"55 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0635","Warn: Project is vulnerable to: GO-2022-0646","Warn: Project is vulnerable to: GO-2022-0632 / GHSA-6239-28c2-9mrm","Warn: Project is vulnerable to: GO-2022-0618 / GHSA-qv95-g3gm-x542","Warn: Project is vulnerable to: GO-2022-0611 / GHSA-pfmw-vj74-ph8g","Warn: Project is vulnerable to: GO-2022-0620 / GHSA-23fq-q7hc-993r","Warn: Project is vulnerable to: GO-2023-1897 / GHSA-9mh8-9j64-443f","Warn: Project is vulnerable to: GO-2023-1900 / GHSA-wmg5-g953-qqfw","Warn: Project is vulnerable to: GO-2023-1708 / GHSA-hwc3-3qh6-r4gg","Warn: Project is vulnerable to: GO-2023-1685 / GHSA-v3hp-mcj5-pg39","Warn: Project is vulnerable to: GO-2023-1709 / GHSA-vq4h-9ghm-qmrr","Warn: Project is vulnerable to: GO-2023-1849 / GHSA-gq98-53rq-qr5h","Warn: Project is vulnerable to: GO-2023-2063 / GHSA-v84f-6r39-cpfc","Warn: Project is vulnerable to: GO-2023-2088 / GHSA-86c6-3g63-5w64","Warn: Project is vulnerable to: GO-2023-1986 / GHSA-9v3w-w2jh-4hff","Warn: Project is vulnerable to: GO-2023-2329 / GHSA-4qhc-v8r6-8vwm","Warn: Project is vulnerable to: GO-2024-2617 / GHSA-r3w7-mfpm-c2vw","Warn: Project is vulnerable to: GO-2024-2921 / GHSA-32cj-5wx4-gq8p","Warn: Project is vulnerable to: GO-2024-2690 / GHSA-j2rp-gmqv-frhv","Warn: Project is vulnerable to: GO-2024-3191 / GHSA-rr8j-7w34-xp5j","Warn: Project is vulnerable to: GO-2024-3246 / GHSA-g233-2p4r-3q7v","Warn: Project is vulnerable to: GO-2025-3663 / GHSA-gcqf-f89c-68hv","Warn: Project is vulnerable to: GO-2025-3837 / GHSA-6h4p-m86h-hhgh","Warn: Project is vulnerable to: GO-2025-3836 / GHSA-6c5r-4wfc-3mcx","Warn: Project is vulnerable to: GO-2025-3838 / GHSA-mr4h-qf9j-f665","Warn: Project is vulnerable to: GO-2025-3839 / GHSA-mwgr-84fv-3jh9","Warn: Project is vulnerable to: GO-2025-3841 / GHSA-qv3p-fmv3-9hww","Warn: Project is vulnerable to: GO-2025-3848 / GHSA-7rx2-769v-hrwf","Warn: Project is vulnerable to: GO-2024-2947 / GHSA-v6v8-xj6m-xwqh","Warn: Project is vulnerable to: GO-2022-0322 / GHSA-cg3q-j54f-5p7p","Warn: Project is vulnerable to: GO-2025-3372 / GHSA-6wxm-mpqj-6jpf","Warn: Project is vulnerable to: GO-2022-0193 / GHSA-fcf9-6fv2-fc5v","Warn: Project is vulnerable to: GO-2022-0192 / GHSA-2wp2-chmh-r934","Warn: Project is vulnerable to: GO-2022-0197 / GHSA-4r78-hx75-jjj2 / GHSA-mv93-wvcp-7m7r","Warn: Project is vulnerable to: GO-2020-0014 / GHSA-vfw5-hrgq-h5wf","Warn: Project is vulnerable to: GO-2022-0536 / GHSA-39qc-96h7-956f / GHSA-hgr8-6h9x-f7q9","Warn: Project is vulnerable to: GO-2022-0236 / GHSA-h86h-8ppg-mxmh","Warn: Project is vulnerable to: GO-2021-0238 / GHSA-83g2-8m93-v3w7","Warn: Project is vulnerable to: GO-2022-0288","Warn: Project is vulnerable to: GO-2022-0969 / GHSA-69cg-p879-7622","Warn: Project is vulnerable to: GO-2022-1144 / GHSA-xrjj-mj9h-534m","Warn: Project is vulnerable to: GO-2023-1571 / GHSA-vvpx-j8f3-3w6h","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GO-2023-2153 / GHSA-m425-mq94-257g / GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8","Warn: Project is vulnerable to: GO-2020-0015 / GHSA-5rcv-m4m3-hfh7","Warn: Project is vulnerable to: GO-2021-0113 / GHSA-ppp9-7jff-5vj2","Warn: Project is vulnerable to: GO-2022-1059 / GHSA-69ch-w2m2-3vjp","Warn: Project is vulnerable to: GO-2024-2631 / GHSA-c5q2-7r4c-mv6g","Warn: Project is vulnerable to: GO-2025-3488 / GHSA-6v2p-p543-phr9"],"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-18T09:41:27.098Z","repository_id":64305562,"created_at":"2025-08-18T09:41:27.099Z","updated_at":"2025-08-18T09:41:27.099Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419211,"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":["assume-role","aws","ecs","go","login","vault"],"created_at":"2026-01-14T11:36:20.055Z","updated_at":"2026-01-14T11:36:20.752Z","avatar_url":"https://github.com/driftprogramming.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go + AWS(ECS) + Vault = goawsvault\n\n## Usage\n```commandline\ngo get github.com/driftprogramming/goawsvault@v1.0.0\n\n```\n\nExamples `example/usage.go`\nThree different cases to login vault client and renew the vault client token automatically.\n````go\npackage example\n\nimport (\n\t\"context\"\n\t\"os\"\n\n\t\"github.com/driftprogramming/goawsvault\"\n\t\"github.com/hashicorp/vault/api\"\n)\n\nfunc vaultLoginExample() *api.Client {\n\tvaultClient := goawsvault.Login(\"https://vault.mycompany.net\", \"auth/mycompany-dev/login\", map[string]interface{}{\"role_id\": \"developer\"})\n\ttm := goawsvault.NewTokenManager(context.Background(), vaultClient)\n\ttm.MonitoringForToken() // renew vault token automatically\n\treturn vaultClient\n}\n\nfunc vaultLoginWithinAwsEcsContainerAutomaticallyExample() *api.Client {\n\tvaultClient := goawsvault.LoginWithinAwsEcsContainerAutomatically(\"https://vault.mycompany.net\", \"eu-west-1\")\n\ttm := goawsvault.NewTokenManager(context.Background(), vaultClient)\n\ttm.MonitoringForToken() // renew vault token automatically\n\treturn vaultClient\n}\n\nfunc vaultLoginByAwsRoleArnExample() *api.Client {\n\t_ = os.Setenv(\"AWS_ACCESS_KEY_ID\", \"AKKKAFYN9K3AUY74SNY39\") // the parent aws credentials to call aws api to assume the specific role\n\t_ = os.Setenv(\"AWS_SECRET_ACCESS_KEY\", \"ZTL9288NXdymfhxcISMOCU+AsYy9O3RsiDptABm8\")\n\tvaultClient := goawsvault.LoginByAwsRoleArn(\"https://vault.mycompany.net\", \"arn:aws:iam::468785217309:role/my-application-service-dev\", \"eu-west-1\")\n\ttm := goawsvault.NewTokenManager(context.Background(), vaultClient)\n\ttm.MonitoringForToken() // renew vault token automatically\n\treturn vaultClient\n}\n\n````","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdriftprogramming%2Fgoawsvault","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdriftprogramming%2Fgoawsvault","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdriftprogramming%2Fgoawsvault/lists"}