Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

paulsc54
Copy link

Revise oauth2-proxy ingress-nginx integration guide: recommend minimal configuration, remove Lua block, clarify advanced scenarios

Description

This PR updates the integration guide for oauth2-proxy with ingress-nginx in Kubernetes. It now recommends the minimal configuration using only the auth-url and auth-signin annotations. The previous Lua block example has been removed, as it did not work reliably in practice despite following nginx documentation and extensive testing. The guide now clearly states that the official ingress-nginx external auth example is the recommended approach for most users. Advanced Lua/cookie handling is noted as only necessary for rare, advanced scenarios.

Motivation and Context

This change is required to prevent confusion and errors for users integrating oauth2-proxy with ingress-nginx. The minimal configuration is proven to work in real-world setups, while the Lua block approach was unreliable. This update aligns the documentation with best practices and the official ingress-nginx example.

How Has This Been Tested?

The minimal configuration was tested extensively in multiple Kubernetes environments with ingress-nginx and oauth2-proxy. All authentication flows worked as expected. The Lua block was tested but consistently failed due to runtime errors and cookie handling issues.

Checklist:

  • My change requires a change to the documentation or CHANGELOG.
  • I have updated the documentation/CHANGELOG accordingly.
  • I have created a feature (non-master) branch for my PR.
  • I have written tests for my code changes.

…for oauth2-proxy

This PR revises the integration guide for oauth2-proxy with ingress-nginx in Kubernetes:

Recommends the minimal configuration: just auth-url and auth-signin annotations.
Removes the Lua block example, as it did not work in practice despite following nginx documentation and extensive testing.
Clearly states that the official ingress-nginx external auth example is the recommended approach for most users.
Notes that advanced Lua/cookie handling is only needed for rare, advanced scenarios.
@paulsc54 paulsc54 requested a review from a team as a code owner September 23, 2025 14:21
@github-actions github-actions bot added the docs label Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant