Repository navigation
feat: per-user SFTP username, display name by default - #1089
Conversation
SSO accounts are named by their email address. The SFTP login now also resolves a display name that exactly one account has; panel usernames always win and a shared display name resolves to nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. WalkthroughSFTP login now resolves the validated base username to a panel username. Exact username matches take precedence; otherwise, a display name resolves only when exactly one account matches. Tests and documentation describe these rules. ChangesSFTP Login Resolution
Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Possibly related issues
Possibly related PRs
Suggested labels: Merge Risk:
|
CI Report - edeaaabrun 45302978348 - attempt 1 0 failed - 26 passed - 7 skipped - 40m14s elapsed Test selection: partial - per-suite table Coverage
Changed
Slowest jobs
e2e buckets run
|
Each user gets an SFTP username (FR-005a): the display name when no other account holds it, otherwise the panel username, and a name the user can choose with PUT /users/me/sftp/login-name. The login matches chosen names, then panel usernames, then default display names. Spec 040 amended. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
…40 T058) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
Shows the SFTP username with a Default or Custom tag, builds the login forms from it, and lets the user choose another name or reset to the default (spec 040 T059). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
Summary
SSO accounts are named by their email address, so SFTP logins had to type it. Each user now has an SFTP username (spec 040 FR-005a, amended here):
/or+, at most 64 characters) and no other account has it as username, SFTP username or display name. Otherwise the panel username.PUT /users/me/sftp/login-name;""resets to the default). A name another account holds is refused (409server.sftp.login_name_taken), an invalid one with 400server.sftp.login_name_invalid.GET /users/me/sftpaddsloginNameandcustomLoginName;usernamestays the panel username.Changes
027_sftp_login_name.sql:users.sftp_usernamewith a unique index.api/internal/auth/sftp_login_name.go: default rule, set, resolve.design.fig, export updated).docs/sftp.md,api/specs.md.Tests
New:
api/internal/auth/sftp_login_name_test.go,api/internal/handlers/sftp_login_display_name_test.go, five new cases inweb/src/routes/ProfileSftp.test.tsx. One existing fixture (selfBody) gained the two new response fields. A blind peer review rated it purely additive (no weakening, no deletion).Generated by Claude Code