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

Switch to login callback for local development & deployment server #1123

Merged
merged 11 commits into from
Feb 27, 2024

Conversation

LukasKalbertodt
Copy link
Member

@LukasKalbertodt LukasKalbertodt commented Feb 27, 2024

This PR changes our local dev setup and the test deployment to using login-callbacks instead of the old "login-proxy" way of handling auth. The main motivation behind that is that it makes for an easier setup in #1093, but this also makes some things simpler (e.g. nginx config) and our docs already recommend callbacks over auth headers.

To switch over, this PR adds support for unix domain sockets (UDS) for login/auth handlers. It also updates authkit to work with the new auth setups. Finally, there are also improvements and fixes for a few other minor things. See commits for more detail.

Once this is merged, I would add hints about authkit to the docs again and then release authkit as 0.2.0.

@LukasKalbertodt LukasKalbertodt added the changelog:dev Changes primarily for developers label Feb 27, 2024
@github-actions github-actions bot temporarily deployed to test-deployment-pr1123 February 27, 2024 12:02 Destroyed
This makes the setup a bit simpler. This also enables easier setup of
isolated Playwright tests.
How to specify UDS in a URL is non-standardized at all. Also see
github.com/whatwg/url issue elan-ev#577. We used one option that seems to be
reasonable and used by others. Currently does not support paths with `]`
yet, which can be supported by percent-encoding that.
@github-actions github-actions bot temporarily deployed to test-deployment-pr1123 February 27, 2024 12:19 Destroyed
@LukasKalbertodt LukasKalbertodt marked this pull request as ready for review February 27, 2024 12:23
@LukasKalbertodt LukasKalbertodt added the changelog:admin Changes primarily for admins label Feb 27, 2024
Copy link
Member

@owi92 owi92 left a comment

Choose a reason for hiding this comment

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

Tested this and it works fine. Codewise as always no complaints from me, just a tiny doc comment thing.

util/scripts/start-dev.sh Outdated Show resolved Hide resolved
@github-actions github-actions bot temporarily deployed to test-deployment-pr1123 February 27, 2024 15:18 Destroyed
@owi92 owi92 merged commit 9fa684b into elan-ev:master Feb 27, 2024
6 checks passed
@LukasKalbertodt LukasKalbertodt deleted the switch-to-login-callback branch February 27, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:admin Changes primarily for admins changelog:dev Changes primarily for developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants