akiradeveloper / akashic-storage

Filey system backed S3-compatible storage in Scala/Akka-Http
Apache License 2.0
22 stars 2 forks source link

Authentication to the admin commands #49

Closed akiradeveloper closed 8 years ago

akiradeveloper commented 8 years ago

A user may want to install akashic-storage in the VPS so he can access it from both home and office. Or even in on-premise use case, malicious user may manipulate the user table so other users suddenly becomes inaccessible to the storage.

We need authentication to the admin commands.

Wrap this root by authentication directive

  val adminRoute =
    MakeUser.route ~
    GetUser.route ~
    UpdateUser.route