oauth

Configure oauth2-proxy with Cloudflare Access to gate K3s ingress and admin UIs.

32|5|Updated Oct 6, 2024
One-click install
npx skills add https://github.com/gilesknap/tpi-k3s-ansible --skill oauth-gilesknap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oauth
Source: https://github.com/gilesknap/tpi-k3s-ansible/tree/main/.claude/skills/oauth
Command: npx skills add https://github.com/gilesknap/tpi-k3s-ansible --skill oauth-gilesknap

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

OAuth2-based authentication for K3s clusters exposed behind Cloudflare Access, enabling secure browser-based access to cluster services while avoiding exposed credentials.

Core Features & Use Cases

  • Provides a scalable authentication layer using oauth2-proxy and Dex to gate Kubernetes services via ingress.
  • Integrates with Cloudflare Access to enforce browser-based authentication for dashboards and apps, including ArgoCD and Open Web UI.
  • Includes practical guidance for MCP server exceptions, token lifecycle, and secure secret handling in Kubernetes environments.

Quick Start

Configure oauth2-proxy with Cloudflare Access for your Kubernetes ingresses and validate authenticated sessions against the configured IdP.

Frequently Asked Questions about oauth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure OAuth2-proxy authentication for a K3s cluster?

Configure OAuth2-proxy authentication for a K3s cluster by wiring oauth2-proxy behind Cloudflare Access to gate ingress and admin UIs. This setup enforces secure browser-based access to Kubernetes dashboards and services.

Can I use Cloudflare Access with ArgoCD and Open Web UI on Kubernetes?

Yes, you can use Cloudflare Access with ArgoCD and Open Web UI on Kubernetes. The integration enforces browser-based authentication for dashboards and apps by routing traffic through oauth2-proxy to gate ingress securely.

How does Dex integrate with oauth2-proxy for Kubernetes ingress?

Dex integrates with oauth2-proxy by providing identity federation for Kubernetes ingress. This combination validates authenticated sessions against the configured IdP, ensuring secure browser-based access to cluster services.

What are the considerations for MCP server exceptions when using oauth2-proxy?

Considerations for MCP server exceptions when using oauth2-proxy include managing token lifecycle and applying secure secret handling in Kubernetes environments. The configuration provides specific guidance for these exceptions to maintain security.

How do I handle 401 response headers and secure secrets for Kubernetes ingress?

Handle 401 response headers and secure secrets for Kubernetes ingress by enforcing correct 401 response headers and applying secure secret handling practices. This ensures safe credential management across cluster services.

Is oauth2-proxy the best way to gate access to Kubernetes dashboards behind Cloudflare?

Using oauth2-proxy is a scalable way to gate access to Kubernetes dashboards behind Cloudflare. It provides a dedicated authentication layer that integrates with Dex to avoid exposed credentials while securing browser-based access.