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

View File

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

View File

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