1. 05 Feb, 2016 1 commit
  2. 16 Dec, 2015 1 commit
    • Carson Anderson's avatar
      Add MongoDB Auth support · fcfc5c9e
      Carson Anderson authored
      Uses standardized mongo config, sessions, and copys
      Update docs concerning MongoDB
      gofmt all
      Use separate configs for mongo_auth and acl_mongo
  3. 12 Nov, 2015 1 commit
    • Konrad Kleine's avatar
      Add MongoDB backend for ACLs · 84329da7
      Konrad Kleine authored
      This adds the ability to store ACLs in a MongoDB database. There's also
      a documentation file in docs/ACL_Backend_MongoDB.md that explains the
      document layout inside MongoDB.
      See also #38 for the initial discussion on this topic.
      * There was an unreachable call to `w.Close()` which I've moved right
        behind the error checks after the resource was opened as `defer
      * When the server starts it no longer prints something like
        `Config from config.yml (3 users, 0 ACL entries)` but `Config from
        config.yml (3 users, 0 ACL static entries)`. Notice the word
        **static** to denote the fact that there maybe an ACL backend for which
        no ACL has been fetched yet.
      * Made mgo.DialInfo and embedded struct in ACLMongoDialInfo
      * ACL cache is secured with a sync.RWMutex and allows multiple
        non-blocking reads.
      * ACL are updated in a background go routine which is controlled by an
        update ticker (time.Ticker). On startup and on every tick, the ACL
        will be updated.
      Signed-off-by: default avatarKonrad Kleine <konrad.wilhelm.kleine@gmail.com>