Giter VIP home page Giter VIP logo

kharon's Introduction

๐Ÿš€ https://kharon.app ๐Ÿš€

Reverse Proxy Server with Authentication and Authorization


Overview

This project solves the problem of sharing applications with other people around the world. This way, you can safely create dashboards with private data and share it with specific people without setting up the AuthN/Z yourself.

Kharon is a FastAPI-based reverse proxy server with Google Authentication. It allows you to secure your applications by requiring users to authenticate via their Google accounts before accessing web servers using an SSH tunnel.

Features

  • Google Authentication: Users must log in with their Google accounts to access protected resources.
  • Authorization: Authorize people to access jobs (using Casbin would be a great future implementation for fine-grained AuthZ).
  • FastAPI: Utilizes the FastAPI framework for efficient and fast development.
  • API Key Management: Users can create/delete keys.
  • KharonDaemon (KHD): Small daemon that we can tunnel into with SSH.
    • SSH Server (port 2222)
    • Automatic registration to host
    • Reverse Proxy: Directs incoming requests to the appropriate backend services.

Key idea

The idea is that the proxy is done through an SSH tunnel, making the whole connection secure. A user goes on the website, authenticates themselves and can see jobs linked to their account. They can then access the webpage over the tunnel.

Recipes

  • Gradio App: Launch your own gradio app protected behind a Google Login.
  • Azimuth: Collaborate securely on improving your dataset or model using Azimuth.

Installation

  1. Clone the repository:

    git clone https://github.com/Dref360/shared-science.git
  2. Install the required dependencies:

    poetry install

Configuration

  1. Create a Google Cloud Platform (GCP) project and set up the OAuth 2.0 credentials.

  2. Create a copy of .env.default named .env with your GCP credentials and other configuration settings.

    1. Do the same in webapp/.env

Usage

  1. Start the FastAPI server:

    poetry run fastapi dev kharon/app.py
  2. Start the frontend

    cd webapp && npm install
    npm start
  3. Access the reverse proxy at http://localhost:8000 and follow the Google Authentication flow.

Contributing

Feel free to contribute to the project by opening issues or submitting pull requests. Please make sure to follow the project's code of conduct.

License

This project is licensed under the Apache V2 License - see the LICENSE file for details.

Acknowledgments

Thank you for using Kharon!

kharon's People

Contributors

dref360 avatar

Stargazers

 avatar

Watchers

Parmida Atighehchian avatar  avatar

kharon's Issues

Deploy on GCP

We want a simple setup where FE and BE are hosted as Cloud Run

  • Spin up instances
  • New OAuth tokens
  • Test setup

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.