Traefik Ingress Integration with SSO
blog.mariom.pl
external-link
There is an easy way to use base-auth for “securing” ingress access in Traefik, but, well - it’s base auth. It’s not that secure nor easy / nice to use in browsers, especially on mobile devices. So for long time, I was thinking how to integrate Traefik Ingress with an SSO (Single Sign-On) solution. Prerequisites You will need some kind of SSO provider. I’m using Forgejo (a fork of Gitea). I didn’t need anything fancy, and I already had Gitea working, which had the OAuth2 provider out of the box.

Short guide how to use traefik-forward-auth to use SSO for any traefik ingress, so even simple dashboard with your self-hosted services can be hidden behind login.

Guide uses Forgejo / Gitea as OAuth2 provider, but you can go with whatever you already use.

redcalcium
link
fedilink
English
2
edit-2
1Y

This is great if you’re already using traefik ingress. Seems to be really easy to use after the initial setup. oauth2-proxy is another good project if you want to secure your endpoint regardless your ingress type.

@Fenzik@lemmy.ml
link
fedilink
English
11Y

Is it just me or is the link missing from this post? Using memmy on iOS

@reflex_aliens@lemmy.ml
link
fedilink
English
11Y

I see the link on Mlem.

brettrick
link
fedilink
11Y

@Fenzik I noticed the same thing. If you go back out to the feed, you can see the link from there.

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

  • 1 user online
  • 136 users / day
  • 427 users / week
  • 1.16K users / month
  • 3.85K users / 6 months
  • 1 subscriber
  • 3.68K Posts
  • 74.2K Comments
  • Modlog