Skip to content

Backend for a self-hosted credentials manager with role based access control(RBAC)

License

Notifications You must be signed in to change notification settings

Dhruv9449/tizori-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Dhruv Shah

Tizori Backend ๐Ÿ”

Backend API and admin panel for self-hosted credentials manager with role-based access control (RBAC).

Go Python Django Postgres Docker JWT

Table of Contents


Key Features

  • User management and authentication using JWT
  • Role-based access control (RBAC) and role management
  • Applications management
  • Credentials management and encryption using AES


Tech Stack and Dependencies

Deployment

Web API

Admin Panel

Database



Setting-up and Installation

Prerequisites

git clone https://github.com/Dhruv9449/tizori-backend.git

Configure the environment variables

Configure the env files present in /tizori/.env/
For local environment use .local and for production use .production

Following environment variables need to be configured -

  • FIBER_PORT - Value of port used by the web api in the form :<PORT>, default value is :3000
  • DEBUG - Set to true for local environment, false for production environment
  • POSTGRES_URL - Set to postgres://<POSTGRES_USER>:<POSTGRES_PASSWORD>@postgres:<POSTGRES_PORT>/<POSTGRES_DB>
  • POSTGRES_USER - Username for postgres database
  • POSTGRES_PASSWORD - Password for postgres database
  • POSTGRES_DB - Name of the postgres database
  • POSTGRES_HOST - Hostname for postgres database, default value is postgres
  • POSTGRES_PORT - Port for postgres database, default value is 5432
  • JWT_SECRET - JWT secret key that will be used to sign the tokens
  • AES_KEY - AES key used for encryption and decryption of credentials

Seed the database

Use the following command to seed the database with initial roles data -

./tizori.sh seed


Usage

Running the application

Use the following command to run the application -

MacOS and Linux

./tizori.sh up

Windows

tizori.cmd up

Stopping the application

Use the following command to stop the application -

MacOS and Linux

./tizori.sh down

Windows

tizori.cmd down

Using management commands of the CLI application

Use the following command to run the CLI application -

MacOS and Linux

./tizori.sh cli <command>

Windows

tizori.cmd cli <command>


Developer

Dhruv Shah

Dhruv Shah

GitHub LinkedIn Email

Made with โค๏ธ by Dhruv Shah

About

Backend for a self-hosted credentials manager with role based access control(RBAC)

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published