Skip to content
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

Support OpenSSH private key format for Git SSH authentication #3103

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Nov 27, 2024

  1. Support OpenSSH private key format for Git SSH authentication

    Fixes rancher#221
    
    Add support for OpenSSH private key format for Git SSH authentication.
    
    * Update `createAuthFromOpts` function in `internal/cmd/cli/gitcloner/cloner.go` to handle OpenSSH private keys.
    * Add logic to read and parse OpenSSH private keys in `createAuthFromOpts` function.
    * Add support for known hosts file handling in `createAuthFromOpts` function.
    * Add fallback to insecure host key callback if known hosts file is not provided.
    * Add logic to handle username and password authentication in `createAuthFromOpts` function.
    
    ---
    
    For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/rancher/fleet/issues/221?shareId=XXXX-XXXX-XXXX-XXXX).
    NameNoQuality committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    2bdceec View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2024

  1. EOF

    NameNoQuality committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    89f0cd3 View commit details
    Browse the repository at this point in the history
  2. Add support for OAuth token authentication in gitcloner command

    * Update `GitCloner` struct to include `OAuthToken` field
    * Update `NewCmd` function to support OAuth token authentication
    * Add `TestArgsAreSetWithOAuthToken` test case to verify OAuth token handling
    NameNoQuality committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    488abac View commit details
    Browse the repository at this point in the history