Skip to content

Commit 9d6ce93

Browse files
ZhaoJiSenOmX
andcommitted
Require temporary credentials for authorized accounts without stored secrets
Prompt for one-time passwords or SSH private keys when an authorized account has no stored secret. Route quick-connect and reconnect entry points through setup before requesting a token, while keeping entered secrets out of saved preferences. Constraint: Existing admin session setup cannot preserve admin authority; require an explicit error for that URL path. Constraint: The repository hook formats unrelated worktree changes and runs local-listen Web Proxy tests, so this scoped commit uses manual verification. Confidence: high Scope-risk: moderate Tested: 995 Web tests, lint, Web and Electron typechecks, staged format and diff checks. Not-tested: Web Proxy tests were not rerun after the user excluded them. Related: jumpserver/jumpserver#17614 Co-authored-by: OmX <omx@oh-my-codex.dev>
1 parent 1aecdab commit 9d6ce93

34 files changed

Lines changed: 859 additions & 201 deletions

‎i18n/locales/en.json‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,12 @@
11601160
"Manual": "Manual accounts",
11611161
"Username": "Username",
11621162
"Password": "Password",
1163+
"Token": "Token",
1164+
"CredentialType": "Credential type",
1165+
"SshKey": "SSH private key",
1166+
"PasteSshKey": "Paste an SSH private key",
1167+
"ChooseSshKeyFile": "Choose key file",
1168+
"ReadSshKeyFailed": "Could not read the selected key file",
11631169
"DynamicUser": "Dynamic user",
11641170
"ManualInput": "Manual input",
11651171
"Anonymous": "Anonymous",
@@ -1171,6 +1177,7 @@
11711177
"UpdatePersonalCredential": "Update saved password",
11721178
"CancelPersonalCredentialUpdate": "Cancel password update",
11731179
"UseSavedPassword": "The saved password will be used",
1180+
"UseSavedSecret": "The saved credential will be used",
11741181
"LoadPersonalCredentialsFailed": "Saved credentials could not be loaded. You can still enter one manually.",
11751182
"ShowPassword": "Show password",
11761183
"HidePassword": "Hide password"

‎i18n/locales/es.json‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,12 @@
11601160
"Manual": "Cuentas manuales",
11611161
"Username": "Nombre de usuario",
11621162
"Password": "Contraseña",
1163+
"Token": "Token",
1164+
"CredentialType": "Credential type",
1165+
"SshKey": "SSH private key",
1166+
"PasteSshKey": "Paste an SSH private key",
1167+
"ChooseSshKeyFile": "Choose key file",
1168+
"ReadSshKeyFailed": "Could not read the selected key file",
11631169
"DynamicUser": "Usuario dinámico",
11641170
"ManualInput": "Entrada manual",
11651171
"Anonymous": "Anónimo",
@@ -1171,6 +1177,7 @@
11711177
"UpdatePersonalCredential": "Actualizar la contraseña guardada",
11721178
"CancelPersonalCredentialUpdate": "Cancelar la actualización de contraseña",
11731179
"UseSavedPassword": "Se utilizará la contraseña guardada",
1180+
"UseSavedSecret": "The saved credential will be used",
11741181
"LoadPersonalCredentialsFailed": "No se pudieron cargar las credenciales guardadas. Aún puede introducir una manualmente.",
11751182
"ShowPassword": "Mostrar contraseña",
11761183
"HidePassword": "Ocultar contraseña"

‎i18n/locales/fr.json‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,12 @@
11601160
"Manual": "Comptes manuels",
11611161
"Username": "Nom d'utilisateur",
11621162
"Password": "Mot de passe",
1163+
"Token": "Token",
1164+
"CredentialType": "Credential type",
1165+
"SshKey": "SSH private key",
1166+
"PasteSshKey": "Paste an SSH private key",
1167+
"ChooseSshKeyFile": "Choose key file",
1168+
"ReadSshKeyFailed": "Could not read the selected key file",
11631169
"DynamicUser": "Utilisateur dynamique",
11641170
"ManualInput": "Saisie manuelle",
11651171
"Anonymous": "Anonyme",
@@ -1171,6 +1177,7 @@
11711177
"UpdatePersonalCredential": "Modifier le mot de passe enregistré",
11721178
"CancelPersonalCredentialUpdate": "Annuler la modification du mot de passe",
11731179
"UseSavedPassword": "Le mot de passe enregistré sera utilisé",
1180+
"UseSavedSecret": "The saved credential will be used",
11741181
"LoadPersonalCredentialsFailed": "Impossible de charger les identifiants enregistrés. Vous pouvez toujours en saisir un manuellement.",
11751182
"ShowPassword": "Afficher le mot de passe",
11761183
"HidePassword": "Masquer le mot de passe"

