-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Authentication failure error on pulling artifacts from private Git repository #1428
Comments
To investigate this further I built executor from latest master,
(Output is edited so that it can be viewed easily) Workflow file apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: input-artifact-git-
spec:
entrypoint: git-clone
templates:
- name: git-clone
inputs:
artifacts:
- name: argo-source
path: /src
git:
repo: https://github.com/some-org/private-repo.git
revision: "develop"
usernameSecret:
name: github-creds
key: username
passwordSecret:
name: github-creds
key: password
# sshPrivateKeySecret:
# name: github-ssh
# key: github_tavisca
container:
image: golang:1.10
command: [sh, -c]
args: ["git status && ls"]
workingDir: /src Output of workflow Pod
Link to the changes |
For any other folks who are debugging the same issue: as @bhavin192 mentioned, make sure that your remote git credentials in the kubernetes |
Doesn't work for me using ssh key.
and this error from the Argo CLI:
|
Someone with Git XP needs to sit down and test out all the authentication scenarios. |
@alexec I'm not sure I know Argo well enough to test. :-( |
I haven't been able to get a private Azure Repo to work using PAT or SSH. Is this a scenario that is supported? With PAT: |
@ks4225 in the particular way how Azure DevOps as made this fairly awkward i did find a way to work around this. secret.yaml:
And within your workflow:
I hope this helps for those searching. |
Signed-off-by: Michael Seiwald <michael.seiwald@smartify-it.de>
I think this is fixed in |
I'm seeing authentication errors when using the revision option:
However, if I update it to use singleBranch + branch instead of revision it succeeds
This is using :latest with a private github repository using username + PAT |
It happens when use |
What happened:
I've been trying to pull resources from a private git repository so that to implement a build step in Argo workflow. Even upon creating respective secret in Kubernetes cluster with Github credentials(username/access token) I keep getting error like
authentication required\ngh.neting.cc/argoproj/argo/errors.Wrap\n\t/root/go/src/github.com/
The text was updated successfully, but these errors were encountered: