Comments (9)
There is currently no support for any authentication for git repositories except SSH key authentication.
Do you know how r10k deals with this issue? Given that r10k usually does these things in sequence you should also get multiple password prompts.
from g10k.
the authentication works in g10k, its just when multiple authentications are needed that you get multiple password prompts simultaniously.
since r10k is serial there is no problem there
from g10k.
No tool acting with ssh sessions handles this.
The user is responsible for setting up the environment with e.g. GIT_ASKPASS or via shared connections.
from g10k.
This is https. If I could use ssh I wouldn't run into this issue
from g10k.
Same problem. Without g10k starting to handle HTTPS/SSH/... itself, rather than using libraries or executing external commands, there is no easy way to know if there is a prompt coming up waiting for input.
Another possibility (for https) would be to template u/p data into the uri before passing the puppetfile to g10k or to add a format which allows g10k to retrieve the credentials from somewhere to deliver as a payload for the specified uris.
E.g.
mod 'somemodule',
:uri => 'https://some.uri/somemodule',
:user => 'someuser',
:password => 'somepass'
But I'm still not convinced that this is g10k's job to handle.
from g10k.
Yeah, I was thinking about adding some module attributes for this, which should be a quick fix.
Would that solve your problem?
from g10k.
Although if I keep thinking about it, something like
mod 'somemodule',
:uri => 'https://some.uri/somemodule',
:auth_file => '/home/foobar/.config/somemodule.auth'
should be better. Otherwise everyone with read access to the control repository can access the module.
from g10k.
Hmm, un this special scenario the repos are actually configured with uri: => 'git@...' but in an devel environment i use git config --global url."https://....".insteadOf git@... because the devel system is not allowed git-over-ssh.
So what actually might help me here would be passing in the auth (or better authfile) information via command line argument or environment variable.
from g10k.
Is the addition of the git module paramter :use_ssh_agent
in #171 which skips the explicit ssh-add
commands before each git command a possible solution for this or do you still want to enter the SSH key password?
from g10k.
Related Issues (20)
- possibly unsafe use of /tmp for cache directory
- Distinct SSH keys don't work.
- Distinct SSH keys don't work HOT 8
- Branch filtering doesn't work as expected HOT 7
- Use ssh-agent to get key password HOT 7
- Travis-ci: build is failing on AMD64 HOT 2
- Yaml instead of Puppetfile? HOT 5
- "deploy module" appears to update the entire environment anyway? HOT 4
- retry with `main` as a default branch if `master` is not available HOT 4
- Purge does not work HOT 14
- make `-check4update` work again HOT 1
- Changing a remote's Git URL doesn't update the cache HOT 5
- Deprecation warnings go 17.1
- Deprecation warnings go 17.1 HOT 1
- Can't build g10k for OSX Monterey
- add flag to keep .git directories HOT 3
- -clonegit unexpectedly fails with commit refs HOT 2
- Support git module with both branch and ref specified HOT 2
- forge code does not accept http 200 code without reason
- syncing multiple git sources with same branches fails HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from g10k.