Skip to content

feat: project picker in login flow + credential leak fix#119

Merged
IyadhKhalfallah merged 1 commit intomainfrom
feat/project-picker
Apr 12, 2026
Merged

feat: project picker in login flow + credential leak fix#119
IyadhKhalfallah merged 1 commit intomainfrom
feat/project-picker

Conversation

@IyadhKhalfallah
Copy link
Copy Markdown
Owner

Summary

  • Project picker: clauditor login now fetches projects from the hub and lets the developer choose which one to sync to. Admins create projects via the dashboard.
  • Credential leak fix: normalizeGitUrl now strips all credentials before @ (not just git@). Prevents PATs embedded in remote URLs from leaking as project names.
  • Stored project hash: Config stores projectId, projectName, projectHash from the picker. resolveHubContext uses stored hash, falls back to git-derived hash for backward compat.

Test plan

  • clauditor login shows project list and lets user pick
  • If no projects exist, shows error directing to dashboard
  • Remote URL with embedded PAT normalizes correctly (no credential in project name)
  • Existing users without projectHash in config still work (backward compat)

- Login flow now fetches projects from hub and shows a picker
- Developers select from existing projects (admins create via dashboard)
- Stores projectId, projectName, projectHash in config
- resolveHubContext uses stored projectHash (no git URL dependency)
- SECURITY: normalizeGitUrl strips all credentials before @ (fixes PAT leak in project names)
@IyadhKhalfallah IyadhKhalfallah merged commit 4ad1c48 into main Apr 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant