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

Feature request: support .netrc for https credentials #894

Closed
yujunz opened this issue Mar 19, 2019 · 4 comments
Closed

Feature request: support .netrc for https credentials #894

yujunz opened this issue Mar 19, 2019 · 4 comments

Comments

@yujunz
Copy link
Member

yujunz commented Mar 19, 2019

HTTP credentials may be required for some private repository. It would be nice to support .netrc to provide them, just like the way terraform remote module does.

For example

kustomize build
Username for 'https://code.internal.local':

I would expect it loads the credential from ~/.netrc

machine code.internal.local
login yujunz
password secret
@yujunz yujunz changed the title Support .netrc for https credentials Feature request: support .netrc for https credentials Mar 19, 2019
@Liujingfang1
Copy link
Contributor

You can set ssh to access the private repos. Then you won't see the username prompts.

@yujunz
Copy link
Member Author

yujunz commented Mar 19, 2019

The problem is that the repo is quite huge, e.g. giga bytes mono repository. It seems git+ssh does not support partial clone well.

I'm pulling the source from some repository browse plugin like gitiles which provides https access only.

@yujunz
Copy link
Member Author

yujunz commented Mar 20, 2019

It seems plain tarball url is not supported at all, only GitHub, Azure repo and AWS code commit repo is supported. Is that so?

https://github.com/kubernetes-sigs/kustomize/blob/master/pkg/loader/fileloader.go#L54

//   A base can be either a remote git repo URL, or
//   a directory specified relative to the current
//   root. In the former case, the repo is locally
//   cloned, and the new loader is rooted on a path
//   in that clone.

cc @monopole who seems to be the owner of git related code.

@yujunz
Copy link
Member Author

yujunz commented Mar 27, 2019

Suppressed by #923

@yujunz yujunz closed this as completed Mar 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants