tvl-depot/web
Vincent Ambo c1bddf191f feat(web/panettone): Implement OAuth2-based authentication
Instead of directly connecting to LDAP and attempting to bind
usernames/password, authenticate users through an OAuth2 flow to
Keycloak.

This has the advantage of reusing the same SSO we already have for
Gerrit, Buildkite, ...

However, much of panettone's functionality makes assumptions about
LDAP being used. As a result there are some warts introduced by
this (for now):

* Since LDAP DNs are used as primary keys for users, we have to
  construct fake DNs based on LDAP usernames

  It might be sensible to migrate this to the UUIDs used by Keycloak
  eventually.

* LDAP is part of the serving path for issues (for fetching user
  information), however panettone no longer has a way to fetch
  arbitrary user information unless it is persisted in its database.

  To work around this, we construct a "fake" user based only on its
  DN (i.e. only the username is going to be "correct") and use that to
  serve issues.

* Email notifications no longer work (panettone can not access email
  addresses)

Some of these need to be worked around by persisting some of that
information in the panettone database instead, as we don't want to
give the service the ability to access arbitrary user information
anymore.

We can probably do this with the user settings feature that already
exists and populate it on launch, but as of this commit email and
displayName functionality is simply broken.

Change-Id: Id32bf5e09d67f0f1e883024c6e013eb342f03b05
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5772
Reviewed-by: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
2022-05-28 18:00:02 +00:00
..
atom-feed style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
atward chore(atward): Bump dependencies 2022-04-17 13:16:34 +00:00
blog style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
bubblegum style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
converse chore(web/converse): Bump dependencies 2022-04-17 13:16:34 +00:00
panettone feat(web/panettone): Implement OAuth2-based authentication 2022-05-28 18:00:02 +00:00
static style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
todolist style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
tvl style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00