{"id":13521343,"url":"https://github.com/prabhatsharma/eksuser","last_synced_at":"2025-10-06T00:50:08.218Z","repository":{"id":57538333,"uuid":"157234965","full_name":"prabhatsharma/eksuser","owner":"prabhatsharma","description":"Utility to manage Amazon EKS users","archived":false,"fork":false,"pushed_at":"2019-06-30T13:04:50.000Z","size":4730,"stargazers_count":35,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-01T17:16:45.212Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/prabhatsharma.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":"2018-11-12T15:32:05.000Z","updated_at":"2022-04-28T20:03:12.000Z","dependencies_parsed_at":"2022-09-07T16:50:45.997Z","dependency_job_id":null,"html_url":"https://github.com/prabhatsharma/eksuser","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/prabhatsharma/eksuser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prabhatsharma%2Feksuser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prabhatsharma%2Feksuser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prabhatsharma%2Feksuser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prabhatsharma%2Feksuser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prabhatsharma","download_url":"https://codeload.github.com/prabhatsharma/eksuser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prabhatsharma%2Feksuser/sbom","scorecard":{"id":743069,"data":{"date":"2025-08-11","repo":{"name":"github.com/prabhatsharma/eksuser","commit":"a0b790ece80bacd27b8d1fbe01cee043006bb379"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.8,"checks":[{"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 0/8 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":"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":"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":"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":"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":"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":"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.2.1 not signed: https://api.github.com/repos/prabhatsharma/eksuser/releases/18315973","Warn: release artifact v0.2.0 not signed: https://api.github.com/repos/prabhatsharma/eksuser/releases/18315860","Warn: release artifact v0.1.1 not signed: https://api.github.com/repos/prabhatsharma/eksuser/releases/15408023","Warn: release artifact v0.1.0 not signed: https://api.github.com/repos/prabhatsharma/eksuser/releases/13954988","Warn: release artifact v0.2.1 does not have provenance: https://api.github.com/repos/prabhatsharma/eksuser/releases/18315973","Warn: release artifact v0.2.0 does not have provenance: https://api.github.com/repos/prabhatsharma/eksuser/releases/18315860","Warn: release artifact v0.1.1 does not have provenance: https://api.github.com/repos/prabhatsharma/eksuser/releases/15408023","Warn: release artifact v0.1.0 does not have provenance: https://api.github.com/repos/prabhatsharma/eksuser/releases/13954988"],"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: goCommand not pinned by hash: vendor/github.com/googleapis/gnostic/extensions/COMPILE-EXTENSION.sh:1","Warn: goCommand not pinned by hash: vendor/github.com/json-iterator/go/build.sh:10","Warn: goCommand not pinned by hash: vendor/github.com/pelletier/go-toml/benchmark.sh:10","Warn: goCommand not pinned by hash: vendor/github.com/pelletier/go-toml/benchmark.sh:11","Warn: goCommand not pinned by hash: vendor/github.com/pelletier/go-toml/test.sh:26","Warn: goCommand not pinned by hash: vendor/github.com/pelletier/go-toml/test.sh:27","Warn: goCommand not pinned by hash: vendor/github.com/pelletier/go-toml/test.sh:28","Warn: goCommand not pinned by hash: vendor/github.com/pelletier/go-toml/test.sh:29","Info:   0 out of   8 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":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["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-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-22T18:01:14.642Z","repository_id":57538333,"created_at":"2025-08-22T18:01:14.642Z","updated_at":"2025-08-22T18:01:14.642Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278542673,"owners_count":26004061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-08-01T06:00:32.967Z","updated_at":"2025-10-06T00:50:08.196Z","avatar_url":"https://github.com/prabhatsharma.png","language":"Go","funding_links":[],"categories":["Kubernetes cluster security"],"sub_categories":[],"readme":"# eksuser\n\neksuser is a convenience utility that you can use to manage Amazon EKS users.\n\nIt allows you to add, update and delete existing IAM users to EKS. It also allows you to add/delete users of an existing IAM group to EKS.\n\n## Prerequisites\n\n1. An Amazon EKS cluster is installed and running\n2. aws-cli is configured\n3. kubectl and aws-iam-authenticator are configured\n4. Existing kubernetes groups that have access\n\nYou can create a Role/ClusterRole and then create a binding to the group:\n\ndev-role1.yaml - A Role that gives rights to everything in namespace app1\n\n```yaml\nkind: Role\napiVersion: rbac.authorization.k8s.io/v1\nmetadata:\n  name: super-developer\n  namespace: app1\nrules:\n- apiGroups: [\"*\"]\n  resources: [\"*\"]\n  verbs: [\"*\"]\n\n---\n\nkind: RoleBinding\napiVersion: rbac.authorization.k8s.io/v1\nmetadata:\n  name: super-developer\n  namespace: app1\nsubjects:\n- kind: Group\n  name: super-developer\n  apiGroup: rbac.authorization.k8s.io\nroleRef:\n  kind: Role\n  name: super-developer\n  apiGroup: rbac.authorization.k8s.io\n```\n\n```shell\n$ kubectl apply -f dev-role1.yaml\n```\nadmin-cluster-role1.yaml - A ClusterRole that gives super privileges on cluster\n\n```yaml\nkind: ClusterRole\napiVersion: rbac.authorization.k8s.io/v1\nmetadata:\n  name: super-admin\nrules:\n- apiGroups: [ \"*\" ]\n  resources: [\"*\"]\n  verbs: [\"*\"]\n- nonResourceURLs: [\"*\"]\n  verbs: [\"*\"]\n\n---\nkind: ClusterRoleBinding\napiVersion: rbac.authorization.k8s.io/v1\nmetadata:\n  name: super-admin\nsubjects:\n- kind: Group\n  name: super-admin\n  apiGroup: rbac.authorization.k8s.io\nroleRef:\n  kind: ClusterRole\n  name: super-admin\n  apiGroup: rbac.authorization.k8s.io\n```\n\n```shell\n$ kubectl apply -f admin-cluster-role1.yaml\n```\n\nNow to add an existing IAM user to EKS:\n\n```shell\n$ eksuser add --user=prabhat --group=super-admin\n$ eksuser add --user=prabhat --group=super-admin,super-developer\n```\n\nTo provide an IAM user admin rights on cluster:\n\n```shell\n$ eksuser add --user=prabhat --group=system:masters\n```\n\nTo update an existing IAM user to EKS:\n\n```shell\n$ eksuser update --user=prabhat --group=super-developer\n```\n\nTo delete an existing IAM user to EKS:\n\n```shell\n$ eksuser delete --user=prabhat\n```\nRemember that it does not delete the IAM user from AWS IAM, just the IAM user entry from EKS.\n\nTo add all users of an AWS IAM group to EKS:\n\n```shell\n$ eksuser add --iamgroup=admin --group=system:masters\n```\n\nTo delete all users of an AWS IAM group from EKS:\n\n```shell\n$ eksuser delete --iamgroup=admin\n```\n\n## Generate kubeconfig file\n\nOn user's machine who has been added to EKS, they can configure .kube/config file using the following command:\n\n```shell\n$ aws eks update-kubeconfig --name cluster_name\n```\n\n# Installation\n\nDownload binaries from [releases page](https://github.com/prabhatsharma/eksuser/releases/) and place the binary in PATH\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprabhatsharma%2Feksuser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprabhatsharma%2Feksuser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprabhatsharma%2Feksuser/lists"}