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

Serverless cannot fetch git functions from private repos via SSH key #17503

Closed
kwiatekus opened this issue May 18, 2023 · 0 comments
Closed

Serverless cannot fetch git functions from private repos via SSH key #17503

kwiatekus opened this issue May 18, 2023 · 0 comments
Assignees
Labels
area/serverless Issues or PRs related to serverless kind/bug Categorizes issue or PR as related to a bug. priority/critical Priority indication
Milestone

Comments

@kwiatekus
Copy link
Contributor

kwiatekus commented May 18, 2023

Description

When trying to fetch git functions from private git repositories via SSH key controller fails with error

{"level":"ERROR","timestamp":"2023-05-18T03:10:30Z","logger":"controllers.function","caller":"git/fetcher.go:43","message":"failed to open existing repo at [/tmp/ab9e7b971eddb3f10b00175c2fe79daa]: could not find repository from '/tmp/ab9e7b971eddb3f10b00175c2fe79daa'","context":{"kind":"Function","name":"github-func","namespace":"test-serverless-gitauth-03h10m00s","version":1}}
{"level":"ERROR","timestamp":"2023-05-18T03:10:30Z","logger":"controllers.function","caller":"git/fetcher.go:52","message":"failed to use existing origin remote at [/tmp/ab9e7b971eddb3f10b00175c2fe79daa]: remote 'origin' does not exist","context":{"kind":"Function","name":"github-func","namespace":"test-serverless-gitauth-03h10m00s","version":1}}
{"level":"ERROR","timestamp":"2023-05-18T03:10:31Z","logger":"controllers.function","caller":"serverless/fsm.go:211","message":"while fetching the repository: while fetching remote: Certificate while fetching last commit","context":{"kind":"Function","name":"github-func","namespace":"test-serverless-gitauth-03h10m00s","version":1}}

due to faulty callback implementation.

@kwiatekus kwiatekus added kind/bug Categorizes issue or PR as related to a bug. area/serverless Issues or PRs related to serverless labels May 18, 2023
@kwiatekus kwiatekus self-assigned this May 18, 2023
@kwiatekus kwiatekus added the priority/critical Priority indication label May 18, 2023
@kwiatekus kwiatekus changed the title Serverless cannot fetch git functions from private repos via SSH key due to faulty callback implementation Serverless cannot fetch git functions from private repos via SSH key May 18, 2023
@kwiatekus kwiatekus added this to the 2.14 milestone May 18, 2023
@kwiatekus kwiatekus modified the milestones: 2.14, 2.14.1 May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/serverless Issues or PRs related to serverless kind/bug Categorizes issue or PR as related to a bug. priority/critical Priority indication
Projects
None yet
Development

No branches or pull requests

1 participant