Skip to content

This project shows how to use OAuth2 Proxy, GitHub OAuth Apps and Ingress to route traffic.

License

Notifications You must be signed in to change notification settings

andredesousa/ingress-oauth2-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OAuth2 Proxy with Ingress

This project shows how to use OAuth2 Proxy, GitHub OAuth Apps and NGINX Ingress Controller to route traffic.

Overview

Many application do not provide built-in authentication or access control out-of-the-box. Due to the sensitive data these applications process, this can be a major problem and it is often necessary to provide some type of security.

OAuth2 Proxy is a reverse proxy that sits in front of your application and handles the complexities of OpenID Connect/OAuth 2.0 for you.

OAuth2 Proxy provides authentication using providers (GitHub, Google, and others) to validate accounts by email, domain or group.

Prerequisites

Follow the next instructions to configure and run the project on your local machine:

  • Install, at least, Helm, minikube and Docker.
  • Install required charts with helm dependency update command.
  • Register a new GitHub App to allow the access to GitHub OAuth Apps.
  • Replace the following variables in the values.yaml file:
    • OAUTH2_PROXY_CLIENT_ID
    • OAUTH2_PROXY_CLIENT_SECRET
    • OAUTH2_PROXY_COOKIE_SECRET
    • OAUTH2_PROXY_DOMAIN

GitHub OAuth Apps

Before you begin, you’ll need a free GitHub developer account. Go to https://github.com/settings/developers and register a new OAuth application.

Deploying

You can deploy to your cluster using helm install [chart-name] [chart-folder-name] command. Replacing the missing values, the command is:

helm install oauth2-demo .

If you want to uninstall use helm uninstall oauth2-demo command.

The helm list command list all releases in your cluster. To see the status of your release use helm status [release-name] command.

References

For further reference, please consider the following articles:

About

This project shows how to use OAuth2 Proxy, GitHub OAuth Apps and Ingress to route traffic.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published