Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Plane to delegate auth #804

Merged
merged 4 commits into from
Aug 30, 2024
Merged

Conversation

paulgb
Copy link
Member

@paulgb paulgb commented Aug 29, 2024

Adds forward_auth config option (name borrowed from Caddy). If provided, requests to /ctrl/* are forwarded to that URL first (after stripping the body). If that URL returns a 200, Plane proceeds; otherwise they are rejected.

Copy link

vercel bot commented Aug 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
plane ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 30, 2024 1:38am

Copy link
Member

@rolyatmax rolyatmax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@paulgb paulgb merged commit fffed4e into main Aug 30, 2024
6 checks passed
@paulgb paulgb deleted the paul/dis-2536-allow-plane-to-delegate-auth branch August 30, 2024 01:43
@michaelsilver michaelsilver mentioned this pull request Aug 30, 2024
michaelsilver added a commit that referenced this pull request Aug 30, 2024
Changes introduced in previous PR:
#804
@paulgb paulgb mentioned this pull request Sep 10, 2024
paulgb added a commit that referenced this pull request Sep 10, 2024
We currently use `/ctrl/status` as a health check endpoint. The
introduction of auth delegation (#804) applies, when enabled, to all
`/ctrl` endpoints, including the health check. That means that the
health checker needs to have credentials.

Instead, this adds a separate health check endpoint `/pub/health` which
is part of the `/pub` path, which is not credentialed. This does not
include the version information returned by the `/ctrl/status` endpoint,
but does a health check.
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.

2 participants