Skip to content

GO-IAM is a RBAC system, inspired by AWS IAM. Made with Go Fiber, it aims at providing security while implementing multi-tenancy

Notifications You must be signed in to change notification settings

Tanmay000009/GO-IAM

Repository files navigation

About The Project

The GO-IAM is a user-friendly system that allows individuals to create accounts for their organizations. The account owner, known as the super user, gains administrative privileges and can manage users, groups, roles, and tasks within the organization, leveraging Role-Based Access Control (RBAC) for authorization. It ensures strong security measures to protect against potential threats and supports easy data upload using CSV and Excel files. The application is built with GoLang, GoFiber, and GORM, and it is containerized using Docker for easy deployment. The database options include PostgreSQL.

Resources

Built With

Go GoFiber Docker PostgreSQL Postman

(back to top)

Important Notes

  • While generating user accounts, password is optional. If it is not provided, a system generated password will be provided with the response.
  • To test roles and groups assigned to a user routes are provided. Refer postman for it.
  • When using a new database please seed roles using the seed role route in postman.
  • Presently, 12 system generated roles will be able. You can use read roles to access them.
  • Accessing the resources requires user to be authorized with roles.
  • Application is made of sub modules, so it'll be easier to migrate to microservices in future.

Getting Started

Prerequisites

  • GoLang
  • Docker (optional)
  • Docker Compose (optional)

Running Go Locally

  1. Make sure you have Go installed on your system.
  2. Clone the repository.
  3. Navigate to the root directory of the project.
  4. Take reference from the .env.example file to create the environment file .env and update the environment variables as needed.
  5. Run the following command to build and run the Go application:
go run main.go
  1. The application will be accessible at http://localhost:3000.

Using Docker Compose

  1. Make sure you have Docker and Docker Compose installed on your system.
  2. Clone the repository.
  3. Navigate to the root directory of the project.
  4. Take reference from the .env.example file to create the environment file .env and update the environment variables as needed.
  5. Run the following command to build and start the application in Docker containers:
docker-compose up -d

OR

./compose.sh

If you are facing permission issues, run the following command:

chmod +x run.sh
  1. The application will be accessible at http://localhost:3000.

Using Docker Image

  1. Make sure you have Docker installed on your system.
  2. Clone the repository.
  3. Navigate to the root directory of the project.
  4. Take reference from the .env.example file to create the environment file .env and update the environment variables as needed.
  5. Run the following command to build the Docker image:

Build the Docker image using the current directory as the build context

docker build -t tanmaybalkantask:latest .

Run the Docker container interactively, mapping the required port (30000 in this case) and using the .env file from the host machine as a volume inside the container

docker run -it -p 3000:3000 --env-file .env tanmaybalkantask:latest

OR

./run.sh

If you are facing permission issues, run the following command:

chmod +x run.sh
  1. The application will be accessible at http://localhost:3000.

(back to top)

Contact

Tanmay Vyas

GitHub LinkedIn Gmail Resume

About

GO-IAM is a RBAC system, inspired by AWS IAM. Made with Go Fiber, it aims at providing security while implementing multi-tenancy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages