Commit 5784b77
committed
feat: Separate SSH credentials from repository configuration (#1)
BREAKING CHANGE: Major refactoring of SSH key management for improved security
- Move SSH key configuration from dependencies.json to separate git_credentials.json file
- SSH keys are now mapped by hostname instead of per-repository
- Remove "SSH Key Path" field from repository and submodule configurations
- Remove "Submodule Config" section entirely (submodules are auto-discovered)
- Rename -Debug parameter to -EnableDebug to avoid PowerShell conflicts
New features:
- Add -CredentialsFile parameter for specifying custom credentials file
- Implement automatic hostname extraction from repository URLs
- Support multiple URL formats: git@, ssh://, https://
- Add comprehensive debug logging for hostname extraction and key lookup
Security improvements:
- Repository configurations can now be safely committed to version control
- User-specific credentials are kept in a separate, gitignore-able file
- Better separation of concerns between configuration and authentication
Technical improvements:
- Fix hostname extraction for SSH URLs with usernames and ports
- Improve debug logging throughout the credential lookup process
- Simplify codebase by removing manual submodule configuration
This change allows teams to share repository configurations without exposing
personal SSH key paths, making the tool more suitable for collaborative
environments.
Closes #11 parent f9940c5 commit 5784b77
File tree
5 files changed
+337
-122
lines changed5 files changed
+337
-122
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
8 | 29 | | |
9 | 30 | | |
10 | 31 | | |
| |||
0 commit comments