{"id":18273306,"url":"https://github.com/foryforx/gobodyguard","last_synced_at":"2026-05-14T23:42:39.443Z","repository":{"id":57495570,"uuid":"176871946","full_name":"foryforx/gobodyguard","owner":"foryforx","description":"ACL-based authorization. self-contained and independent microservice which shall be a drop-in into other microservices-based system. Reference: https://www.codeproject.com/articles/1056853/lightning-fast-access-control-lists-in-csharp","archived":false,"fork":false,"pushed_at":"2019-09-17T06:53:04.000Z","size":27,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T22:13:55.266Z","etag":null,"topics":["access-control","acl","authorization","clean-architecture","go","golang","gorm","microservices","operations","permissions","postgresql","resources","sql-migration","users"],"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/foryforx.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-03-21T04:48:56.000Z","updated_at":"2021-04-25T10:12:24.000Z","dependencies_parsed_at":"2022-08-28T17:41:15.272Z","dependency_job_id":null,"html_url":"https://github.com/foryforx/gobodyguard","commit_stats":null,"previous_names":["karuppaiah/gobodyguard"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foryforx%2Fgobodyguard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foryforx%2Fgobodyguard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foryforx%2Fgobodyguard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foryforx%2Fgobodyguard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foryforx","download_url":"https://codeload.github.com/foryforx/gobodyguard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247974566,"owners_count":21026742,"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","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":["access-control","acl","authorization","clean-architecture","go","golang","gorm","microservices","operations","permissions","postgresql","resources","sql-migration","users"],"created_at":"2024-11-05T12:05:58.294Z","updated_at":"2026-05-14T23:42:34.412Z","avatar_url":"https://github.com/foryforx.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoBodyguard\n\nThis is an ACL-based authorization self-contained and independent microservice which shall be a drop-in into other microservices-based systems.\n\n## References\n\n* https://www.codeproject.com/articles/1056853/lightning-fast-access-control-lists-in-csharp\n\n## Installation\n\n* go get github.com/karuppaiah/gobodyguard\n* cd $GOPATH/src/github.com/karuppaiah/gobodyguard\n* install dep(https://github.com/golang/dep)\n* dep ensure\n* cd migrations\n* dbmate up\n* cd ..\n* go run auth.go or use fresh(https://github.com/gravityblast/fresh)\n\n## Package structure\n\n* app : all auth related functionality are present here\n    1. authdata.go : models\n    2. authdatastorage.go : repository with GORM(https://github.com/jinzhu/gorm)\n    3. authdatastore.go: Interface for repository\n    4. authlogic.go: Usecase layer for auth(logic done here)\n    5. authopns.go: Interface for usecase layer, exposed to presentation layer\n    6. config.go: Singleton config to pick from Environment variables\n    7. constants.go: All constants in this package\n    8. dbinit.go: Database singleton initialization\n    9. httpauth.go: Presentation layer with Gin (https://github.com/gin-gonic/gin)\n    10. util.go: All helper functions\n* migrations : Migration script  executed using (https://github.com/amacneil/dbmate)\n* Proto : This service implementation in gRPC\n* auth.go : main file to be executed\n* .env: For running docker-compose\n* Gopkg.toml: Auto generated file by dep package (don't modify or delete it)\n* Gopkg.lock: Auto generated file by dep package ( don't modifu or delete it)\n* runner.conf : file used by fresh package(if used)\n* LICENSE : license file\n\n\n# TODO :\n- [ ] Test all API's\n- [ ] Load Data on startup and keep it in memory\n- [ ] Docker image and publish in hub.docker.com\n- [ ] Write terraform for infrastructure\n- [ ] Write ansible for deploy and config\n- [ ] Deploy in AWS cloud/Google cloud\n- [ ] redis storage for data storage\n- [ ] Write unit testing\n- [ ] Flutter/web assembly frontend\n- [ ] Utilites for message Q like kafka(producer and consumer)\n- [ ] Stress testing scripts","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforyforx%2Fgobodyguard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforyforx%2Fgobodyguard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforyforx%2Fgobodyguard/lists"}