[RUM] Finish Setup shows the admin-user form to cluster updaters who can't receive the temporary password — every submit fails
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 58/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript
- Área
- authentication, frontend
Línea de trabajo
Start with FinishSetup.tsx, useInstanceResetPasswordMutation.ts, and the permission flow in ClusterHome.tsx and ClusterCardAction. Check how loaded cluster data exposes resetPassword and instance tempPassword, then trace the existing PendingOwnerSetup state. Done means users without a temporary password see that message and are not redirected to the form; verify the affected setup flows with the relevant tests.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What RUM shows
Error: You may not have permission to set the password on this cluster. (@error.source:console, production fabric.harper.fast, /finish-setup).
- 2026-10-26: 3 events in one session, 75 seconds apart. The user submitted the Create Admin User form three times and got the same error each time.
- 2026-09-29: 1 event in a different session.
- Nothing else in the 30-day window. Low volume, but each hit is a user stuck on a newly created cluster.
Stack (prod v2.202.2): mutationFn @ index-*.js → TanStack Mutation.execute, i.e. it is thrown by the guard at the top of onInstanceResetPassword, before any network request.
Root cause
Studio and central manager use two different permission rules for this page.
- Studio's rule for showing the form is cluster
update.ClusterHome.tsx:69-79andClusterCardActionsend any user withupdateinto Finish Setup (useOrganizationClusterPermissions→memberClusterPermissions,src/hooks/usePermissions.ts:131). That includes per-clusterupdategrants and the staff permissioncluster:update. - Central manager's rule for returning
tempPasswordis stricter: super user, org admin, or the staff permissionCLUSTER_CREDENTIALS(canSeeInstanceCredentials, central-managersrc/lib/sharedHelpers.js:135, applied insrc/resources/cluster/Cluster.js:185).
So a member with cluster update who is not an org admin (or a staff account with cluster:update but without CLUSTER_CREDENTIALS) gets the form, but cluster.instances[].tempPassword is missing. FinishSetup.tsx:58 passes tempPassword: undefined and the mutation throws useInstanceResetPasswordMutation.ts:43 on every submit. The form looks usable and gives no hint of who can complete setup.
Suggested fix
Make the two rules agree. On the Studio side, once the cluster has loaded with resetPassword set and no instance has a tempPassword, show the existing PendingOwnerSetup message ("an org admin needs to finish setup") in place of the form. Gating on whether the credential is present, not on a re-implementation of central manager's rule, keeps Studio correct if that rule changes. Also tighten the redirect in ClusterHome/ClusterCardAction so these users are never sent to the form.
Found by the daily Datadog RUM review.
- Lenguaje dominante
- TypeScript
- Estrellas
- 5
- Forks
- 4
- Merge medio
- 1 d 19 h
- PR fusionados (30 d)
- 144
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de HarperFast/studio
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
HarperFast/studio#2070 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
HarperFast/studio#2067 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
HarperFast/studio#2053 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
HarperFast/studio#2026 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
HarperFast/studio#2021 ·
Los mantenedores suelen responder en 2 días
Todos los issues de HarperFast/studio
Issues similares
-
[Bug]: t3 connect status reports "Exposure: enabled" for publish-only links without a tunnelAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
awslabs/visual-asset-management-system#1278 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
mifi/lossless-cut#3213 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 83/100
plasma-umass/scalene#1123 ·
Los mantenedores suelen responder en 1 día