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

Defguard command line client "defguard" #65

Open
teon opened this issue Nov 4, 2023 · 1 comment
Open

Defguard command line client "defguard" #65

teon opened this issue Nov 4, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@teon
Copy link
Contributor

teon commented Nov 4, 2023

The client should have the following commands (priority of implementation):

  1. import-users <file.json/csv>

We should have the possibility to bulk import users in a described/defined format/file type.
Idealy would be to support two fille (predefined) formats: JSON & CSV.

  1. add-user [login]

Since we will handle bulk user creation, should be easy to do one-off just to add one user.

  1. disable-user [login]

  2. change-password [login[

  3. ssh-auth [user/group?]

Now we are showing examples of how to interact with DG API through curl & bash, but we should have this done in our client.

  1. status [location]

[location] is optional - if not set - show all locations.

Command will show all connections / peers in human readable way - the same way as "wg-quick" connection/peer status, but in human-readable way - so that the peers would have names like: John Wick - MacBook (and not public keys)

  1. import-vpn <wg.conf>

The question remains - how we should configure access for the client - maybe a dedicated functionality in DG for Tokens/oauth?

@teon teon converted this from a draft issue Nov 4, 2023
@teon
Copy link
Contributor Author

teon commented Nov 13, 2023

@kchudy also I think that should not be in the gateway itself - I think we should start to do a command line client (just: defguard)

Meaning we should not mix server and client binaries/tools. Gateway is a sever, we need a client then that is shipped with the server.

@teon teon changed the title Add status command that will show current connections / peers in human readable way Defguard command line client "defguard" Nov 21, 2023
@teon teon added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Feb 20, 2024
@teon teon removed the good first issue Good for newcomers label Jul 1, 2024
@teon teon added good first issue Good for newcomers and removed good first issue Good for newcomers labels Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
Status: Refined & Ready
Development

No branches or pull requests

1 participant