Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Aug 31, 2025

Investigation of issue: check if handle_errors works with forward_auth in Caddy

Plan:

  • Understand the current issue with handle_errors and forward_auth
  • Research Caddy documentation for forward_auth and handle_errors interaction
  • Test the current behavior to confirm the issue
  • Determine if this is a configuration issue or a Caddy limitation
  • Update documentation if needed or fix configuration
  • Create focused tests to validate the fix

The issue claims that Caddy's handle_errors directive doesn't work when forward_auth is used, making the README examples incorrect. Need to verify this behavior and either fix the configuration or update documentation accordingly.

Fixes #1.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Aug 31, 2025
Copy link
Contributor Author

Copilot AI commented Aug 31, 2025

@FarisZR 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

@FarisZR
Copy link
Owner

FarisZR commented Aug 31, 2025

@copilot use the integration test environment under dev for testing this.
if using handle is possible with forward_auth, then update the docs.
if not remove any examples using handle_error and other handle directives.

@FarisZR
Copy link
Owner

FarisZR commented Aug 31, 2025

@copilot general details are available under agents.md and docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

check if handle works in caddy when forward_auth is used

2 participants