{"push_id":861266314,"size":1,"distinct_size":1,"ref":"refs/heads/acl-backend-mongo","head":"760cae0a8db128069460fe16da861f98502cdff3","before":"ba189c6326ca8c9c0bfaa3737ed522a779d16c20","commits":[{"sha":"760cae0a8db128069460fe16da861f98502cdff3","author":{"email":"df262e4c8e74c303194b1e2299f3a3b22b5cb76d@gmail.com","name":"Konrad Kleine"},"message":"Add MongoDB backend for ACLs\n\nThis adds the ability to store ACLs in a MongoDB database. There's also\na documentation file in docs/ACL_Backend_MongoDB.md that explains the\ndocument layout inside MongoDB.\n\nSee also #38 for the initial discussion on this topic.\n\n* There was an unreachable call to `w.Close()` which I've moved right\n  behind the error checks after the resource was opened as `defer\n  w.Close()`.\n* When the server starts it no longer prints something like\n  `Config from config.yml (3 users, 0 ACL entries)` but `Config from\n  config.yml (3 users, 0 ACL static entries)`. Notice the word\n  **static** to denote the fact that there maybe an ACL backend for which\n  no ACL has been fetched yet.\n* Made mgo.DialInfo and embedded struct in ACLMongoDialInfo\n* ACL cache is secured with a sync.RWMutex and allows multiple\n  non-blocking reads.\n* ACL are updated in a background go routine which is controlled by an\n  update ticker (time.Ticker). On startup and on every tick, the ACL\n  will be updated.\n\nSigned-off-by: Konrad Kleine <konrad.wilhelm.kleine@gmail.com>","distinct":true,"url":"https://api.github.com/repos/kwk/docker_auth/commits/760cae0a8db128069460fe16da861f98502cdff3"}]}