dmarro89 / dare-db

Dare-DB is a lightweight in-memory database written in Go, featuring Redis-inspired hashtables and HTTP/HTTPS endpoints for seamless data storage and retrieval, with Docker support for easy deployment
MIT License
16 stars 1 forks source link

Security - Implement basic authentication #33

Open vdmitriyev opened 1 week ago

vdmitriyev commented 1 week ago

Maybe implementing a Basic Authentication would be enough as the first step to secure a database HTTPS endpoint. The implementation is much easier and should work well for the current case. Because currently, a database consist of a single data structure (key/value pairs) and most probably will be used by a single user.

For now, I would like to close issue with RBAC into backlog: https://github.com/dmarro89/dare-db/issues/7 Because, currently a single role and a single user in the database would be sufficient

@dmarro89 what do you think?

dmarro89 commented 1 week ago

Ok maybe we can start with a simple authentication but I would like to keep the RBAC discussion opened for future development

vdmitriyev commented 1 week ago

Totally agree with you. That is why is move the original issue to backlog and didn't close the discussion thread

dmarro89 commented 1 week ago

Totally agree with you. That is why is move the original issue to backlog and didn't close the discussion thread

Thanks