chore: v0.5.10

This commit is contained in:
Aarnav Tale 2025-04-03 23:44:19 -04:00
parent 66c7d9a327
commit fe2d7cb57a
No known key found for this signature in database
5 changed files with 55 additions and 44 deletions

View File

@ -1,3 +1,6 @@
### 0.5.10 (April 4, 2025)
- Fix an issue where other prefernences to skip onboarding affected every user.
### 0.5.9 (April 3, 2025)
- Filter out empty users from the pre-auth keys page which could possibly cause a crash with unmigrated users.
- OIDC users cannot be renamed, so that functionality has been disabled in the menu options.

View File

@ -36,6 +36,12 @@ export async function loader({
if (context.oidc && !request.url.endsWith('/onboarding')) {
let onboarded = false;
const sessionUser = session.get('user');
if (sessionUser) {
if (context.sessions.onboardForSubject(sessionUser.subject)) {
// Assume onboarded
onboarded = true;
} else {
try {
const { users } = await context.client.get<{ users: User[] }>(
'v1/user',
@ -79,6 +85,8 @@ export async function loader({
log.debug('api', 'Failed to lookup users %o', e);
onboarded = true;
}
}
}
if (!onboarded) {
return redirect('/onboarding');

View File

@ -34,7 +34,7 @@ Here is what a sample Docker Compose deployment would look like:
services:
headplane:
# I recommend you pin the version to a specific release
image: ghcr.io/tale/headplane:0.5.9
image: ghcr.io/tale/headplane0.5.10:
container_name: headplane
restart: unless-stopped
ports:
@ -151,7 +151,7 @@ spec:
serviceAccountName: default
containers:
- name: headplane
image: ghcr.io/tale/headplane:0.5.9
image: ghcr.io/tale/headplane0.5.10:
env:
# Set these if the pod name for Headscale is not static
# We will use the downward API to get the pod name instead

View File

@ -19,7 +19,7 @@ Here is what a sample Docker Compose deployment would look like:
services:
headplane:
# I recommend you pin the version to a specific release
image: ghcr.io/tale/headplane:0.5.9
image: ghcr.io/tale/headplane0.5.10:
container_name: headplane
restart: unless-stopped
ports:

View File

@ -2,7 +2,7 @@
"name": "headplane",
"private": true,
"sideEffects": false,
"version": "0.5.9",
"version": "0.5.10",
"type": "module",
"scripts": {
"build": "react-router build",