argoproj / argoproj/argo-workflows

add .netrc support for git artifacts

Open
#8,879 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
17k
Forks
3.7k
Avg merge
1d 20h
Merged PRs (30d)
138

Description

# Summary

workflow/artifacts/git/git.go it support private key and passwd, it will be good to support .netrc as well

# Use Cases

When would you use this? normally we store all related passwd into one `.netrc` to access different repo, it will be good to support it directly.

It could work like below

````
- name: git-clone
inputs:
artifacts:
- name: argo-source
path: /src
git:
repo: https://github.com/argoproj/argo-workflows.git
revision: "v2.1.1"
# netrcSecret:
# name: github-creds
# key: netrc
`````

---

**Message from the maintainers**:

Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.

Contributor guide

Open the contributing guide

Research direction

Start in workflow/artifacts/git/git.go and trace how the git artifact currently handles private keys and passwords. Then follow the git artifact input schema and secret wiring to determine how netrcSecret should be represented; done means a configured .netrc can authenticate the example private repository without relying on the existing credential methods.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, go
Domain
devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.