-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: adds ssh implementation #34
base: main
Are you sure you want to change the base?
Conversation
Dependency ReviewThe following issues were found:
License Issuespackage-lock.json
Allowed Licenses: MIT, MIT-0, Apache-2.0, BSD-3-Clause, BSD-3-Clause-Clear, ISC, BSD-2-Clause, Unlicense, CC0-1.0, 0BSD, X11, MPL-2.0, MPL-1.0, MPL-1.1, MPL-2.0, Zlib Excluded from license check: pkg:npm/caniuse-lite OpenSSF Scorecard
Scanned Files
|
@@ -19,30 +19,35 @@ | |||
* @param {string} password The password to use for the login | |||
*/ | |||
async function login(username, password) { | |||
console.log('Login', { username, password, baseUrl }); |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information High
an access to password
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 26 days ago
To fix the problem, we need to ensure that sensitive information such as passwords is not logged in clear text. Instead of logging the password, we can log a placeholder or omit it entirely. This way, we can still log useful information for debugging purposes without exposing sensitive data.
The best way to fix this issue is to modify the logging statement on line 22 to exclude the password. We can log the username and baseUrl, but replace the password with a placeholder like '****' or omit it entirely.
-
Copy modified line R22
@@ -21,3 +21,3 @@ | ||
async function login(username, password) { | ||
console.log('Login', { username, password, baseUrl }); | ||
console.log('Login', { username, baseUrl, password: '****' }); | ||
try { |
This pull request introduces SSH support for Git operations and includes various updates to the configuration, authentication, and command-line interface. The most important changes are grouped by theme below.
SSH Support
SSH.md
.config.schema.json
to include SSH configuration options and thegitProtocol
setting. [1] [2]packages/git-proxy-cli/index.js
andsrc/cli/ssh-key.js
. [1] [2] [3]Configuration Updates
proxy.config.json
to include SSH settings and update thegitProtocol
to support SSH. [1] [2]src/config/index.js
to handle SSH configuration and thegitProtocol
setting. [1] [2] [3]Database Enhancements
Dependency Updates
ssh2
library topackage.json
to support SSH operations.Logging and Debugging
login
function and added logging for SSH key actions inpackages/git-proxy-cli/index.js
. [1] [2] [3]