{"id":16541550,"url":"https://github.com/codemug/argocd-rbac-controller","last_synced_at":"2025-10-10T11:03:30.925Z","repository":{"id":166429407,"uuid":"304617294","full_name":"codemug/argocd-rbac-controller","owner":"codemug","description":"A Kubernetes controller that can generate RBAC rules for ArgoCD","archived":false,"fork":false,"pushed_at":"2021-05-17T11:39:20.000Z","size":95,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-13T19:40:52.441Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/codemug.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-16T12:13:10.000Z","updated_at":"2022-09-01T07:58:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"2b83197e-5920-425a-a34d-c87bb42a5611","html_url":"https://github.com/codemug/argocd-rbac-controller","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codemug/argocd-rbac-controller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemug%2Fargocd-rbac-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemug%2Fargocd-rbac-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemug%2Fargocd-rbac-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemug%2Fargocd-rbac-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codemug","download_url":"https://codeload.github.com/codemug/argocd-rbac-controller/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemug%2Fargocd-rbac-controller/sbom","scorecard":{"id":296950,"data":{"date":"2025-08-11","repo":{"name":"github.com/codemug/argocd-rbac-controller","commit":"2472f49d540a3828ccd5d17c6f9fe893297313b3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/11 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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.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":"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":"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":"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/ci.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/codemug/argocd-rbac-controller/ci.yml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:2","Warn: containerImage not pinned by hash: Dockerfile:22: pin your Docker image by updating gcr.io/distroless/static:nonroot to gcr.io/distroless/static:nonroot@sha256:cdf4daaf154e3e27cfffc799c16f343a384228f38646928a1513d925f473cb46","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 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":"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: 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":-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 '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":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2021-0064 / GHSA-8cfg-vx93-jvxw"],"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-17T19:47:23.646Z","repository_id":166429407,"created_at":"2025-08-17T19:47:23.646Z","updated_at":"2025-08-17T19:47:23.646Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003725,"owners_count":26083610,"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-10T02:00:06.843Z","response_time":62,"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-10-11T18:55:19.772Z","updated_at":"2025-10-10T11:03:30.876Z","avatar_url":"https://github.com/codemug.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ArgoCD RBAC Controller\n\n\u003e Are you tired of creating custom tooling around the [pesky CSV based ConfigMap that manages RBAC in ArgoCD](https://argoproj.github.io/argo-cd/operator-manual/rbac/). Do you also yearn for a declarative way of creating roles and permissions in ArgoCD like the Kubernetes RBAC? If yes, you've found the right repo.\n\n`argocd-rbac-controller` is a Kubernetes operator that lets you declaratively define the ArgoCD `groups`, `roles` and `permissions` using Kubernetes custom resources. \n\n## Installation\n\nUse the [helm chart](https://github.com/codemug/argocd-rbac-controller/tree/main/helm/argocd-rbac-controller) in this repo to deploy the controller on your kubernetes cluster:\n\n```shell\nhelm install argocd-rbac-controller helm/argocd-rbac-controller\n```\n\n**Note**: If you intend to build the image yourself and push it to your own registry, you can update the `REGISTRY` value in the `Makefile` and do a:\n\n```shell\nmake docker-build\nmake docker-push\n```\n\nAnd then, when deploying the helm chart, you can set the image name as follows:\n\n```shell\nhelm install argocd-rbac-controller helm/argocd-rbac-controller --set image.registry=name-of-your-registry\n```\n\n## Usage\n\nThe operator installs two namespace-scoped `CustomResourceDefinitions` on your cluster:\n\n#### [GroupMapping](https://github.com/codemug/argocd-rbac-controller/blob/main/helm/argocd-rbac-controller/crds/argocd.codemug.io_groupmappings.yaml)\n\nThis translates to the `g` statements in the `argocd-rbac-cm` `ConfigMap`. For example, consider the following entry:\n\n```csv\ng, bar, role:foo\n```\n\nThis would be created through:\n\n```yaml\napiVersion: argocd.codemug.io/v1beta1\nkind: GroupMapping\nmetadata:\n  name: groupmapping-sample\nspec:\n  mappings:\n    - roleName: foo\n      groupName: bar\n```\n\n#### [RoleMapping](https://github.com/codemug/argocd-rbac-controller/blob/main/helm/argocd-rbac-controller/crds/argocd.codemug.io_rolemappings.yaml)\n\nThis translates to the `p` statements in the `argocd-rbac-cm` `ConfigMap`. For example, consider the following entry:\n\n```csv\np, role:foo, applications, get, *, allow\n```\n\nThis would be created through:\n\n```yaml\napiVersion: argocd.codemug.io/v1beta1\nkind: RoleMapping\nmetadata:\n  name: rolemapping-sample\nspec:\n  roles:\n    - name: foo\n      permissions:\n        - resource: applications\n          actions:\n          - get\n          instance: \"*\"\n```\n\n## Configuration\n\nThe name and namespace of the `argocd-rbac-cm` can be changed/configured at the time of the helm chart deployment:\n\n```shell\nhelm install argocd-rbac-controller helm/argocd-rbac-controller --set controller.rbacConfigMapName rbac-cm --set controller.rbacConfigMapNamespace cd-system\n```\n\nSimilarly, the value for `policy.default` in this `ConfigMap` can also be configured:\n\n```shell\nhelm install argocd-rbac-controller helm/argocd-rbac-controller --set controller.defaultPolicy role:admin\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemug%2Fargocd-rbac-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemug%2Fargocd-rbac-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemug%2Fargocd-rbac-controller/lists"}