‎i18n/locales/ja.json‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,12 @@
11601160
"Manual": "手動アカウント",
11611161
"Username": "ユーザー名",
11621162
"Password": "パスワード",
1163+
"Token": "Token",
1164+
"CredentialType": "Credential type",
1165+
"SshKey": "SSH private key",
1166+
"PasteSshKey": "Paste an SSH private key",
1167+
"ChooseSshKeyFile": "Choose key file",
1168+
"ReadSshKeyFailed": "Could not read the selected key file",
11631169
"DynamicUser": "動的ユーザー",
11641170
"ManualInput": "手動入力",
11651171
"Anonymous": "匿名",
@@ -1171,6 +1177,7 @@
11711177
"UpdatePersonalCredential": "保存済みパスワードを更新",
11721178
"CancelPersonalCredentialUpdate": "パスワード更新をキャンセル",
11731179
"UseSavedPassword": "保存済みのパスワードを使用します",
1180+
"UseSavedSecret": "The saved credential will be used",
11741181
"LoadPersonalCredentialsFailed": "保存済みの認証情報を読み込めませんでした。手動入力は引き続き利用できます。",
11751182
"ShowPassword": "パスワードを表示",
11761183
"HidePassword": "パスワードを非表示"

‎i18n/locales/ko.json‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,12 @@
11601160
"Manual": "수동 계정",
11611161
"Username": "사용자 이름",
11621162
"Password": "비밀번호",
1163+
"Token": "Token",
1164+
"CredentialType": "Credential type",
1165+
"SshKey": "SSH private key",
1166+
"PasteSshKey": "Paste an SSH private key",
1167+
"ChooseSshKeyFile": "Choose key file",
1168+
"ReadSshKeyFailed": "Could not read the selected key file",
11631169
"DynamicUser": "동적 사용자",
11641170
"ManualInput": "직접 입력",
11651171
"Anonymous": "익명",
@@ -1171,6 +1177,7 @@
11711177
"UpdatePersonalCredential": "저장된 비밀번호 업데이트",
11721178
"CancelPersonalCredentialUpdate": "비밀번호 업데이트 취소",
11731179
"UseSavedPassword": "저장된 비밀번호를 사용합니다",
1180+
"UseSavedSecret": "The saved credential will be used",
11741181
"LoadPersonalCredentialsFailed": "저장된 자격 증명을 불러오지 못했습니다. 계속 직접 입력할 수 있습니다.",
11751182
"ShowPassword": "비밀번호 표시",
11761183
"HidePassword": "비밀번호 숨기기"

‎i18n/locales/pt_br.json‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,12 @@
11601160
"Manual": "Contas manuais",
11611161
"Username": "Nome de usuário",
11621162
"Password": "Senha",
1163+
"Token": "Token",
1164+
"CredentialType": "Credential type",
1165+
"SshKey": "SSH private key",
1166+
"PasteSshKey": "Paste an SSH private key",
1167+
"ChooseSshKeyFile": "Choose key file",
1168+
"ReadSshKeyFailed": "Could not read the selected key file",
11631169
"DynamicUser": "Usuário dinâmico",
11641170
"ManualInput": "Entrada manual",
11651171
"Anonymous": "Anônimo",
@@ -1171,6 +1177,7 @@
11711177
"UpdatePersonalCredential": "Atualizar a senha salva",
11721178
"CancelPersonalCredentialUpdate": "Cancelar atualização de senha",
11731179
"UseSavedPassword": "A senha salva será usada",
1180+
"UseSavedSecret": "The saved credential will be used",
11741181
"LoadPersonalCredentialsFailed": "Não foi possível carregar as credenciais salvas. Você ainda pode inserir uma manualmente.",
11751182
"ShowPassword": "Mostrar senha",
11761183
"HidePassword": "Ocultar senha"

