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

Command-line interface #328

Open
francoisdtm opened this issue Jan 9, 2022 · 6 comments
Open

Command-line interface #328

francoisdtm opened this issue Jan 9, 2022 · 6 comments
Labels
enhancement New feature or request proposed Community-proposed idea requesting feedback

Comments

@francoisdtm
Copy link

It would be nice to add a simple CLI so that we can add keys from bash scripts and Ansible playbooks.

@maxgoedjen maxgoedjen added proposed Community-proposed idea requesting feedback enhancement New feature or request labels Jan 10, 2022
@maxgoedjen maxgoedjen moved this to Todo in Secretive Apr 8, 2022
@sandstrom
Copy link

sandstrom commented Mar 10, 2023

Although a CLI is some extra work, there are a lot of advanced feature requests among the issues.

Some of those features would be easier to maintain as advanced features (extra CLI flags) in a CLI tool -- for example requiring biometric auth. That way, no custom UI needs to be built for them.

That would be one benefit with a CLI tool.

@maxgoedjen
Copy link
Owner

@francoisdtm coming back to this one – can you describe what kind of thing you'd be interested in? Most of the relevant functionality is already exposed via the ssh-agent interface. You could plausibly expose API to create new keys, but depending on what you mean from "add keys from," that may not be possible with or without a CLI, since it's not possible to import keys.

@MariusVolkhart
Copy link

An API to create a new key is exactly what I'm looking for. My use case is automating the provisioning of a new machine. I'd like to generate a new key in Secretive, then upload the public key to the git server (Bitbucket in my case). So I want an API that can generate the key and give me back info about the public key (file path, the key content, etc).

@0xmachos
Copy link

A use case I've just come across is programatically getting the file path of the generated Public Key files.

I'd like to be able to get a list of active keys from Secretive (name, fingerprint, public key, public key file path) so that I can add the public key file path to my SSH config or symlink to the public key file path from $HOME/.ssh/.

See 0xmachos/dotfiles@18f4841 for a little bit more detail.

@martinpaljak
Copy link

martinpaljak commented Aug 27, 2024

A command line interface would benefit #565 for integration purposes and also automation (if the key does not require authorization)

@0xRake
Copy link

0xRake commented Aug 27, 2024

@francoisdtm coming back to this one – can you describe what kind of thing you'd be interested in? Most of the relevant functionality is already exposed via the ssh-agent interface. You could plausibly expose API to create new keys, but depending on what you mean from "add keys from," that may not be possible with or without a CLI, since it's not possible to import keys.


issue 565 seems relevant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request proposed Community-proposed idea requesting feedback
Projects
Status: Todo
Development

No branches or pull requests

7 participants