Skip to content
/ rmqbe Public

RabbitMQ backend for HTTP authorization plugin based on MongoDB

Notifications You must be signed in to change notification settings

malczuuu/rmqbe

Repository files navigation

RMQ BE

RabbitMQ backend for HTTP authorization plugin based on MongoDB. See rabbitmq-auth-backend-http for more details.

The main purpose of this project was to learn a bit of Go programming language.

Build

Run go build ./cmd/rmqbe to build the application. Binary file will be named ./rmqbe.

Run go test ./... to run all tests.

Run application with ./rmqbe and browse http://localhost:8000.

API

endpoint parameters
POST /user username
password
POST /vhost username
vhost
ip
POST /resource username
vhost
resource
name
permission
POST /topic username
vhost
resource
name
permission
routing_key

MongoDB Model

Permission {
    resource:    String,
    name:        String,
    permission:  String,
    routing_key: String?
}
User {
    _id:         ObjectId,
    username:    String,
    password:    BCrypt,
    vhosts:      String[],
    permissions: Permission[]
}

About

RabbitMQ backend for HTTP authorization plugin based on MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published