‎i18n/locales/ru.json‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,12 @@
11601160
"Manual": "Ручные учетные записи",
11611161
"Username": "Имя пользователя",
11621162
"Password": "Пароль",
1163+
"Token": "Token",
1164+
"CredentialType": "Credential type",
1165+
"SshKey": "SSH private key",
1166+
"PasteSshKey": "Paste an SSH private key",
1167+
"ChooseSshKeyFile": "Choose key file",
1168+
"ReadSshKeyFailed": "Could not read the selected key file",
11631169
"DynamicUser": "Динамический пользователь",
11641170
"ManualInput": "Ручной ввод",
11651171
"Anonymous": "Анонимно",
@@ -1171,6 +1177,7 @@
11711177
"UpdatePersonalCredential": "Обновить сохраненный пароль",
11721178
"CancelPersonalCredentialUpdate": "Отменить обновление пароля",
11731179
"UseSavedPassword": "Будет использован сохраненный пароль",
1180+
"UseSavedSecret": "The saved credential will be used",
11741181
"LoadPersonalCredentialsFailed": "Не удалось загрузить сохраненные учетные данные. Вы по-прежнему можете ввести их вручную.",
11751182
"ShowPassword": "Показать пароль",
11761183
"HidePassword": "Скрыть пароль"

‎i18n/locales/vi.json‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,12 @@
11601160
"Manual": "Tài khoản thủ công",
11611161
"Username": "Tên người dùng",
11621162
"Password": "Mật khẩu",
1163+
"Token": "Token",
1164+
"CredentialType": "Credential type",
1165+
"SshKey": "SSH private key",
1166+
"PasteSshKey": "Paste an SSH private key",
1167+
"ChooseSshKeyFile": "Choose key file",
1168+
"ReadSshKeyFailed": "Could not read the selected key file",
11631169
"DynamicUser": "Người dùng động",
11641170
"ManualInput": "Nhập thủ công",
11651171
"Anonymous": "Ẩn danh",
@@ -1171,6 +1177,7 @@
11711177
"UpdatePersonalCredential": "Cập nhật mật khẩu đã lưu",
11721178
"CancelPersonalCredentialUpdate": "Hủy cập nhật mật khẩu",
11731179
"UseSavedPassword": "Mật khẩu đã lưu sẽ được sử dụng",
1180+
"UseSavedSecret": "The saved credential will be used",
11741181
"LoadPersonalCredentialsFailed": "Không thể tải thông tin xác thực đã lưu. Bạn vẫn có thể nhập thủ công.",
11751182
"ShowPassword": "Hiện mật khẩu",
11761183
"HidePassword": "Ẩn mật khẩu"

‎i18n/locales/zh.json‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,12 @@
11601160
"Manual": "手动账号",
11611161
"Username": "用户名",
11621162
"Password": "密码",
1163+
"Token": "令牌",
1164+
"CredentialType": "凭据类型",
1165+
"SshKey": "SSH 私钥",
1166+
"PasteSshKey": "粘贴 SSH 私钥",
1167+
"ChooseSshKeyFile": "选择密钥文件",
1168+
"ReadSshKeyFailed": "无法读取所选密钥文件",
11631169
"DynamicUser": "同名账号",
11641170
"ManualInput": "手动输入",
11651171
"Anonymous": "匿名账号",
@@ -1171,6 +1177,7 @@
11711177
"UpdatePersonalCredential": "更新已保存密码",
11721178
"CancelPersonalCredentialUpdate": "取消更新密码",
11731179
"UseSavedPassword": "将使用已保存的密码",
1180+
"UseSavedSecret": "将使用已保存的凭据",
11741181
"LoadPersonalCredentialsFailed": "无法加载已保存凭据,仍可手动输入。",
11751182
"ShowPassword": "显示密码",
11761183
"HidePassword": "隐藏密码"

‎i18n/locales/zh_hant.json‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,12 @@
11601160
"Manual": "手動帳號",
11611161
"Username": "使用者名稱",
11621162
"Password": "密碼",
1163+
"Token": "Token",
1164+
"CredentialType": "Credential type",
1165+
"SshKey": "SSH private key",
1166+
"PasteSshKey": "Paste an SSH private key",
1167+
"ChooseSshKeyFile": "Choose key file",
1168+
"ReadSshKeyFailed": "Could not read the selected key file",
11631169
"DynamicUser": "同名帳號",
11641170
"ManualInput": "手動輸入",
11651171
"Anonymous": "匿名帳號",
@@ -1171,6 +1177,7 @@
11711177
"UpdatePersonalCredential": "更新已儲存密碼",
11721178
"CancelPersonalCredentialUpdate": "取消更新密碼",
11731179
"UseSavedPassword": "將使用已儲存的密碼",
1180+
"UseSavedSecret": "The saved credential will be used",
11741181
"LoadPersonalCredentialsFailed": "無法載入已儲存憑據,仍可手動輸入。",
11751182
"ShowPassword": "顯示密碼",
11761183
"HidePassword": "隱藏密碼"

0 commit comments

Comments
 (0)