GithubHelp home page GithubHelp logo

naidu-kjml / iam Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fallion/iam

0.0 1.0 0.0 960 KB

RBAC app for handling permissions with Okta

Home Page: https://kiwicom.github.io/iam/

License: MIT License

Dockerfile 1.40% Makefile 2.89% Go 94.40% Shell 1.31%

iam's Introduction

Kiwi IAM

Usage

Create .env.yaml file and set environment variables. Check .env-sample.yaml to see all the possible variables.

To install dependencies and start the project, make sure your GOPATH is set, and run:

make
make start

You can use make dev on development to reload the server automatically on file changes.

Redis

To run this project you need to have redis installed and running, you can use the following commands to do so.

# MacOS
brew install redis
brew services start redis

# Linux
# install using your package manager
systemctl start redis

# Docker
docker run -it --rm -p 6379:6379 redis

You can use redis-cli to interact with redis (ie. check keys and values). Useful commands:

# Show all keys
KEYS *

# Show value for a key
GET <key>

API Documentation

We use go-swagger for generating the API documentation based on the OpenAPI 2.0 specification which is defined on api/swagger.yml.

# Opens the documentation website locally (on http://localhost:51261/docs)
make swagger-serve

# Validates the swagger schema
make swagger-validate

Secret Manager

This service uses Vault for syncing secrets to our app.

The following structure is expected:

  • secret/{VAULT_NAMESPACE}/{environment}/app_tokens
  • secret/{VAULT_NAMESPACE}/{environment}/settings

Contributing

  • Run make test/all before pushing changes.
  • Commit messages should be at most 72 characters long.
  • Commit messages should start with the scope of the changes introduced by the commit.

Contributing to documentation

Run make install_hugo to install hugo, and make docs/serve to launch the hugo server for development.

Troubleshooting

It cannot find go or some packages when executing some make commands

When executing swagger, or protoc, or running make dev (after having run make), it says that those command do not exist...

In golang, the main packages are installed in your go installation bin folder, which defaults to usr/local/go/bin. When installing new packages through make, the binaries are installed in $GOPATH/bin. (How to set GOPATH).

To fix the issue you have make them accessible through the terminal, by adding both of these routes to your $PATH so they are known to your bash environment, i.e editing your .bashrc or .zshrc

export GOPATH=$HOME/go #example of GOPATH directory
export PATH=$PATH:/usr/local/go/bin $PATH:$GOPATH/bin
``

iam's People

Contributors

fallion avatar renovate-bot avatar nglgzz avatar malyborky2 avatar matoous avatar renovate[bot] avatar aexvir avatar aalises avatar janmasarik avatar jonatoni avatar bayotop avatar martin-sucha avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.