Skip to content

Defguard command line client "defguard" #65

Open

Description

@teon

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?

Activity

  1. converted this from a draft issue on Nov 4, 2023
  2. teon commented on Nov 13, 2023

    @teon
    ContributorAuthor

    @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.

  3. changed the title [-]Add status command that will show current connections / peers in human readable way[/-] [+]Defguard command line client "defguard"[/+] on Nov 21, 2023
  4. added
    enhancement
    good first issue
    help wanted
    on Feb 20, 2024
  5. removed
    good first issue
    on Jul 1, 2024
  6. added
    good first issue
    and removed
    good first issue
    on Nov 12, 2024
  7. moved this from Development ready to Refinement ready in Backlog & Roadmapon Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions