-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Harden OIDC migration and make optional
This commit hardens the migration part of the OIDC from the old username based approach to the new sub based approach and makes it possible for the operator to opt out entirely. Fixes #1990 Signed-off-by: Kristoffer Dalby <[email protected]>
- Loading branch information
Showing
3 changed files
with
27 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -369,12 +369,18 @@ unix_socket_permission: "0770" | |
# allowed_users: | ||
# - [email protected] | ||
# | ||
# # If `strip_email_domain` is set to `true`, the domain part of the username email address will be removed. | ||
# # This will transform `[email protected]` to the user `first-name.last-name` | ||
# # If `strip_email_domain` is set to `false` the domain part will NOT be removed resulting to the following | ||
# user: `first-name.last-name.example.com` | ||
# | ||
# strip_email_domain: true | ||
# # Map legacy users from pre-0.24.0 versions of headscale to the new OIDC users | ||
# # by taking the username from the legacy user and matching it with the username | ||
# # provided by the OIDC. This is useful when migrating from legacy users to OIDC | ||
# # to force them using the unique identifier from the OIDC and to give them a | ||
# # proper display name and picture if available. | ||
# # Note that this will only work if the username from the legacy user is the same | ||
# # and ther is a posibility for account takeover should a username have changed | ||
# # with the provider. | ||
# # Disabling this feature will cause all new logins to be created as new users. | ||
# # Note this option will be removed in the future and should be set to false | ||
# # on all new installations, or when all users have logged in with OIDC once. | ||
# map_legacy_users: true | ||
|
||
# Logtail configuration | ||
# Logtail is Tailscales logging and auditing infrastructure, it allows the control panel | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters